Commit Graph

191 Commits

Author SHA1 Message Date
Andreas Rumpf
700a2e125b make the tester compile without warnings 2018-05-06 09:00:55 +02:00
genotrance
e931f3b5a9 Fixes #802, #803 and #3775 - genscript issues (#7677)
* Fixes #802, #803 and #3775 - genscript issues

* Test case for genscript

* Test script

* Verify on Linux

* Update categories.nim

* Fix merge

* Improve test framework

* Windows fixes
2018-04-25 10:52:32 +02:00
Xiao-Yong
f543388959 unittest: default no color if stdout is not a tty (#7424)
We accept a new environment variable, NIMTEST_COLOR,
which override the effect of NIMTEST_NO_COLOR.
The environment variable, NIMTEST_COLOR, can be 'never'
or 'always', which set the color output to false or true,
respectively.
2018-04-12 17:57:34 +02:00
Andreas Rumpf
3bf1ce008f fixes #7236 2018-02-26 10:51:56 +01:00
Araq
5fe0c386ea disable symbol file tests for the old symbol file implementation 2018-02-19 13:19:43 +01:00
Sergey Avseyev
73af427f23 Fix longgc category tests (#7095)
testC command already has "gcc" as command, second "gcc" as option
generates "file not found error", and terminates the compiler with
error code
2018-01-22 15:08:27 +01:00
Dominik Picheta
b754bfabb6 Merge pull request #7023 from yglukhov/unify-async
Unify async macro and futures for js and native targets
2018-01-17 15:06:32 +00:00
Andreas Rumpf
b38f6d49b7 travis: attempt to make tests green again 2018-01-16 11:06:22 +01:00
Mathias Stearn
6db1b492e1 Include target in tester nimcache hash (#7053) 2018-01-14 15:22:48 +01:00
Dennis Felsing
5492190bc6 Fix lists of paths in posix environment (#7034)
Empty paths in a colon separated list would be considered as the current
directory, so have to ensure $PATH and $LD_LIBRARY_PATH are not empty
before separating it with :
2018-01-08 10:49:00 +01:00
Yuriy Glukhov
c93655e8b4 Unify async macro and futures for js and native targets 2018-01-05 16:40:51 +02:00
Sergey Avseyev
3f2636c765 Remove obsolete method analyzeAndConsolidateOutput (#6998)
After the change, when stacktraces rendered in reversed order (most recent
call first), this method removed all stacktraces in the test failures.
2018-01-01 00:39:55 +01:00
Araq
765116d547 testament html generation improvements; merged #6667 manually 2017-12-21 10:49:09 +01:00
Araq
18508cdcc3 testament: use splitWhitespace instead of split 2017-12-21 10:23:21 +01:00
Mathias Stearn
90345526ba Prep for tester parallel: private nimcache for each test (#6937)
* Compile tester with --opt:speed

This makes "tester html" substantially faster

* Use a private nimcache for each test

This allows reusing the cache between test runs. It is also prep for parallel
testing within a single category (#6913)
2017-12-18 10:10:52 +01:00
Dmitry Atamanov
1de3938008 Added test duration output (#6619) 2017-12-15 19:13:57 +01:00
Dominik Picheta
d3394be555 Async upcoming (#6585)
* Merge upcoming async with current.
* Various improvements to selectors (mostly docs).

Two changes to highlight:

* Renamed ``setEvent`` to ``trigger``
* Reused setBlocking from nativesockets.
* Various changes/fixes to asyncdispatch after upcoming merge.
* Make some attempts to be compatible with older selectors.
* Reuse epoll module in ioselectors_epoll.
2017-11-22 15:43:10 +01:00
Jacek Sieka
035f0fb023 pass nim path to subprocess testament (#6779) 2017-11-19 09:22:36 +01:00
Andreas Rumpf
830d1bb754 fixes #6775 2017-11-18 15:09:10 +01:00
Jacek Sieka
b122836acf use targets from test spec when running testament tests (#6687) 2017-11-15 22:37:51 +01:00
Fredrik Høisæther Rasch
3d5d6931f0 Appveyor thttpclient (#6744)
* App option value for disabling tests for AppVeyor

* Disable thttpclient on AppVeyor
2017-11-15 17:25:48 +01:00
Andreas Rumpf
4dad120d47 fixes a tester regression 2017-11-06 20:32:06 +01:00
Jacek Sieka
11f6e626d7 pass on testament args to sub-process (#6688) 2017-11-06 09:37:21 +01:00
Andreas Rumpf
4ea09e4df5 attempt to make travis green again 2017-11-05 21:44:22 +01:00
GULPF
cf9da7d751 Always compile tests in the JS category with the JS backend (#6680) 2017-11-03 21:08:09 +01:00
Araq
00898dae7a attempt to fix the tester; tests should be red now 2017-10-31 22:31:10 +01:00
Xiao-Yong
616db85c61 Let the environment variable NIMBLE_DIR overrides nimblepath in cfg file (#6542)
* Let the environment variable NIMBLE_DIR overrides nimblepath in cfg file

If the length of NIMBLE_DIR is larger than zero, the nimblepath
will be set to $NIMBLE_DIR/pkgs
2017-10-28 09:38:31 +02:00
Araq
fa02ffaeba made 'testament all' run in parallel 2017-10-25 17:37:03 +02:00
Araq
a5f1abc5ca testament: no sqlite or re dependencies anymore 2017-10-25 17:37:03 +02:00
Fredrik Høisæther Rasch
e40bf9036f Testament HTML generation upgrade (#6058) 2017-10-25 13:48:59 +02:00
Araq
b219fc74ad fixes #5143 2017-10-16 12:45:43 +02:00
Andreas Rumpf
9d4f5c6d2c enable unguarded_access test 2017-10-02 23:35:56 +02:00
Dominik Picheta
7889c03cbc Add tests for examples from Nim in Action. 2017-10-01 17:17:40 +01:00
Dominik Picheta
90fa64501f Implement .nimble-link files in the compiler and add tests for them. 2017-09-02 15:28:25 +01:00
Dominik Picheta
9b465a2361 Add readme to tests. Add fileDir option to testament & create nimble test. 2017-09-02 15:03:39 +01:00
Andreas Rumpf
686a9ae66a tester: better error message comparisons 2017-08-31 21:39:24 +02:00
Andreas Rumpf
4846e4e452 tester: make 'nimout' matching more robust against whitespace issues 2017-08-31 13:59:06 +02:00
Fredrik Høisæther Rasch
c39e202976 Introduce first class support for Android (#5772) 2017-08-06 02:18:15 +02:00
zah
39aef12446 review and merge zahary's work (#5849)
* proper indentation for the generated JS code
* improved dead-code elimination for JavaScript
* test the JS dead-code elimination

A new test spec has been added - "maxcodesize". It specifies the
maximum size of the generated code in bytes.
2017-06-03 12:45:10 +02:00
Jacek Sieka
6bbf0fb64d compiler option for testament (#5713)
* compiler option for testament

* different spacing
2017-05-15 16:34:30 +02:00
Zahary Karadjov
fe48dd1cbe further improvements to the error messages produced by concepts 2017-03-24 16:59:47 +02:00
Zahary Karadjov
74a80988d9 proper error reporting for concepts and the introduction of the {.explain.} pragma 2017-03-24 16:59:47 +02:00
Eugene Kabanov
8310d252c2 Update testament to include all tests from tests/threads category. (#5576) 2017-03-20 20:20:26 +01:00
Anatoly Galiulin
6fa1dba515 Add `tearDownForeignThreadGc` function (#5369) 2017-02-13 13:37:20 +01:00
Andreas Rumpf
4ac6a26031 testament: be verbose when --pedantic fails 2017-02-03 10:29:08 +01:00
Araq
e236039d10 make tests on Windows green under --pedantic 2017-02-02 21:12:36 +01:00
Araq
16260b23c7 make tests on Windows green 2017-01-31 23:05:36 +01:00
Araq
5b32dafff4 testament: OS specific disables 2017-01-31 22:54:58 +01:00
Araq
79f4b37d3b added test case; threadex example crashes now 2017-01-30 21:11:37 +01:00
Andreas Rumpf
61937974e2 added system.onThreadCreation feature for safe thread local storage initializations 2017-01-18 13:41:55 +01:00