Andrey R (cooldome) dbc1425e47 fix #15662 4 vuotta sitten
..
actiontable 7f18d7cbc1 Merge tests into a larger file (part 1 of ∞) (#9318) 6 vuotta sitten
alias 000b8afd26 Remove expr/stmt (#5857) 7 vuotta sitten
align abea80376a fixes #13122 (#13126) 5 vuotta sitten
ambsym 1105d03644 require errormsg to be specified before file. 6 vuotta sitten
arc 66cd9c2e57 Fix #15599 (#15601) 4 vuotta sitten
arithm 2f557652d4 fix operators containing percent for VM usage (#13536) 4 vuotta sitten
array 4c08e64e98 disallow typedesc in arrays & move existing checks to `types.typeAllowedAux` (#13261) 4 vuotta sitten
assert da29222f86 init checks and 'out' parameters (#14521) 4 vuotta sitten
assign bf2e052e6d fix rtti sizeof for varargs in global scope (#13125) [backport] 5 vuotta sitten
astoverload 20b5f31c03 new tester; all tests categorized 11 vuotta sitten
astspec 39290cf88c Fix spellings (#12277) [backport] 5 vuotta sitten
async aa1d7fe1e9 closureiters: fixes #15243 (#15454) [backport:1.2] 4 vuotta sitten
bind 45d1e55e72 Add testcases for #11811 and #14315 (#14726) 4 vuotta sitten
borrow 4cb41f53f0 Add testcase for #14440 (#14771) 4 vuotta sitten
casestmt 3f00a738db fixes #15280 [backport:1.2] (#15281) 4 vuotta sitten
ccgbugs 8978112457 fixes a C code generator regression, no need to backport, only the 1.4 line is affected (#15569) 4 vuotta sitten
ccgbugs2 e7f280bd26 Remove deprecated stuff from stdlib (#14699) 4 vuotta sitten
clearmsg 1105d03644 require errormsg to be specified before file. 6 vuotta sitten
closure b022576ce9 Use typeflag instead 4 vuotta sitten
cnstseq 1105d03644 require errormsg to be specified before file. 6 vuotta sitten
collections 3de5296337 remove a condition that table size must be passed as power of 2 (#14926) 4 vuotta sitten
compilepragma 7e9cda7dba fixes #10299 (#11324) 5 vuotta sitten
compiler e909486e5c trunner was not actually being tested in non-CTFFI mode; minor testament cleanups (#14377) 4 vuotta sitten
compilerapi 098a8a7c52 nimeval errorHook support (#15255) 4 vuotta sitten
compilerfeatures 9ecb1aae80 new compiler feature: --expandMacro 5 vuotta sitten
compiles 2acf74d458 delete list comprehension (#12392) 5 vuotta sitten
concat 20b5f31c03 new tester; all tests categorized 11 vuotta sitten
concepts add003a074 fix assignment to converted concept type (#15051) 4 vuotta sitten
constr 00528cbc3c Add testcase for #10465 (#14943) 4 vuotta sitten
constraints 1105d03644 require errormsg to be specified before file. 6 vuotta sitten
constructors be95f8fdfa Turn some of the errors back into warnings 4 vuotta sitten
controlflow 299ddda5f6 Make unreachable code a warning instead of an error (#14816) 4 vuotta sitten
converter dfe51d10a1 `addQuitProc` now works with closures, and c, js(node/browser) backend; fix some bugs in testament (#14342) 4 vuotta sitten
coroutines e35b21e553 Close#5586 (#14682) 4 vuotta sitten
cpp 142c59fc37 fix typos and deprecation warnings for tconvariancerules.nim (#13772) 4 vuotta sitten
defaultprocparam 35ff17410f Expand hoisted default params in sem (#15270) 4 vuotta sitten
deprecated 40b58a0a18 fix #11009 (#14935) 4 vuotta sitten
deps e7f280bd26 Remove deprecated stuff from stdlib (#14699) 4 vuotta sitten
destructor da4aa2e1fb renamed '=' to '=copy' [backport:1.2] (#15585) 4 vuotta sitten
dir with space fa058773db fixes #10042 (allow spaces in import) (#10504) 6 vuotta sitten
discard 7f1d2489ad improve the 'has to be discarded' error message 4 vuotta sitten
distinct 6c83eb48c2 add testcase for #7165 (#15368) 4 vuotta sitten
distros e63fc95bd4 fix tdistros test which was failing on Nightlies 4 vuotta sitten
dll f785174c60 Ref #14094 - disable hot code reloading tests on NetBSD (#15458) 4 vuotta sitten
effects 0426a4d85a fixes #15508 (#15509) 4 vuotta sitten
enum 9474a818af fix enumtostr crash for enum-range (#13035) 5 vuotta sitten
errmsgs 3b901d1e36 docgen: improve alignment of comments (still not perfect) (#15506) 4 vuotta sitten
exception b49ac11a77 fix #10343 (#14789) 4 vuotta sitten
exprs ff1c0bae4c update tests that tested for the 'discard' error messages 4 vuotta sitten
fields 795044ed2b make tests green again 5 vuotta sitten
flags 1105d03644 require errormsg to be specified before file. 6 vuotta sitten
float 7d6cbf290a Error -> Defect for defects (#13908) 4 vuotta sitten
fragmentation 381498b0db tests: disable flaky tests for now; closes #9421 6 vuotta sitten
friends e80465dacf tests: Trim .nim files trailing whitespace 9 vuotta sitten
gc e9df8ebcfd gc_regions: cleanup & fixes for deallocation (#11920) 4 vuotta sitten
generics 40a868bccc add testcase for #6060 (#15366) 4 vuotta sitten
gensym 488f3ed085 fixes yet another gensym regression (#12145) 5 vuotta sitten
global 1105d03644 require errormsg to be specified before file. 6 vuotta sitten
ic c8cffaf420 Incremental compilation (IC): Improvements (#11881) 5 vuotta sitten
implicit a5ecbf823f lots of small changes 6 vuotta sitten
import_in_config 154db46db8 fixes a regression that caused --import in a config file to break things 8 vuotta sitten
init da29222f86 init checks and 'out' parameters (#14521) 4 vuotta sitten
isolate 71dd5f85b9 'isolate' builtin; refs https://github.com/nim-lang/RFCs/issues/244 (#15011) 4 vuotta sitten
iter c2434d939e fixes #15360 [backport:1.2] (#15378) 4 vuotta sitten
js 7cee63bba3 avoid #8231, bitwise move to mul,div (#15070) 4 vuotta sitten
lent cb1ecbf956 closes #14878 4 vuotta sitten
let 9acbf99efb Allow let to not have value when using importc (#14258) 4 vuotta sitten
lexer 34815a4697 megatest: make it green on Linux 6 vuotta sitten
lookups 66c50c2ffc implement the 'bind' statement for generics, it was an oversight that this was never implemented (#14584) 4 vuotta sitten
macros 92163fa330 implements https://github.com/nim-lang/RFCs/issues/258 (#15503) 4 vuotta sitten
magics 51578be296 close #12746; minor cleanup (#14379) 4 vuotta sitten
manyloc 3de5296337 remove a condition that table size must be passed as power of 2 (#14926) 4 vuotta sitten
metatype a6cbe58e8c typetraits.$: $((int, float), int)` is now `"((int, float), int)"` instead of `"(tuple of (int, float), int)" (#14812) 4 vuotta sitten
method 7d6cbf290a Error -> Defect for defects (#13908) 4 vuotta sitten
misc fe187719ab fix #15516 (#15518) 4 vuotta sitten
modules e2b1491905 Fix #11352 strutil.insertSep() fails on negative numbers (#15087) 4 vuotta sitten
namedparams 6c487a6309 fixes #12196 5 vuotta sitten
newconfig 695154970d deprecate existsDir; use dirExists instead (#14884) 4 vuotta sitten
nimble acadda8da2 tnimblepathdollarfail.nim -> tests/nimble/tnimblepathdollar_fault to reduce false positives when searching for `fail` in CI logs (#14450) 4 vuotta sitten
nimdoc 511bd947d3 fix bug in semgnrc: runnableExamples should not semcheck, even with > 1 arg (#14768) 4 vuotta sitten
niminaction e7f280bd26 Remove deprecated stuff from stdlib (#14699) 4 vuotta sitten
notnil eca8f1d79f Add tests for #8481, #6490 and #4061 (#14083) 4 vuotta sitten
objects 377f716766 fix #14698 nkRecWhen caused internalAssert in semConstructFields when generic type not mentioned in fields (#14709) 4 vuotta sitten
objvariant 3c38edf563 Better case coverage error message for alias and range enum (#12913) 5 vuotta sitten
openarray 1551fff853 clean up deprecated stuff and unused imports in tests (#13059) 5 vuotta sitten
osproc 26d656e73e Add first draft of new osproc.readLines (#15429) 4 vuotta sitten
overflw 7d6cbf290a Error -> Defect for defects (#13908) 4 vuotta sitten
overload e56d50d747 fix infinite recursion in typeRel (#15241) 4 vuotta sitten
package_level_objects c17f6c7837 new feature: package level objects 7 vuotta sitten
parallel 7828199827 #12103 - CI for OpenBSD (#12105) 4 vuotta sitten
parser 60ad95f799 Add testcase for invalid if statement (#15313) 4 vuotta sitten
pragmas 51e3e0c7c4 implements https://github.com/nim-lang/RFCs/issues/260 (#15505) 4 vuotta sitten
proc e8f4586c68 allow typed/untyped in magic procs (#12911) 5 vuotta sitten
procvar 749dbce4c6 Merge tests into a larger file (part 5 of ∞) (#9368) 6 vuotta sitten
range 7d6cbf290a Error -> Defect for defects (#13908) 4 vuotta sitten
rational 7d6cbf290a Error -> Defect for defects (#13908) 4 vuotta sitten
realtimeGC b26378a468 WIP, most tests are now skipped 6 vuotta sitten
semreject 3f00a738db fixes #15280 [backport:1.2] (#15281) 4 vuotta sitten
sets 42dad3a836 tables/sharedtables/intsets/etc: fix #13496, #13504, #13505; add lots of tests (#13498) [backport] 4 vuotta sitten
showoff 9465b5db44 Clean up macros (#14959) 4 vuotta sitten
specialops 547961f71e dotops: add a simple object delegation test 7 vuotta sitten
statictypes 0db32e9885 Add testcase for #12571 (#14955) 4 vuotta sitten
stdlib 78cbb52fa0 add tests for #15584 (#15619) 4 vuotta sitten
system 1fae66e4df better nativestacktrace support; refs #15284; backport [1.2] (#15384) 4 vuotta sitten
template fb58066b61 Fix #5691 (#15158) 4 vuotta sitten
testament a9eee6db65 misc testament cleanups (#14764) 4 vuotta sitten
testdata abe5cb82a0 Fix for #5134 (parseJson(string) should fail on leftover data) (#5203) 8 vuotta sitten
threads 8088633250 faster CIs (#13803) 4 vuotta sitten
tools 3f29911a94 new feature: --staticBoundChecks:on to enforce static array index checking (#10965) 4 vuotta sitten
trmacros f2b041f168 Reenable a few tests 4 vuotta sitten
tuples 5bd2da3f64 Fix #14911 (#14922) [backport] 4 vuotta sitten
typerel f2b041f168 Reenable a few tests 4 vuotta sitten
types d839eb9352 fix #14007 (#14012) [backport] 4 vuotta sitten
untestable 8e54bc5b0c Deprecate and/or remove ospaths (#14767) 4 vuotta sitten
usingstmt 9465b5db44 Clean up macros (#14959) 4 vuotta sitten
valgrind 223e65e529 attempt to add valgrind support to the CIs and testament (#12646) 5 vuotta sitten
varres 814f150184 fix #13848: make var result work with nim cpp (#13959) 4 vuotta sitten
varstmt 3b783f7e13 Testament: refactoring; makes the test joiner green 6 vuotta sitten
views 4e438f9096 const view types; fixes some cases from https://github.com/nim-lang/Nim/issues/15428 (#15488) 4 vuotta sitten
vm dbc1425e47 fix #15662 4 vuotta sitten
ast_pattern_matching.nim 389b140029 add tastspec (and ast_pattern_matching) (#10863) 5 vuotta sitten
config.nims 1648f1dd99 fix #14320 (tasyncawait.nim is recently very flaky) + avoid hardcoding service ports everywhere + flakyAssert (#14327) 4 vuotta sitten
dummy.txt a68a4bfaf2 Remove install.txt and readme.txt (#9521) 6 vuotta sitten
js.html 72a3e21f28 Removes executable bit for text files. 12 vuotta sitten
js.nim e80465dacf tests: Trim .nim files trailing whitespace 9 vuotta sitten
m14634.nim d149823019 fix #13166 tioselectors flaky test on freebsd+OSX (#14634) 4 vuotta sitten
mmaptest.nim 39290cf88c Fix spellings (#12277) [backport] 5 vuotta sitten
readme.md 54a52e7d08 Update link to parseSpec proc 4 vuotta sitten
rectest.nim e80465dacf tests: Trim .nim files trailing whitespace 9 vuotta sitten
stckovfl.nim e80465dacf tests: Trim .nim files trailing whitespace 9 vuotta sitten
test_nimscript.nims 695154970d deprecate existsDir; use dirExists instead (#14884) 4 vuotta sitten

readme.md

This directory contains the test cases.

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

Note: Testament is only aware of tests under a directory (eg tests/foo/) and will ignore top-level tests like tests/tbar.nim.

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: run

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 pcat <category> (or cat to avoid parallel testing, which is slower).

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.