Miran 66a76d3165 Merge tests into a larger file (part 8 of ∞) (#9583) | 6 years ago | |
---|---|---|
.. | ||
actiontable | 6 years ago | |
alias | 7 years ago | |
ambsym | 9 years ago | |
arithm | 6 years ago | |
array | 6 years ago | |
assert | 6 years ago | |
assign | 6 years ago | |
astoverload | 11 years ago | |
async | 6 years ago | |
benchmarks | 6 years ago | |
bind | 6 years ago | |
borrow | 9 years ago | |
caas | 9 years ago | |
casestmt | 6 years ago | |
ccgbugs | 6 years ago | |
clearmsg | 6 years ago | |
closure | 6 years ago | |
cnstseq | 6 years ago | |
collections | 6 years ago | |
compilerapi | 6 years ago | |
compiles | 6 years ago | |
concat | 11 years ago | |
concepts | 6 years ago | |
constr | 7 years ago | |
constraints | 6 years ago | |
constructors | 6 years ago | |
controlflow | 6 years ago | |
converter | 6 years ago | |
coroutines | 7 years ago | |
cpp | 6 years ago | |
defaultprocparam | 11 years ago | |
deprecated | 6 years ago | |
deps | 6 years ago | |
destructor | 6 years ago | |
dir with space | 9 years ago | |
discard | 6 years ago | |
distinct | 6 years ago | |
dll | 9 years ago | |
effects | 6 years ago | |
enum | 6 years ago | |
errmsgs | 6 years ago | |
exception | 6 years ago | |
exprs | 6 years ago | |
fields | 6 years ago | |
flags | 6 years ago | |
float | 6 years ago | |
fragmentation | 6 years ago | |
friends | 9 years ago | |
gc | 6 years ago | |
generics | 6 years ago | |
gensym | 7 years ago | |
global | 6 years ago | |
implicit | 6 years ago | |
import_in_config | 8 years ago | |
init | 6 years ago | |
iter | 6 years ago | |
js | 6 years ago | |
lent | 7 years ago | |
let | 6 years ago | |
lexer | 6 years ago | |
lookups | 8 years ago | |
macros | 6 years ago | |
magics | 6 years ago | |
manyloc | 6 years ago | |
metatype | 6 years ago | |
method | 6 years ago | |
misc | 6 years ago | |
modules | 6 years ago | |
namedparams | 6 years ago | |
newconfig | 6 years ago | |
nimble | 7 years ago | |
niminaction | 6 years ago | |
notnil | 6 years ago | |
objects | 6 years ago | |
objvariant | 6 years ago | |
openarray | 6 years ago | |
osproc | 6 years ago | |
overflw | 6 years ago | |
overload | 6 years ago | |
package_level_objects | 7 years ago | |
parallel | 6 years ago | |
parser | 6 years ago | |
pragmas | 6 years ago | |
proc | 6 years ago | |
procvar | 6 years ago | |
range | 6 years ago | |
rational | 7 years ago | |
realtimeGC | 7 years ago | |
rodfiles | 6 years ago | |
seq | 6 years ago | |
sets | 6 years ago | |
showoff | 7 years ago | |
specialops | 7 years ago | |
statictypes | 6 years ago | |
stdlib | 6 years ago | |
system | 6 years ago | |
template | 6 years ago | |
testdata | 8 years ago | |
threads | 6 years ago | |
trmacros | 6 years ago | |
tuples | 6 years ago | |
typerel | 6 years ago | |
types | 6 years ago | |
untestable | 6 years ago | |
usingstmt | 7 years ago | |
varres | 6 years ago | |
varstmt | 9 years ago | |
vm | 6 years ago | |
benchmark.nim | 9 years ago | |
dummy.txt | 6 years ago | |
js.html | 11 years ago | |
js.nim | 9 years ago | |
mmaptest.nim | 9 years ago | |
readme.md | 6 years ago | |
rectest.nim | 9 years ago | |
stckovfl.nim | 9 years ago | |
test_nimscript.nims | 7 years ago |
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).
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
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
.
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"
"""
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.