aboutsummaryrefslogtreecommitdiff
path: root/tests/testing.tcl
AgeCommit message (Collapse)AuthorFilesLines
2020-11-08build: Fix build and tests for out-of-tree buildSteve Bennett1-10/+3
Loadable modules and tests Fixes #179 Signed-off-by: Steve Bennett <steveb@workware.net.au>
2015-04-06ensure that tests can find tcltest.tclSteve Bennett1-0/+4
Reported-By: Stuart Cassoff <stwo@bell.net> Signed-off-by: Steve Bennett <steveb@workware.net.au>
2014-10-15Install tcltest compatibility packageSteve Bennett1-254/+6
Allow 3rd party tests to be written and use: package require tcltest Signed-off-by: Steve Bennett <steveb@workware.net.au>
2014-01-15tests: fix tests if tclcompat is not enabledSteve Bennett1-0/+18
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2013-12-21Fix hash table order dependency in various testsSteve Bennett1-0/+7
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-11-10More tcltest compatibilitySteve Bennett1-0/+5
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-10-21Source location for test which does "return"Steve Bennett1-1/+1
If a test does a "return" and the result is not the expected value, the source location of the test is wrong. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-08-22Allow -returnCodes to use numbers as well as namesSteve Bennett1-1/+1
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-13Setup auto_path directly in tests/testing.tclSteve Bennett1-0/+3
Rather than relying on setting JIMLIB in the Makefile. Makes it easier to run individual tests manually. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-06-10Slightly more efficient proc testSteve Bennett1-3/+3
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-06-04Make test error easier to readSteve Bennett1-0/+1
Add a blank line after each error Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-04-22Fix tcltest v2 for the -setup optionSteve Bennett1-1/+1
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-04-21Add some tcltest v2 supportSteve Bennett1-6/+44
Makes it easier to import Tcl tests Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-12-14Fix constraint checkingSteve Bennett1-2/+6
This was completely wrong. The arg order was wrong such that when test constraints were specifed the test was always skipped! Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-12-06Add more dependencies for testsSteve Bennett1-1/+6
Allow tests to run with almost all features disabled
2010-11-22Overhaul unit test frameworkSteve Bennett1-69/+113
Much closer to tcltest now, including constraints. Try to get all appropriate tests running under both Jim and Tcl. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-17Add UTF-8 support to JimSteve Bennett1-0/+18
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-15Skip tests for features which are not availableSteve Bennett1-0/+9
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-15Source location for failed tests was wrongSteve Bennett1-1/+15
That is, tests which didn't fail but did not give the expected result Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-15Move test.tcl to tests/jim.testSteve Bennett1-22/+24
And other small testing improvements Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-15eventloop improvements and enhancementsSteve Bennett1-6/+9
Move Jim_EvalObjBackground() out of the core to eventloop Time events are now kept and triggered in time order Time handlers are removed before execution Add 'update' Add 'after info' and 'after idle' Include time events in the return from Jim_ProcessEvents() Add Tcl eventloop tests Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-15Small improvements to testsSteve Bennett1-12/+24
Make exec-9.7 test more reliable Quieten jim tests unless running manually Add jim pipe example Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-15Improve stack trace handlingSteve Bennett1-18/+9
*: Get rid of JIM_ERR_ADDSTACK and use interp->addStackTrace instead *: 'return -code error' doesn't add a stack frame *: Rename _file_copy to {file copy} for better error messages *: Use 'return -code' to prevent excessive levels in the stack trace Also rename info_nameofexecutable to {info nameofexecutable}
2010-10-15Implement TIP #288Steve Bennett1-2/+11
See http://www.tcl.tk/cgi-bin/tct/tip/288.html Args and optional args may be to the left of required args
2010-10-15Many improvements, bug fixesSteve Bennett1-1/+17
*: Allow math functions to be enabled via configure *: Allow support for references to be removed *: Documentation updates *: Jim_ListLength() now returns the result directly *: Optimise list -> dict conversion *: Consistent capitalisation of some structures, functions *: Add support for abbreviations to Jim_GetEnum() *: The commands to 'info' may be abbreviated *: Use abbreviation support in parsing options to 'subst' *: Use Jim_GetEnum() to parse return code names *: Optimise 'array get', 'array set' if no conversion needed *: Import Tcl string.test *: string compare now returns -1,0,1 like Tcl *: Fix 'string last' with index=0 *: Add support for 'string reverse' *: Add -nocase option to 'string equal' *: Fix infinite loop in 'string repeat str -1' *: Support braced patterns in glob *: glob should not return dot files unless the pattern starts with . *: Simplify glob.tcl by using some new features *: When creating C extensions from Tcl, preserve newlines and invoke with Jim_Eval_Named() to produce more meaningful error messages. *: Also remove all comments, not just those starting in the first column *: Add support for 'n+n' and 'n-n' in string/list indexes (Tcl 8.5) *: Add a level to the stack trace for 'return -code error' *: 'return -code' should also affect the return from 'source' (see Tcl docs) *: Fix lsort -command *: Some systems don't have INFINITY
2010-10-15Improvements to 'scan'Steve Bennett1-1/+1
Use libc strtoull() for long long conversions Also some white space cleanup Also remove some win32 vestiges Also improve error messages for array access errors
2010-10-15Implement and document lassignSteve Bennett1-8/+8
2010-10-15Speed up assign to static dict sugarSteve Bennett1-5/+2
2010-10-15Bug fixes, documentation updatesSteve Bennett1-2/+2
jimsh - retry on EINTR from fgets() Fix 0 -> NULL for 64 bit systems Fix overlapping memcpy Fix jim array dereferencing bug *: Counting of parentheses was incorrect with nested array references *: The result for array dereference wasn't being used properly Add os.uptime command Documentation: autogenerated command index Fix gets when last line has no newline
2010-10-15Implement unix domain sockets for socketSteve Bennett1-1/+1
*: aio.socket now supports unix and unix.server *: Also, rename aio.open as open and aio.socket as socket
2010-10-15Bugs, features and testsSteve Bennett1-1/+1
source fails with zero length file unknown can't be called recursively *: This can be useful when using unknown to dynamically load code, which may in turn want to dynamically load code *: Limit it to 50 recursions though Allow string greater/less comparison *: Comparing two strings for order did not work Implement file join *: It's not to hard and is handy when working with the current dir, "" Don't omit [unknown] completely from stack trace *: Since we lose valuable informtion, just omit the name Fix return from case Turn regexp patterns into real objects *: Thus caching the compiled regexps Allow error to rethrow an error Replace bcopy() with more standard memcpy() Fixes to parray, improve errorInfo *: errorInfo takes an optional stack trace Add tests for rethrowing errors via errorInfo Fix ndelay *: Was looking at wrong param *: Also fix usage/help for aio.socket Package should be able to call exit *: Currently any return from a package is changed to JIM_ERR Line counting is incorrect for backlash newline
2010-10-15Improve error handlingSteve Bennett1-0/+60
*: Improve stack trace handling on errors *: Add 'info source' *: Add 'info stacktrace' *: Add errorInfo procedure to generate a human readable stack trace *: Add tests for stacktrace ------------------------------------------------------------------------