Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2011-01-04 12:06:51 +0300
committerisaacs <i@izs.me>2011-01-04 12:15:07 +0300
commitc7ddbb8d7c02484a92243e75fc3664b0446a511b (patch)
tree2a4fc7e11b57b98d1065fc573e8aa1971780a981 /test
parent51ddec79032b1ae35e8f0731cb1700b6ae8bc8f0 (diff)
Make this a better test
Diffstat (limited to 'test')
-rw-r--r--test/packages/env-reader/package.json16
-rwxr-xr-xtest/packages/env-reader/test.sh3
2 files changed, 18 insertions, 1 deletions
diff --git a/test/packages/env-reader/package.json b/test/packages/env-reader/package.json
index b68f3a852..2d3cbd7ef 100644
--- a/test/packages/env-reader/package.json
+++ b/test/packages/env-reader/package.json
@@ -1,4 +1,18 @@
{ "name" : "env-reader"
, "version" : "1.2.3"
-, "scripts" : { "install" : "env | grep npm" }
+, "dependencies" : { "connect":"*", "fab":"*", "glob":"*" }
+, "scripts" :
+ { "install" : "./test.sh"
+ , "preinstall" : "./test.sh"
+ , "activate" : "./test.sh"
+ , "postactivate" : "./test.sh"
+ , "preuninstall" : "./test.sh"
+ , "postuninstall" : "./test.sh"
+ , "predeactivate" : "./test.sh"
+ , "test" : "./test.sh"
+ , "stop" : "./test.sh"
+ , "start" : "./test.sh"
+ , "restart" : "./test.sh"
+ , "foo" : "./test.sh"
+ }
}
diff --git a/test/packages/env-reader/test.sh b/test/packages/env-reader/test.sh
new file mode 100755
index 000000000..c31a53db1
--- /dev/null
+++ b/test/packages/env-reader/test.sh
@@ -0,0 +1,3 @@
+#!/usr/bin/env sh
+env | grep npm | sort | egrep 'dependency|bundle'
+echo NODE_PATH=$NODE_PATH