Bung
c2f80de1c7
fix #14822 copy test into var in matrix process, so can reset startTime before actully run ( #15000 )
...
* TTest pass by ref , so can reset startTime before actully run
* change TTest to ref type
* clone test in matrix process
2020-07-17 11:01:47 +02:00
narimiran
46aacf917f
Fix style inconsistencies due to the previous commit
2020-07-06 11:24:43 +02:00
narimiran
ebaf603c84
revert 0944b0f4
2020-07-06 10:55:51 +02:00
Timothee Cour
dc5a40f3f3
{.deprecated: [existsFile: fileExists].} ( #14735 )
...
* {.deprecated: [existsFile: fileExists].}
* s/existsFile/fileExists/ except under deps
* workaround pending #14819
* fix test
2020-07-02 16:19:13 +02:00
Timothee Cour
3732556468
fix ./koch tests following #14823 ( #14845 )
2020-06-28 14:34:34 -07:00
Timothee Cour
90808877c5
testament: generic N-fold batching: windows CI 37mn=>16m ( #14823 )
...
* testament: run CI faster thanks to batching
* move ta_in, tstdin into existing tosproc
* move ta_out,tafalse,texitcode,tstderr into existing tosproc
* joinable osproc
* move tstdout into existing tosproc
* spec: batchable; fix tests
* fixup
2020-06-27 16:51:17 +02:00
Timothee Cour
a9eee6db65
misc testament cleanups ( #14764 )
...
* misc testament cleanups extracted cleanups from #14530
* make sure all CI failures can be searched with `FAIL: ` including megatest failures
2020-06-23 10:53:03 +02:00
Timothee Cour
dfe51d10a1
addQuitProc now works with closures, and c, js(node/browser) backend; fix some bugs in testament (#14342 )
...
* make addQuitProc great again
* fix bugs in testament
* fix test
* change 2016 => 2020
* addQuitProc => addExitProc + locks
* move to std/exitprocs
2020-06-16 11:43:48 +02:00
Timothee Cour
bf604c6829
normalizeExe ( #14668 )
2020-06-15 10:57:34 +02:00
alaviss
4b43d42b98
testament: don't rely on Nim source structure [backport:1.2] ( #14077 )
...
It's also just faster to get the current file name instead of scanning
the PATH.
2020-04-23 09:26:06 +02:00
Miran
8088633250
faster CIs ( #13803 )
...
* ttables: smaller table, 5x speedup
* thavlak: less iterations, less loops; 30% speedup
* tasyncclosestall: shorter timeout; 35% speedup
* gcleak4: less iterations, 2x speedup
* ttimes: remove deprecated stuff
* tdangerisrelease: remove cpp backend, 3x speedup
* tfrexp1: smaller range, 2x speedup
* trtree: fix warnings, less iterations, 6x speedup
* tasyncawait_cyclebreaker: smaller swarm size; 2x speedup
* trealloc: smaller number of iterations; 10x speedup
* towned_binary_tree: less iterations, 4x speedup
* tclosure: remove unused code, less iterations; 2x speedup
* twaitany: less durations; 1.4x speedup
* tasync_misc: less iterations, 2x speedup
* t8535: smaller sleep, 1.5x speedup
* tmanyjoin: smaller sleep, 2x speedup
* t12221: shorter sleeps, removed two slower tests; 1.6x speedup
* tfuturestream: smaller sleep; 1.5x speedup
* growobjcrash: less iterations; 2x speedup
* ttryrecv: smaller sleep; 1.5x speedup
* treusetvar: less threads; 2x speedup
* delete tthreadanalysis2, basically a duplicate of tthreadanalysis
* t7758: less iterations, 1.5x speedup
* tasyncawait: smaller swarm, less messages; 1.5x speedup
* tjsandnativeasync: smaller sleep, 1.5x speedup
* tpendingcheck: smaller sleep, 1.5x speedup
* remove rodfiles test category
* move tseq from its own category to 'collections' category
* remove unneeded tests and helpers from 'assert' category
* stdlib: merge tbitops2 into tbitops
* remove 'trepr2' from 'stdlib' cat
* merge 'tstreams' into one file
* remove 'tinefficient_const_table' from 'ccbugs' cat
* merge 'tcollections_to_string' into 'tcollections'
* tblocking_channel: smaller sleep, small speedup
* tconvexhull: less iterartions; 1.2x speedup
* merge 'tdeepcopy2' into 'tdeepcopy'
* merge 'tdisjoint_slice2' into 'tdisjoint_slice1'
* tmissing_deepcopy: smaller sequence
* tsendtwice: smaller arrays; 5x speedup
* remove 'tindexerrorformatbounds'
* disable multimethod tests
* remove 'gc:none' and 'refc' without 'd:useRealtimeGC' from gc tests
* koch.nim: bootstrap just with '-d:release', no need for 'csource'
* add github workflow for documentation
* testament: no need for 8 sub-second decimals
2020-03-30 13:18:12 +02:00
Arne Döring
88566cc651
allow category nimble-packages to test a single package ( #13576 )
2020-03-18 21:36:48 +01:00
Timothee Cour
debe7fffd8
testament: this now works: "testament r /abspath/to/test.nim" ( #13358 )
2020-02-09 13:44:16 +01:00
Miran
cdedb86348
testament: introduce 'matrix' for testing multiple options ( #13343 )
2020-02-07 16:45:49 +01:00
alaviss
5124b2e575
testament/azure: major rewrite ( #13246 )
...
This commit features a major rewrite of Azure Pipelines integration,
turning the spaghetti it originally was into something maintainable.
Key changes:
- No longer requires a ton of hooks into testament.
- Results are now cached then bulk-uploaded to prevent throttling from
Azure Pipelines, avoiding costly timeouts.
- A low timeout is also employed to avoid inflated test time.
- The integration is now documented.
2020-01-25 09:32:27 +01:00
Timothee Cour
15043d35b8
make SuccessX show project file + output file ( #13043 )
...
* make SuccessX show project file + output file
* address comments
* fix test and add `result.err = reNimcCrash` otherwise hard to see where reNimcCrash used
* address comments
2020-01-08 00:39:07 +01:00
Andreas Rumpf
83a736a34a
ARC: cycle detector ( #12823 )
...
* first implementation of the =trace and =dispose hooks for the cycle collector
* a cycle collector for ARC: progress
* manual: the .acyclic pragma is a thing once again
* gcbench: adaptations for --gc:arc
* enable valgrind tests for the strutils tests
* testament: better valgrind support
* ARC refactoring: growable jumpstacks
* ARC cycle detector: non-recursive algorithm
* moved and renamed core/ files back to system/
* refactoring: --gc:arc vs --gc:orc since 'orc' is even more experimental and we want to ship --gc:arc soonish
2019-12-17 17:37:50 +01:00
3n-k1
0944b0f441
[backport] Fix style issues in lib/, tools/, and testament/. Fixes #12687 . ( #12754 )
2019-11-28 08:32:11 +01:00
Araq
80b508d337
test suite: rename tests containing 'fail' for easier search in logs
2019-11-26 16:04:28 +01:00
Andreas Rumpf
223e65e529
attempt to add valgrind support to the CIs and testament ( #12646 )
...
* attempt to add valgrind support to the CIs and testament
* valgrind (currently) works only on 64-bit Linux
2019-11-18 09:10:48 +01:00
Leorize
acebcd7899
testament: add azure integration
2019-10-03 18:36:07 +02:00
Ray Imber
9dd297f613
Locks modules should give a compile error when threads are not enabled. ( #12231 )
...
* Locks modules should give a compile error when threads are not enabled.
* fix the compile flags to make the tests pass, or ignore files where necessary.
* Fixed when statement to account for doc builds.
2019-09-26 15:45:50 +02:00
Araq
c9f3a8b269
added a testcase for #12195 ; testament now supports a 'timeout' spec field
2019-09-17 15:15:12 +02:00
Andreas Rumpf
1c03604ec6
make tests green again
2019-09-13 20:11:01 +02:00
Yuriy Glukhov
5783cd67a8
Fixed c filenames mangling ( #12161 )
2019-09-11 20:47:58 +02:00
Timothee Cour
3eb89481cb
fix tests
2019-09-06 15:49:25 -07:00
Andreas Rumpf
82d5e773e3
make testament a tool we ship with Nim; fixes #12084 ( #12088 )
...
* make testament a tool we ship with Nim; fixes #12084
* moved config to fit
* adapt testament tests to use the testament binary
2019-08-30 15:43:07 +02:00