From: Jean Privat Date: Mon, 23 Jun 2014 19:30:45 +0000 (-0400) Subject: Merge: Tests emscripten X-Git-Tag: v0.6.6~21 X-Git-Url: http://nitlanguage.org Merge: Tests emscripten The produced .js files are then executed by nodejs. All base tests that do not import kernel are skipped because since the module lib/emscripten.nit imports the kernel module, an automatic double definition of classes `Object` and `Sys` occurs. nodejs cannot perform correctly synchronized input, thus `stdin` and all file reading does not work although they work in a browser. As a workaround, a special module `emscripten_nodejs.nit` is added that just print "NOT_YET_IMPLEMENTED" on unsupported services on synchronized input, thus marking the test as skipped. Currently, 99 (7% of the 1390 tests) still cause some other kind of failures; they will be investigated later. The whole testing of all the tests takes 68m on my machine. ccache in unusable and the option --jcache of emcc does not bring any boost. So it is unlikely that `testall.sh` will include this engine. Pull-Request: #514 Reviewed-by: Lucas Bajolet Reviewed-by: Alexandre Terrasa --- c44a0753f42c5cea1ab6f458f547d9a954ede29d