diff options
Diffstat (limited to 'test/release')
-rw-r--r-- | test/release/benchmark.js | 14 | ||||
-rw-r--r-- | test/release/jetstream.js | 9 | ||||
-rw-r--r-- | test/release/run.js | 16 |
3 files changed, 39 insertions, 0 deletions
diff --git a/test/release/benchmark.js b/test/release/benchmark.js new file mode 100644 index 00000000..c4b10fbc --- /dev/null +++ b/test/release/benchmark.js @@ -0,0 +1,14 @@ +require("./run")([ + "-b", + "-b braces", + "-m", + "-mc passes=3", + "-mc passes=3,toplevel", + "-mc passes=3,unsafe", + "-mc keep_fargs=false,passes=3", + "-mc keep_fargs=false,passes=3,pure_getters,unsafe,unsafe_comps,unsafe_math,unsafe_proto", +].map(function(options) { + var args = options.split(/ /); + args.unshift("test/benchmark.js"); + return args; +})); diff --git a/test/release/jetstream.js b/test/release/jetstream.js new file mode 100644 index 00000000..37631e4a --- /dev/null +++ b/test/release/jetstream.js @@ -0,0 +1,9 @@ +require("./run")([ + "-mc", + "-mc keep_fargs=false,passes=3,pure_getters,unsafe,unsafe_comps,unsafe_math,unsafe_proto", +].map(function(options) { + var args = options.split(/ /); + args.unshift("test/jetstream.js"); + args.push("-b", "beautify=false,webkit"); + return args; +})); diff --git a/test/release/run.js b/test/release/run.js new file mode 100644 index 00000000..7b4755dc --- /dev/null +++ b/test/release/run.js @@ -0,0 +1,16 @@ +var child_process = require("child_process"); + +module.exports = function(tasks) { + (function next() { + if (!tasks.length) return; + var args = tasks.shift(); + console.log(); + console.log("\u001B[36m$> " + args.join(" ") + "\u001B[39m"); + var result = child_process.spawn(process.argv[0], args, { + stdio: [ "ignore", 1, 2 ] + }).on("exit", function(code) { + if (code != 0) process.exit(code); + next(); + }); + })(); +}; |