Permalink
Browse files

manual tests

  • Loading branch information...
1 parent 0f71386 commit d29549d09636c7d5b0365e56c6329426632cb3b7 @cadorn cadorn committed Dec 17, 2011
Showing with 33 additions and 0 deletions.
  1. +22 −0 tests/manual/node-exec.js
  2. +11 −0 tests/manual/node-fork.js
@@ -0,0 +1,22 @@
+
+var EXEC = require('child_process').exec;
+
+EXEC("npm --verbose install -f nodemailer@0.2.3", {
+ cwd: "/pinf/tmp/1/node_modules"
+}, function (error, stdout, stderr) {
+
+ console.log("error", error);
+ console.log("stdout", stdout);
+ console.log("stderr", stderr);
+
+
+ EXEC("npm --verbose install -f nodemailer@0.2.3", {
+ cwd: "/pinf/tmp/node_modules"
+ }, function (error, stdout, stderr) {
+
+ console.log("error", error);
+ console.log("stdout", stdout);
+ console.log("stderr", stderr);
+
+ });
+});
@@ -0,0 +1,11 @@
+
+// @see https://github.com/joyent/node/issues/2254
+
+var FORK = require('child_process').fork,
+ PATH = require("path");
+
+FORK(PATH.dirname(module.id) + "/node-exec.js", [], {
+ env: process.env,
+ cwd: process.cwd()
+});
+process.exit(0);

0 comments on commit d29549d

Please sign in to comment.