Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Caolan McMahon
committed
May 13, 2010
0 parents
commit 5d942fd
Showing
3 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "deps/nodeunit"] | ||
path = deps/nodeunit | ||
url = git://github.com/caolan/nodeunit.git |
Submodule nodeunit
added at
3437a4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/local/bin/node | ||
|
||
require.paths.push(__dirname); | ||
require.paths.push(__dirname + '/deps'); | ||
require.paths.push(__dirname + '/lib'); | ||
|
||
try { | ||
var testrunner = require('nodeunit').testrunner; | ||
} | ||
catch(e) { | ||
var sys = require('sys'); | ||
sys.puts("Cannot find nodeunit module."); | ||
sys.puts("You can download submodules for this project by doing:"); | ||
sys.puts(""); | ||
sys.puts(" git submodule init"); | ||
sys.puts(" git submodule update"); | ||
sys.puts(""); | ||
process.exit(); | ||
} | ||
|
||
process.chdir(__dirname); | ||
testrunner.run(['test']); |