diff options
author | Araq <rumpf_a@web.de> | 2012-07-01 19:35:19 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-07-01 19:35:19 +0200 |
commit | fe285b354dee2c8148cd66207d8ed528c7845e5d (patch) | |
tree | 01f799a3905ede0ffe6fb5af49d063733203051b /tests/specials.nim | |
parent | ee1bcb6414a50642811632a92a803840c1c67036 (diff) | |
download | Nim-fe285b354dee2c8148cd66207d8ed528c7845e5d.tar.gz |
JS codegen enhancements; still unusable
Diffstat (limited to 'tests/specials.nim')
-rw-r--r-- | tests/specials.nim | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/specials.nim b/tests/specials.nim index da2013e02..073ea0d27 100644 --- a/tests/specials.nim +++ b/tests/specials.nim @@ -169,6 +169,22 @@ proc compileDebuggerTests(r: var TResults, options: string) = compileSingleTest(r, "tools/nimgrep", options & " --debugger:on") +# ------------------------- JS tests ------------------------------------------ + +proc runJsTests(r: var TResults, options: string) = + template test(filename: expr): stmt = + runSingleTest(r, filename, options & " -d:nodejs", targetJS) + runSingleTest(r, filename, options & " -d:nodejs -d:release", targetJS) + + # tactiontable, texceptions, texcpt1, texcsub, tfinally, tfinally2, + # tfinally3 + for t in os.walkFiles("tests/js/t*.nim"): + test(t) + test "tests/run/tactiontable" + test "tests/run/tmultim1" + test "tests/run/tmultim3" + test "tests/run/tmultim4" + # ------------------------- register special tests here ----------------------- proc runSpecialTests(r: var TResults, options: string) = runRodFiles(r, options) |