Araq d9429bc396 added a test case for memory regions 7 tahun lalu
..
actiontable 63f9385327 Rename mget to `[]` 9 tahun lalu
alias 000b8afd26 Remove expr/stmt (#5857) 7 tahun lalu
ambsym e80465dacf tests: Trim .nim files trailing whitespace 9 tahun lalu
arithm bbeadf184e Removed platform-specific arithm test cases (#6189) 7 tahun lalu
array ea47234b35 Array typedesc len (#6032) 7 tahun lalu
assert 000b8afd26 Remove expr/stmt (#5857) 7 tahun lalu
assign e80465dacf tests: Trim .nim files trailing whitespace 9 tahun lalu
astoverload 20b5f31c03 new tester; all tests categorized 11 tahun lalu
async bdf6f59c6d Fixes #5738 (#6059) 7 tahun lalu
benchmarks e80465dacf tests: Trim .nim files trailing whitespace 9 tahun lalu
bind 000b8afd26 Remove expr/stmt (#5857) 7 tahun lalu
borrow e80465dacf tests: Trim .nim files trailing whitespace 9 tahun lalu
caas fd4e629905 Rename PNimrodNode to NimNode 10 tahun lalu
casestmt c9966a3e17 use 'using' instead of 'sig' keyword; cleans up new features a bit 9 tahun lalu
ccgbugs 920f4acadf fixes #6279 7 tahun lalu
clearmsg a3f19c87fb lift parameter-less do block to lambdas 7 tahun lalu
closure 7ad115f530 Restore the old behavior of parsing "quote do:" 7 tahun lalu
cnstseq e80465dacf tests: Trim .nim files trailing whitespace 9 tahun lalu
collections 000b8afd26 Remove expr/stmt (#5857) 7 tahun lalu
compiles 000b8afd26 Remove expr/stmt (#5857) 7 tahun lalu
concat 20b5f31c03 new tester; all tests categorized 11 tahun lalu
concepts a08fb61da9 make tests green again 7 tahun lalu
constr e80465dacf tests: Trim .nim files trailing whitespace 9 tahun lalu
constraints e80465dacf tests: Trim .nim files trailing whitespace 9 tahun lalu
constructors 5c7ae14074 Fixes #5965 (#6237) 7 tahun lalu
controlflow e80465dacf tests: Trim .nim files trailing whitespace 9 tahun lalu
converter 4d5c0027e6 fixes #4537 8 tahun lalu
coroutines 3ffde39cf4 attempt to make travis OSX tests green and mandatory 7 tahun lalu
cpp 57edf619fe fixes #6016 union alias trigger bad codegen (#6117) 7 tahun lalu
defaultprocparam 20b5f31c03 new tester; all tests categorized 11 tahun lalu
deprecated ee57bb3e3e fixes --gc:none regression; made some tests green 10 tahun lalu
destructor 0844941b35 fixes regressions 9 tahun lalu
dir with space e80465dacf tests: Trim .nim files trailing whitespace 9 tahun lalu
discard 000b8afd26 Remove expr/stmt (#5857) 7 tahun lalu
distinct 16260b23c7 make tests on Windows green 8 tahun lalu
dll e80465dacf tests: Trim .nim files trailing whitespace 9 tahun lalu
effects f1e4d8ed74 side-effect computation now done in the proper pass; fixes #4254 8 tahun lalu
enum 51cd3bd86f Fixes #5062 (#5527); JS: holes in enums 8 tahun lalu
errmsgs a6006e56a7 Fix #4737 7 tahun lalu
exception 000b8afd26 Remove expr/stmt (#5857) 7 tahun lalu
exprs d02486aa48 compiler: better error messages (#5613) 7 tahun lalu
fields 000b8afd26 Remove expr/stmt (#5857) 7 tahun lalu
float 000b8afd26 Remove expr/stmt (#5857) 7 tahun lalu
friends e80465dacf tests: Trim .nim files trailing whitespace 9 tahun lalu
gc 6fa1dba515 Add ``tearDownForeignThreadGc`` function (#5369) 8 tahun lalu
generics 000b8afd26 Remove expr/stmt (#5857) 7 tahun lalu
gensym 7132b04f44 equality check on NimSym has now support in the VM; refs #6139 7 tahun lalu
global e80465dacf tests: Trim .nim files trailing whitespace 9 tahun lalu
implicit 865d341b32 unsigned array indexes work better; minor cleanups 10 tahun lalu
import_in_config 154db46db8 fixes a regression that caused --import in a config file to break things 8 tahun lalu
init e80465dacf tests: Trim .nim files trailing whitespace 9 tahun lalu
iter 27e89eef6b closes #3583 7 tahun lalu
js 7ad115f530 Restore the old behavior of parsing "quote do:" 7 tahun lalu
let cb3c99fe1f Fix tests some more 10 tahun lalu
lexer 000b8afd26 Remove expr/stmt (#5857) 7 tahun lalu
lookups 5d56361383 fixes #4353 8 tahun lalu
macros 6f6e6fe4eb Fix #6295 (#6296) 7 tahun lalu
magics e80465dacf tests: Trim .nim files trailing whitespace 9 tahun lalu
manyloc 000b8afd26 Remove expr/stmt (#5857) 7 tahun lalu
metatype 22684370b0 remove ArrayDummySize with unchecked arrays (#5818) 7 tahun lalu
method 52f092d02b Lineinfo change (#6084) 7 tahun lalu
misc 000b8afd26 Remove expr/stmt (#5857) 7 tahun lalu
modules dfe067a74a reorder pass: consider the 'using' statement; disabled debug output 7 tahun lalu
namedparams e80465dacf tests: Trim .nim files trailing whitespace 9 tahun lalu
newconfig b67ea9e73b fixes #6327 7 tahun lalu
nimble 90fa64501f Implement .nimble-link files in the compiler and add tests for them. 7 tahun lalu
notnil 564c0acae2 cleaned up the code and implemented proper error messages 7 tahun lalu
objects 21e22624a2 fixes #6294 7 tahun lalu
objvariant 0ce26313a4 Add test for objvariant construction order 7 tahun lalu
openarray aebad711ea fixed #2240 and #3586 9 tahun lalu
osproc c39e202976 Introduce first class support for Android (#5772) 7 tahun lalu
overflw e80465dacf tests: Trim .nim files trailing whitespace 9 tahun lalu
overload 000b8afd26 Remove expr/stmt (#5857) 7 tahun lalu
parallel 3d543b1539 Channels can now block depending on maxItems (#6153) 7 tahun lalu
parser 7ad115f530 Restore the old behavior of parsing "quote do:" 7 tahun lalu
pragmas 000b8afd26 Remove expr/stmt (#5857) 7 tahun lalu
proc e80465dacf tests: Trim .nim files trailing whitespace 9 tahun lalu
procvar e80465dacf tests: Trim .nim files trailing whitespace 9 tahun lalu
range 000b8afd26 Remove expr/stmt (#5857) 7 tahun lalu
rational ce18b85d2c add two test: 9 tahun lalu
realtimeGC 567b7d5a6a tests: Trim .txt files trailing whitespace 9 tahun lalu
regions d9429bc396 added a test case for memory regions 7 tahun lalu
rodfiles 7630cd076b updated test case 8 tahun lalu
seq 3c773c189f fixes #4973 8 tahun lalu
sets d1f6ddfd64 Add counterpart to containsOrIncl for excl (#6360) 7 tahun lalu
showoff 000b8afd26 Remove expr/stmt (#5857) 7 tahun lalu
specialops 000b8afd26 Remove expr/stmt (#5857) 7 tahun lalu
statictypes 36c4f0a89c close #1051 7 tahun lalu
stdlib 5b8f33a905 Reorder json `add` and `%`, fixes #6385 (#6388) 7 tahun lalu
system c98a8f3701 Handle different enum sizes in reprAux (#5207) 8 tahun lalu
template 000b8afd26 Remove expr/stmt (#5857) 7 tahun lalu
testament 90fa64501f Implement .nimble-link files in the compiler and add tests for them. 7 tahun lalu
testdata abe5cb82a0 Fix for #5134 (parseJson(string) should fail on leftover data) (#5203) 8 tahun lalu
threads 254fbcc548 Fixes #4719. (#5585) 7 tahun lalu
trmacros 000b8afd26 Remove expr/stmt (#5857) 7 tahun lalu
tuples 000b8afd26 Remove expr/stmt (#5857) 7 tahun lalu
typerel 000b8afd26 Remove expr/stmt (#5857) 7 tahun lalu
types 57edf619fe fixes #6016 union alias trigger bad codegen (#6117) 7 tahun lalu
untestable 9b465a2361 Add readme to tests. Add fileDir option to testament & create nimble test. 7 tahun lalu
usingstmt 000b8afd26 Remove expr/stmt (#5857) 7 tahun lalu
varres 2166b7bc46 Fixed ret by var in js 9 tahun lalu
varstmt e80465dacf tests: Trim .nim files trailing whitespace 9 tahun lalu
vm ae7fe5087f Closes #6083, closes #6086, closes #6379 (#6392) 7 tahun lalu
benchmark.nim e80465dacf tests: Trim .nim files trailing whitespace 9 tahun lalu
js.html 72a3e21f28 Removes executable bit for text files. 12 tahun lalu
js.nim e80465dacf tests: Trim .nim files trailing whitespace 9 tahun lalu
mmaptest.nim e80465dacf tests: Trim .nim files trailing whitespace 9 tahun lalu
readme.md 9b465a2361 Add readme to tests. Add fileDir option to testament & create nimble test. 7 tahun lalu
rectest.nim e80465dacf tests: Trim .nim files trailing whitespace 9 tahun lalu
stckovfl.nim e80465dacf tests: Trim .nim files trailing whitespace 9 tahun lalu
test_nimscript.nims 2c146445bc Added deques module, deprecating queues 8 tahun lalu

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.