Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added a Makefile for running tests and installing or uninstalling the…
… command-line tool
- Loading branch information
Caolan McMahon
committed
Sep 18, 2010
1 parent
24a92b6
commit e144ede
Showing
5 changed files
with
40 additions
and
17 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,14 @@ | ||
PREFIX ?= /usr/local | ||
|
||
test: | ||
./bin/nodeunit test | ||
|
||
install: | ||
cp -r ./ $(PREFIX)/lib/nodeunit | ||
ln -s $(PREFIX)/lib/nodeunit/bin/nodeunit $(PREFIX)/bin/nodeunit | ||
|
||
uninstall: | ||
rm -rf $(PREFIX)/lib/nodeunit | ||
rm -f $(PREFIX)/bin/nodeunit | ||
|
||
.PHONY: test install uninstall |
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
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 |
---|---|---|
@@ -1,8 +1,3 @@ | ||
#!/usr/bin/env node | ||
|
||
var path = require('path'); | ||
var fs = require('fs'); | ||
var lib = path.join(__dirname, '../lib'); | ||
|
||
var testrunner = require(lib + '/testrunner.js'); | ||
testrunner.run(process.argv.slice(2)); | ||
#!/bin/sh | ||
REALPATH=`readlink -f $0` | ||
node `dirname $REALPATH`/../lib/testrunner.js $@ |
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