Commit Graph

120 Commits

Author SHA1 Message Date
Andreas Rumpf
dcf830bba9 fixes #3184 2016-05-22 14:28:53 +02:00
Andreas Rumpf
d691867c84 fixes #3793 2016-05-16 17:52:50 +02:00
Andreas Rumpf
9a747828fe Merge pull request #4049 from arnetheduck/tester-targets
tester: allow filtering tests by target
2016-04-07 13:34:01 +02:00
Dominik Picheta
082ba914bc Prevent tester from checking for output diffs for actionRunNoSpec. 2016-04-05 21:45:52 +01:00
Jacek Sieka
796f4e917c untaint command line option for parsing 2016-04-06 00:01:57 +08:00
Jacek Sieka
25abb7c2b6 tester: allow filtering tests by target 2016-04-05 20:51:13 +08:00
Yuriy Glukhov
1b4fc744db Fixed bad JS codegen for new json with tables. Added json to JS tests. 2016-02-29 17:53:52 +02:00
Yuriy Glukhov
d2ecd84f67 JS: Corrected shift operators. Made casting between ints behave like C does. 2016-01-22 18:32:47 +02:00
Yuriy Glukhov
c0d0e5efd9 Unsigned arith corrected for JS 2016-01-21 17:00:42 +02:00
Yuriy Glukhov
2fcc37fd2b fixed float formatting for js 2015-11-26 01:10:52 +02:00
Dominik Picheta
82f3cab1ac Improved postgres docs and added untestable tests. 2015-10-27 11:06:00 +01:00
Yuriy Glukhov
e5aefbd1d4 Fixed tests for TravisCI 2015-10-22 21:34:37 +03:00
Adam Strzelecki
abb82554b7 compiler/msgs: Default to stderr for diagnostics
Previously we were defaulting to stdout for diagnostics, which could interfere
with scripts or `nim c -r' programs outputting their results to stdout,
possibly mixing their output with compiler messages.

This change makes now Nim to be inline with other compilers emitting
diagnostics to stderr. Also now --stdout option has proper meaning making all
diagnostics to be sent to stdout instead.

NOTE: Tester now calls compiler with --stdout.
2015-10-16 20:55:17 +02:00
Yuriy Glukhov
2166b7bc46 Fixed ret by var in js 2015-10-15 16:04:53 +03:00
Aman Gupta
e2dbf222e6 Merge remote-tracking branch 'origin/devel' into appveyor 2015-10-13 15:25:40 -07:00
Araq
8be9e46403 udpated the compiler and tester to use getOrDefault 2015-10-13 14:10:33 +02:00
Araq
645cf70112 disable new BoehmGC tests on Windows 2015-10-12 19:58:43 +02:00
Araq
967c20743a Merge branch 'gc-fixes' of https://github.com/rbehrends/Nim into rbehrends-gc-fixes 2015-10-12 17:34:44 +02:00
Aman Gupta
c3415a27d7 copy server.dll too? 2015-10-08 11:00:02 -07:00
Aman Gupta
a1750bd431 skip sdl/opengl/fsmonitor tests when unavailable 2015-10-08 10:58:52 -07:00
Aman Gupta
5bb0820596 show failure code 2015-10-08 10:58:37 -07:00
Aman Gupta
cadef43786 standardize on forward slashes for paths 2015-10-07 21:42:12 -07:00
Aman Gupta
f49cffeb19 framework is required 2015-10-07 18:28:57 -07:00
Aman Gupta
24ec975aa1 fix compile error 2015-10-07 18:15:59 -07:00
Aman Gupta
f0793a6d97 collect any output of appveyor command 2015-10-07 17:50:54 -07:00
Aman Gupta
582c5054a1 report duration to appveyor runner 2015-10-07 16:42:08 -07:00
Aman Gupta
3dfcaec25f use category as filename, and full filename in test name 2015-10-07 16:27:06 -07:00
Aman Gupta
6af9ac18f1 clean up whitespace on error msg 2015-10-07 16:25:03 -07:00
Aman Gupta
c34cbe690c tie into appveyor test results api 2015-10-07 16:06:51 -07:00
Aman Gupta
c2940260e5 avoid sqlite db on travis and appveyor 2015-10-07 16:06:31 -07:00
Andreas Rumpf
050e4815d0 Merge pull request #3314 from haiodo/emscripten-support
Emscripten support
2015-10-07 09:31:47 +02:00
Aman Gupta
391f2fc9b1 initialize new fields to empty values 2015-10-06 16:06:14 -07:00
Aman Gupta
7f5c49e204 copy nimrtl into lib, reset LD_LIBRARY_PATH after use 2015-10-06 15:54:12 -07:00
Aman Gupta
2240fd3f3f add tfile/tline assertions for template expansion file/line 2015-10-06 15:47:07 -07:00
Andrey Sobolev
d1b67cb9bb Merge remote-tracking branch 'nim-lang/devel' into emscripten-support 2015-10-06 10:55:52 +06:00
Aman Gupta
6e7759734e show stderr w/ reExitcodesDiffer 2015-10-02 17:38:48 -07:00
Andrey Sobolev
4c53a3a7a5 Merge remote-tracking branch 'nim-lang/devel' into emscripten-support 2015-10-01 22:08:29 +06:00
Aman Gupta
b093c0abd0 show full compiler output with reNimcCrash 2015-09-30 19:32:09 -07:00
Aman Gupta
435fbbc943 allow testament/tester to run single file 2015-09-30 12:09:58 -07:00
Andrey Sobolev
ed103e8e38 Added a test to check how gc works in emscripten.
Test will fail in emscripten and pass in normal environment.
2015-09-23 16:21:00 +06:00
Reimer Behrends
9deab06c1b Include Boehm GC in garbage collection tests. 2015-09-08 19:29:29 +02:00
Adam Strzelecki
e80465dacf tests: Trim .nim files trailing whitespace
via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
2015-09-04 23:04:32 +02:00
patrick dw
69e15ac32f renamed writeln to writeLine in tests 2015-06-19 01:34:34 -05:00
Oscar Campbell
ee3d390b3f Revert from columnar layout. Remove temp-fix for 2857. 2015-06-10 19:52:26 +02:00
Oscar Campbell
0a810fd10f Treat unitest's default esc.seq. output as empty. 2015-06-04 22:53:39 +02:00
Oscar Campbell
071ccf3d02 Add "safety compilation". Improved, fixed messages
- node ext searcher also looks for "iojs" if no node(js?) found.
- koch ensures the local work dir compiler is freshly compiled before executing the tests.
- the tester can only run in the repo dir - now the compiler and libs used are also explicitly the local dirs - so no confusion from system wide pathing ("sufficiently sandboxed").
- fixed expectations in tmitems.nim test to match changes in json mod.
- re-layouted the columns / row printing slightly, making test fails pop out more, and everything "normal" layed back.
2015-06-04 07:33:27 +02:00
Oscar Campbell
51fc903dbf Made pathing (hopefully) Windows friendly. 2015-06-03 13:08:28 +02:00
Oscar Campbell
bf9053315c Ensure fresh compiler and local compiler + libs 2015-06-03 03:22:17 +02:00
Sergey Avseyev
411e602d13 Introduce pedantic mode for tester
Motivation
----------
External tools need to know whether or not any test in suite failed. For
example buildbot, or packaging tool would like to stop the execution and
mark it as failed if some tests does not pass.

Modification
------------
Add `--pedantic` switch to tester program which will force it to quit
with non-zero exit code if at least one failure detected. Also update
`tests()` proc in koch to inspect result from tester and propagate it to
user.

Result
------
Nothing has changed in default behaviour. But following invocations will
exit with non-zero code if there failed tests:

    ./koch tests --pedantic all
    ./tests/testament/tester --pedantic all
2015-05-25 22:37:30 +03:00
Simon Hafner
2bc1db7a30 run the C test too 2015-05-13 13:13:30 -05:00