Andreas Rumpf 675b6f0773 fixes #9978 6 years ago
..
actiontable 7f18d7cbc1 Merge tests into a larger file (part 1 of ∞) (#9318) 6 years ago
alias 000b8afd26 Remove expr/stmt (#5857) 7 years ago
ambsym 1105d03644 require errormsg to be specified before file. 6 years ago
arithm 7f18d7cbc1 Merge tests into a larger file (part 1 of ∞) (#9318) 6 years ago
array ac785b0623 testament: joinable is now an explicit concept of a test spec 6 years ago
assert 1105d03644 require errormsg to be specified before file. 6 years ago
assign 1105d03644 require errormsg to be specified before file. 6 years ago
astoverload 20b5f31c03 new tester; all tests categorized 11 years ago
async a5ecbf823f lots of small changes 6 years ago
bind a5ecbf823f lots of small changes 6 years ago
borrow 1105d03644 require errormsg to be specified before file. 6 years ago
casestmt 1105d03644 require errormsg to be specified before file. 6 years ago
ccgbugs a5ecbf823f lots of small changes 6 years ago
clearmsg 1105d03644 require errormsg to be specified before file. 6 years ago
closure f3d2c18a12 attempt to make travis green 6 years ago
cnstseq 1105d03644 require errormsg to be specified before file. 6 years ago
collections ac785b0623 testament: joinable is now an explicit concept of a test spec 6 years ago
compilerapi 2a4c09ff88 megatest can be executed 6 years ago
compiles 031bfdec6f make run the default action of a test in tester 6 years ago
concat 20b5f31c03 new tester; all tests categorized 11 years ago
concepts 3859878db8 megatest checks output and nimout 6 years ago
constr 3b783f7e13 Testament: refactoring; makes the test joiner green 6 years ago
constraints 1105d03644 require errormsg to be specified before file. 6 years ago
constructors 1105d03644 require errormsg to be specified before file. 6 years ago
controlflow 3b783f7e13 Testament: refactoring; makes the test joiner green 6 years ago
converter 1105d03644 require errormsg to be specified before file. 6 years ago
coroutines 27a9e369de fix coro test 6 years ago
cpp a29ec40032 join simple test 6 years ago
defaultprocparam e012eb1001 updated tests to be executed 6 years ago
deprecated 1105d03644 require errormsg to be specified before file. 6 years ago
deps 0d99ff6113 testament megatest: furher refactorings making more tests green 6 years ago
destructor ac785b0623 testament: joinable is now an explicit concept of a test spec 6 years ago
dir with space e012eb1001 updated tests to be executed 6 years ago
discard a5ecbf823f lots of small changes 6 years ago
distinct a5ecbf823f lots of small changes 6 years ago
dll 9c2365d5c2 activated more tests, allow input in test spec 6 years ago
effects 1105d03644 require errormsg to be specified before file. 6 years ago
enum 1105d03644 require errormsg to be specified before file. 6 years ago
errmsgs a5ecbf823f lots of small changes 6 years ago
exception 1105d03644 require errormsg to be specified before file. 6 years ago
exprs 1105d03644 require errormsg to be specified before file. 6 years ago
fields 3c9fcc4c30 Merge tests into a larger file (part 2 of ∞) (#9335) 6 years ago
flags 1105d03644 require errormsg to be specified before file. 6 years ago
float 3b783f7e13 Testament: refactoring; makes the test joiner green 6 years ago
fragmentation 381498b0db tests: disable flaky tests for now; closes #9421 6 years ago
friends e80465dacf tests: Trim .nim files trailing whitespace 9 years ago
gc 81e33b9d87 make thavlak and tmarkerproc_regression tests take fewer iterations in order to speedup the CIs 6 years ago
generics 34815a4697 megatest: make it green on Linux 6 years ago
gensym 7132b04f44 equality check on NimSym has now support in the VM; refs #6139 7 years ago
global 1105d03644 require errormsg to be specified before file. 6 years ago
implicit a5ecbf823f lots of small changes 6 years ago
import_in_config 154db46db8 fixes a regression that caused --import in a config file to break things 8 years ago
init 9c2365d5c2 activated more tests, allow input in test spec 6 years ago
iter 3b783f7e13 Testament: refactoring; makes the test joiner green 6 years ago
js a5ecbf823f lots of small changes 6 years ago
lent c99f952dfb basic 'lent T' test works 7 years ago
let 1105d03644 require errormsg to be specified before file. 6 years ago
lexer 34815a4697 megatest: make it green on Linux 6 years ago
lookups e012eb1001 updated tests to be executed 6 years ago
macros 34815a4697 megatest: make it green on Linux 6 years ago
magics 34815a4697 megatest: make it green on Linux 6 years ago
manyloc 4d616b5dc4 make tests green; better output for when megatest execution fails 6 years ago
metatype 3b783f7e13 Testament: refactoring; makes the test joiner green 6 years ago
method 0d99ff6113 testament megatest: furher refactorings making more tests green 6 years ago
misc bb1ce398af Merge pull request #9881 from timotheecour/pr_ref_9880 6 years ago
modules 675b6f0773 fixes #9978 6 years ago
namedparams 1105d03644 require errormsg to be specified before file. 6 years ago
newconfig 562d185cb7 cleanup tests; don't use non-working 'msg' spec field 6 years ago
nimble 90fa64501f Implement .nimble-link files in the compiler and add tests for them. 7 years ago
niminaction a5ecbf823f lots of small changes 6 years ago
notnil 1105d03644 require errormsg to be specified before file. 6 years ago
objects e4ae7a8929 Merge pull request #8748 from LemonBoy/when-in-objects 6 years ago
objvariant 1105d03644 require errormsg to be specified before file. 6 years ago
openarray 1105d03644 require errormsg to be specified before file. 6 years ago
osproc f18fcf65b3 make tests green again 6 years ago
overflw 1105d03644 require errormsg to be specified before file. 6 years ago
overload 3859878db8 megatest checks output and nimout 6 years ago
package_level_objects c17f6c7837 new feature: package level objects 7 years ago
parallel a5ecbf823f lots of small changes 6 years ago
parser 1105d03644 require errormsg to be specified before file. 6 years ago
pragmas d9ae9201c4 Merge pull request #9937 from cooldome/pragmablock_custom_pragma 6 years ago
proc 1105d03644 require errormsg to be specified before file. 6 years ago
procvar 749dbce4c6 Merge tests into a larger file (part 5 of ∞) (#9368) 6 years ago
range 1105d03644 require errormsg to be specified before file. 6 years ago
rational 1105d03644 require errormsg to be specified before file. 6 years ago
realtimeGC b26378a468 WIP, most tests are now skipped 6 years ago
rodfiles 72dfe176f5 remove dead code elimination option (#7669) 6 years ago
seq 3b783f7e13 Testament: refactoring; makes the test joiner green 6 years ago
sets 1105d03644 require errormsg to be specified before file. 6 years ago
showoff 6df6ec27ec Improved collection-to-string behavior (#6825) 7 years ago
specialops 547961f71e dotops: add a simple object delegation test 7 years ago
statictypes a5ecbf823f lots of small changes 6 years ago
stdlib ce9815bcf5 os.nim: use the new pathnorm.normalizePath implementation 6 years ago
system ac785b0623 testament: joinable is now an explicit concept of a test spec 6 years ago
template 3b783f7e13 Testament: refactoring; makes the test joiner green 6 years ago
testament fb1f5c62b5 tshouldfail is stricter 6 years ago
testdata abe5cb82a0 Fix for #5134 (parseJson(string) should fail on leftover data) (#5203) 8 years ago
threads a5ecbf823f lots of small changes 6 years ago
trmacros 1105d03644 require errormsg to be specified before file. 6 years ago
tuples a5ecbf823f lots of small changes 6 years ago
typerel a5ecbf823f lots of small changes 6 years ago
types ac785b0623 testament: joinable is now an explicit concept of a test spec 6 years ago
untestable a5ecbf823f lots of small changes 6 years ago
usingstmt 3b783f7e13 Testament: refactoring; makes the test joiner green 6 years ago
varres 1105d03644 require errormsg to be specified before file. 6 years ago
varstmt 3b783f7e13 Testament: refactoring; makes the test joiner green 6 years ago
vm 3b783f7e13 Testament: refactoring; makes the test joiner green 6 years ago
dummy.txt a68a4bfaf2 Remove install.txt and readme.txt (#9521) 6 years ago
js.html 72a3e21f28 Removes executable bit for text files. 12 years ago
js.nim e80465dacf tests: Trim .nim files trailing whitespace 9 years ago
mmaptest.nim e80465dacf tests: Trim .nim files trailing whitespace 9 years ago
readme.md 97738a4f28 Testament pre parallel (#9137) 6 years ago
rectest.nim e80465dacf tests: Trim .nim files trailing whitespace 9 years ago
stckovfl.nim e80465dacf tests: Trim .nim files trailing whitespace 9 years ago
test_nimscript.nims 8d850f7a69 deprecated ospaths (#9665) 6 years ago

readme.md

This directory contains the test cases.

Each test must have a filename of the form: t*.nim

Note: Tests are only compiled by default. In order to get the tester to execute the compiled binary, you need to specify a spec with an action key (see below for details).

Specs

Each test can contain a spec in a discard """ ... """ block.

Check out the parseSpec procedure in the specs module for a full and reliable reference

action

Specifies what action this test should take.

Default: compile

Options:

  • compile - compiles the module and fails the test if compilations fails.
  • run - compiles and runs the module, fails the test if compilation or execution of test code fails.
  • reject - compiles the module and fails the test if compilation succeeds.

There are certain spec keys that imply run, including output and outputsub.

cmd

Specifies the Nim command to use for compiling the test.

There are a number of variables that are replaced in this spec option:

  • $target - the compilation target, e.g. c.
  • $options - the options for the compiler.
  • $file - the filename of the test.
  • $filedir - the directory of the test file.

Example:

discard """
  cmd: "nim $target --nimblePath:./nimbleDir/simplePkgs $options $file"
"""

Categories

Each folder under this directory represents a test category, which can be tested by running koch tests cat <category>.

The folder rodfiles contains special tests that test incremental compilation via symbol files.

The folder dll contains simple DLL tests.

The folder realtimeGC contains a test for validating that the realtime GC can run properly without linking against the nimrtl.dll/so. It includes a C client and platform specific build files for manual compilation.