diff options
author | Jose <jose@zeroc.com> | 2015-01-22 19:16:43 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2015-01-22 19:16:43 +0100 |
commit | f623cdba8d3dcf801b1483e15b5f0cb19ac77b4a (patch) | |
tree | 6cf5de43bbad54c89ed9fe232180062d48dba5d2 /js/gulpfile.js | |
parent | ICE-6279 OBjC: use servant factory methods (diff) | |
download | ice-f623cdba8d3dcf801b1483e15b5f0cb19ac77b4a.tar.bz2 ice-f623cdba8d3dcf801b1483e15b5f0cb19ac77b4a.tar.xz ice-f623cdba8d3dcf801b1483e15b5f0cb19ac77b4a.zip |
Port test controller server to Java
Diffstat (limited to 'js/gulpfile.js')
-rw-r--r-- | js/gulpfile.js | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/js/gulpfile.js b/js/gulpfile.js index dac9c6b6f7f..1e06d135585 100644 --- a/js/gulpfile.js +++ b/js/gulpfile.js @@ -225,6 +225,12 @@ gulp.task("common:slice", [], .pipe(gulp.dest("test/Common")); }); +gulp.task("common:slice:clean", [], + function() + { + del(["test/Common/Controller.js"]); + }); + gulp.task("common:slice:watch", ["common:slice"], function() { @@ -404,7 +410,8 @@ Object.keys(subprojects).forEach( ["common:css:watch", "common:js:watch"].concat(Object.keys(minDemos).map(minDemoWatchTaskName)))); gulp.task(group + ":clean", subprojects[group].map(groupCleanTask).concat( - group == "test" ? subprojects.test.map(testHtmlCleanTask) : ["demo_Ice_minimal:min:clean", "demo_ChatDemo:min:clean"])); + group == "test" ? subprojects.test.map(testHtmlCleanTask).concat(["common:slice:clean"]) : + ["demo_Ice_minimal:min:clean", "demo_ChatDemo:min:clean"])); }); function demoTaskName(name) { return "demo_" + name.replace("/", "_"); } @@ -460,8 +467,8 @@ gulp.task("test:run-with-browser", ["watch"].concat(useBinDist ? ["test", "demo" browserSync(); HttpServer(); - var p = require("child_process").spawn("python", ["test/Common/run.py"], {stdio: "inherit"}); - function exit() { p.exit(); } + var p = require("child_process").spawn("python", ["../scripts/TestController.py"], {stdio: "inherit"}); + function exit() { p.kill(); } process.on("SIGINT", exit); process.on("exit", exit); return gulp.src("./index.html").pipe(open("", {url: "http://127.0.0.1:8080/index.html"})); @@ -471,7 +478,7 @@ gulp.task("test:run-with-node", (useBinDist ? ["test"] : ["build"]), function() { var p = require("child_process").spawn("python", ["allTests.py", "--all"], {stdio: "inherit"}); - function exit() { p.exit(); } + function exit() { p.kill(); } process.on("SIGINT", exit); process.on("exit", exit); }); |