Nim/tests
2018-06-17 14:16:01 +02:00
..
actiontable
alias
ambsym
arithm
array fixes #7906, array and openarray arg vs. ptr/ref generic (#7909) 2018-06-04 17:43:15 +02:00
assert Add column number to instantiation info (#7376) 2018-04-12 20:02:04 +02:00
assign make tests green again 2018-04-24 11:45:08 +02:00
astoverload
async Removed oldIterTranf feature 2018-06-10 23:42:53 +03:00
benchmarks
bind make more tests green 2018-02-10 20:55:22 +01:00
borrow
caas
casestmt Fixes #7407 (#7427) 2018-04-06 10:53:21 +02:00
ccgbugs fixes #7392 (#7395) 2018-03-23 13:28:22 +01:00
clearmsg make more tests green 2018-02-10 20:55:22 +01:00
closure make more tests green 2018-02-10 20:55:22 +01:00
cnstseq
collections Updated tests for CritBitTree $ 2018-06-07 18:49:59 +03:00
compilerapi compiler API: final cleanups; improve security by diabling 'gorge' and friends 2018-05-29 09:07:24 +02:00
compiles make tests green again 2018-05-02 13:34:54 +02:00
concat
concepts Correct field lookup in concept types 2018-06-12 00:36:43 +03:00
constr
constraints make more tests green 2018-02-10 20:55:22 +01:00
constructors make tests green again 2018-05-02 13:34:54 +02:00
controlflow make tests green again 2018-05-14 21:38:18 +02:00
converter make tests green again 2018-05-02 13:34:54 +02:00
coroutines
cpp fix #7653 2018-06-10 22:27:51 +03:00
defaultprocparam
deprecated
destructor
dir with space
discard more chatty error message for the 'discard' checking 2018-02-05 16:49:06 +01:00
distinct make tests green 2018-05-02 13:34:54 +02:00
dll
effects make tests green again 2018-05-02 13:34:54 +02:00
enum remove dead code elimination option (#7669) 2018-04-23 11:02:38 +02:00
errmsgs Allow stacktrace and linetrace pragmas on procs 2018-06-12 12:31:14 +03:00
exception Cpp codegen: handling of imported exceptions. Fixes #3571 (#7360) 2018-04-10 12:14:59 +02:00
exprs make tests green 2018-05-05 21:45:07 +02:00
fields
flags Fixes #802, #803 and #3775 - genscript issues (#7677) 2018-04-25 10:52:32 +02:00
float Fix for isssue in parseBiggestFloat #7060 (#7061) 2018-01-11 01:57:20 +01:00
fragmentation disable flaky fragmenation test for AppVeyor 2018-03-19 17:42:52 +01:00
friends
gc Fix gc tests for BoehmGC (#7094) 2018-01-18 09:04:32 +01:00
generics fix #7653 2018-06-10 22:27:51 +03:00
gensym
global
implicit
import_in_config
init
iter Cleanup copypaste leftover 2018-06-07 15:28:41 +03:00
js Fix cmpStrings in js mode (#7604) 2018-04-15 17:34:03 +02:00
lent basic 'lent T' test works 2018-01-21 03:04:22 +01:00
let make more tests green 2018-02-10 20:55:22 +01:00
lexer Combine some of the lexer tests into a single file 2018-06-05 21:05:13 +02:00
lookups
macros fix #5930 2018-06-13 12:18:21 +02:00
magics
manyloc make tests green again 2018-05-02 13:34:54 +02:00
metatype make tests green again 2018-05-02 13:34:54 +02:00
method make more tests green 2018-04-30 02:56:19 +02:00
misc Support multi byte characters in module names (#7916) 2018-05-31 10:38:43 +03:00
modules implement the export/except statement 2018-05-07 09:37:49 +02:00
namedparams make more tests green 2018-02-10 20:55:22 +01:00
newconfig Add a few useful os calls to nimscript (#7442) 2018-04-10 18:50:23 +02:00
nimble
niminaction
notnil make tests green again 2018-05-02 13:34:54 +02:00
objects fixes #7637; assignments are not allowed to slice object; minor breaking change 2018-04-21 21:22:36 +02:00
objvariant make tests green again 2018-05-14 21:38:18 +02:00
openarray
osproc osproc: fix double close on POSIX (#5724) 2018-04-16 20:02:26 +02:00
overflw Added more tests to toverflw 2018-06-15 19:46:17 +03:00
overload Backwards-compatible support for keyword arguments in the command syntax 2018-05-07 09:37:49 +02:00
package_level_objects
parallel .experimental can now be used to enable specific features 2018-04-24 09:34:29 +02:00
parser Combine some of the lexer tests into a single file 2018-06-05 21:05:13 +02:00
pragmas remove dead code elimination option (#7669) 2018-04-23 11:02:38 +02:00
proc make tests green again 2018-05-02 13:34:54 +02:00
procvar
range make tests green again 2018-05-02 13:34:54 +02:00
rational
realtimeGC Fix longgc category tests (#7095) 2018-01-22 15:08:27 +01:00
rodfiles remove dead code elimination option (#7669) 2018-04-23 11:02:38 +02:00
seq
sets Fix compile time set cardinality (#7558) 2018-04-10 10:38:16 +02:00
showoff
specialops
statictypes fixes #6843 2018-04-06 13:10:22 +02:00
stdlib Add MemMapFileStream. Fixes in memFiles. (#7944) 2018-06-14 17:34:26 +01:00
system test negative range array 2018-06-06 02:22:33 -03:00
template Merge pull request #7981 from cooldome/Fix_-7980 2018-06-12 11:50:40 +02:00
testament testament: minor code formating change 2018-06-17 14:16:01 +02:00
testdata
threads fixes channels for --gc:regions 2018-05-25 16:21:33 +02:00
trmacros make tests green 2018-05-05 21:45:07 +02:00
tuples rename SomeReal to SomeFloat (#7617) 2018-04-15 19:59:11 +02:00
typerel fixed wrong test 2018-06-06 22:29:31 +07:00
types make tests green again 2018-05-14 21:38:18 +02:00
untestable Add OpenSSL 1.1.0 support #5000 2017-12-28 21:57:43 +00:00
usingstmt
varres fixes #5113 2018-04-21 23:58:24 +02:00
varstmt
vm Fix for newStringOfCap in VM (#7901) 2018-06-04 13:38:26 +02:00
benchmark.nim
js.html
js.nim
mmaptest.nim
readme.md
rectest.nim
stckovfl.nim
test_nimscript.nims

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.