summaryrefslogtreecommitdiff
path: root/deps/npm/test
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2012-07-13 11:40:38 -0700
committerisaacs <i@izs.me>2012-07-13 12:08:17 -0700
commit9d4362403c10dd28b5644b947945f853cd354f28 (patch)
treec08bf8dd199ee4231a28bd2bb7d5e93c80b43123 /deps/npm/test
parentacbfc408880a12c32ccc9d69bca91aad4e93e879 (diff)
downloadnode-new-9d4362403c10dd28b5644b947945f853cd354f28.tar.gz
npm: upgrade to 1.1.41
Diffstat (limited to 'deps/npm/test')
-rw-r--r--deps/npm/test/disabled/bundlerecurs/package.json4
-rw-r--r--deps/npm/test/disabled/change-bin-1/bin/foo2
-rw-r--r--deps/npm/test/disabled/change-bin-1/package.json3
-rw-r--r--deps/npm/test/disabled/change-bin-2/bin/bar2
-rw-r--r--deps/npm/test/disabled/change-bin-2/package.json3
-rw-r--r--deps/npm/test/disabled/failer/package.json5
-rw-r--r--deps/npm/test/disabled/fast/package.json9
-rw-r--r--deps/npm/test/disabled/package-bar/package.json7
-rw-r--r--deps/npm/test/disabled/package-config/package.json4
-rwxr-xr-xdeps/npm/test/disabled/package-config/test.js17
-rw-r--r--deps/npm/test/disabled/package-foo/package.json4
-rw-r--r--deps/npm/test/disabled/slow/package.json9
-rw-r--r--deps/npm/test/disabled/startstop/package.json3
-rw-r--r--deps/npm/test/packages/npm-test-files/ignore30
-rw-r--r--deps/npm/test/packages/npm-test-files/ignoredir1/a0
-rw-r--r--deps/npm/test/packages/npm-test-files/ignoredir2/a0
-rw-r--r--deps/npm/test/packages/npm-test-files/sub/ignore10
-rw-r--r--deps/npm/test/packages/npm-test-files/sub/ignore30
-rw-r--r--deps/npm/test/packages/npm-test-ignore/ignore30
-rw-r--r--deps/npm/test/packages/npm-test-ignore/ignoredir1/a0
-rw-r--r--deps/npm/test/packages/npm-test-ignore/ignoredir2/a0
-rw-r--r--deps/npm/test/packages/npm-test-ignore/sub/ignore10
-rw-r--r--deps/npm/test/packages/npm-test-ignore/sub/ignore30
23 files changed, 72 insertions, 0 deletions
diff --git a/deps/npm/test/disabled/bundlerecurs/package.json b/deps/npm/test/disabled/bundlerecurs/package.json
new file mode 100644
index 0000000000..d870411706
--- /dev/null
+++ b/deps/npm/test/disabled/bundlerecurs/package.json
@@ -0,0 +1,4 @@
+{ "name" : "bundletest"
+, "version" : "1.0.0"
+, "dependencies" : { "bundletest" : "*" }
+}
diff --git a/deps/npm/test/disabled/change-bin-1/bin/foo b/deps/npm/test/disabled/change-bin-1/bin/foo
new file mode 100644
index 0000000000..fb16c2b23c
--- /dev/null
+++ b/deps/npm/test/disabled/change-bin-1/bin/foo
@@ -0,0 +1,2 @@
+#!/bin/bash
+echo "foo"
diff --git a/deps/npm/test/disabled/change-bin-1/package.json b/deps/npm/test/disabled/change-bin-1/package.json
new file mode 100644
index 0000000000..0d82f3afa3
--- /dev/null
+++ b/deps/npm/test/disabled/change-bin-1/package.json
@@ -0,0 +1,3 @@
+{"name":"npm-test-change-bin"
+,"version":"1.2.3"
+,"directories":{"bin":"./bin"}}
diff --git a/deps/npm/test/disabled/change-bin-2/bin/bar b/deps/npm/test/disabled/change-bin-2/bin/bar
new file mode 100644
index 0000000000..fb16c2b23c
--- /dev/null
+++ b/deps/npm/test/disabled/change-bin-2/bin/bar
@@ -0,0 +1,2 @@
+#!/bin/bash
+echo "foo"
diff --git a/deps/npm/test/disabled/change-bin-2/package.json b/deps/npm/test/disabled/change-bin-2/package.json
new file mode 100644
index 0000000000..3fdc538fa2
--- /dev/null
+++ b/deps/npm/test/disabled/change-bin-2/package.json
@@ -0,0 +1,3 @@
+{"name":"npm-test-change-bin"
+,"version":"2.3.4"
+,"directories":{"bin":"./bin"}}
diff --git a/deps/npm/test/disabled/failer/package.json b/deps/npm/test/disabled/failer/package.json
new file mode 100644
index 0000000000..ff596d158b
--- /dev/null
+++ b/deps/npm/test/disabled/failer/package.json
@@ -0,0 +1,5 @@
+{ "name" : "npm-test-failer"
+, "version" : "9999.999.99"
+, "dependencies" : { "base64" : "*" }
+, "scripts" : { "install" : "exit 1", "test": "echo 'This is where the test output would go'; echo 'more test output'; echo 'MOAR MOAR MoAR'; exit 1" }
+}
diff --git a/deps/npm/test/disabled/fast/package.json b/deps/npm/test/disabled/fast/package.json
new file mode 100644
index 0000000000..fbf26e9b14
--- /dev/null
+++ b/deps/npm/test/disabled/fast/package.json
@@ -0,0 +1,9 @@
+{ "name" : "fast"
+, "description" : "does nothing, and not very fast"
+, "version" : "1.2.3"
+, "scripts" :
+{ "preinstall" : "sleep 1 && echo fast 1 $(date +%s) && echo fast 2"
+, "install" : "sleep 1 && echo fast 2 $(date +%s) && echo fast 3"
+, "postinstall" : "sleep 1 && echo fast 3 $(date +%s) && echo fast 4"
+}
+}
diff --git a/deps/npm/test/disabled/package-bar/package.json b/deps/npm/test/disabled/package-bar/package.json
new file mode 100644
index 0000000000..f9a278010f
--- /dev/null
+++ b/deps/npm/test/disabled/package-bar/package.json
@@ -0,0 +1,7 @@
+{
+ "name": "package-bar",
+ "version": "0.5.0",
+ "dependencies": {
+ "package-foo": "*"
+ }
+}
diff --git a/deps/npm/test/disabled/package-config/package.json b/deps/npm/test/disabled/package-config/package.json
new file mode 100644
index 0000000000..7ec97d3805
--- /dev/null
+++ b/deps/npm/test/disabled/package-config/package.json
@@ -0,0 +1,4 @@
+{"name":"package-config"
+,"version":"1.2.3"
+,"config":{"foo":"bar"}
+,"scripts":{"test":"./test.js"}}
diff --git a/deps/npm/test/disabled/package-config/test.js b/deps/npm/test/disabled/package-config/test.js
new file mode 100755
index 0000000000..7337b237b5
--- /dev/null
+++ b/deps/npm/test/disabled/package-config/test.js
@@ -0,0 +1,17 @@
+#!/usr/bin/env node
+
+var env = process.env
+ , orig = require(process.env.npm_package_name+"/package.json").config
+ , assert = require("assert")
+
+console.log("Before running this test, do:\n"
+ +" npm config set package-config:foo boo\n"
+ +"or else it's about to fail.")
+assert.equal(env.npm_package_config_foo, "boo", "foo != boo")
+assert.equal(orig.foo, "bar", "original foo != bar")
+assert.equal(env["npm_config_package-config:foo"], "boo",
+ "package-config:foo != boo")
+console.log({ foo: env.npm_package_config_foo
+ , orig_foo: orig.foo
+ , "package-config:foo": env["npm_config_package-config:foo"]
+ })
diff --git a/deps/npm/test/disabled/package-foo/package.json b/deps/npm/test/disabled/package-foo/package.json
new file mode 100644
index 0000000000..31e791f646
--- /dev/null
+++ b/deps/npm/test/disabled/package-foo/package.json
@@ -0,0 +1,4 @@
+{
+ "name": "package-foo",
+ "version": "0.5.0"
+}
diff --git a/deps/npm/test/disabled/slow/package.json b/deps/npm/test/disabled/slow/package.json
new file mode 100644
index 0000000000..ba6be42fa9
--- /dev/null
+++ b/deps/npm/test/disabled/slow/package.json
@@ -0,0 +1,9 @@
+{ "name" : "slow"
+, "description" : "just like fast, but even slower"
+, "version" : "1.2.3"
+, "scripts" :
+ { "preinstall" : "sleep 1 && echo slow 1 $(date +%s) && sleep 1 && echo slow 2 $(date +%s)"
+ , "install" : "sleep 1 && echo slow 2 $(date +%s) && sleep 1 && echo slow 3 $(date +%s)"
+ , "postinstall" : "sleep 1 && echo slow 3 $(date +%s) && sleep 1 && echo slow 4 $(date +%s)"
+ }
+}
diff --git a/deps/npm/test/disabled/startstop/package.json b/deps/npm/test/disabled/startstop/package.json
new file mode 100644
index 0000000000..bee2a2fd3a
--- /dev/null
+++ b/deps/npm/test/disabled/startstop/package.json
@@ -0,0 +1,3 @@
+{"name":"startstop"
+,"version":"1.2.3"
+,"scripts":{"start":"echo 'start'","stop":"echo 'stop'"}}
diff --git a/deps/npm/test/packages/npm-test-files/ignore3 b/deps/npm/test/packages/npm-test-files/ignore3
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/deps/npm/test/packages/npm-test-files/ignore3
diff --git a/deps/npm/test/packages/npm-test-files/ignoredir1/a b/deps/npm/test/packages/npm-test-files/ignoredir1/a
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/deps/npm/test/packages/npm-test-files/ignoredir1/a
diff --git a/deps/npm/test/packages/npm-test-files/ignoredir2/a b/deps/npm/test/packages/npm-test-files/ignoredir2/a
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/deps/npm/test/packages/npm-test-files/ignoredir2/a
diff --git a/deps/npm/test/packages/npm-test-files/sub/ignore1 b/deps/npm/test/packages/npm-test-files/sub/ignore1
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/deps/npm/test/packages/npm-test-files/sub/ignore1
diff --git a/deps/npm/test/packages/npm-test-files/sub/ignore3 b/deps/npm/test/packages/npm-test-files/sub/ignore3
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/deps/npm/test/packages/npm-test-files/sub/ignore3
diff --git a/deps/npm/test/packages/npm-test-ignore/ignore3 b/deps/npm/test/packages/npm-test-ignore/ignore3
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/deps/npm/test/packages/npm-test-ignore/ignore3
diff --git a/deps/npm/test/packages/npm-test-ignore/ignoredir1/a b/deps/npm/test/packages/npm-test-ignore/ignoredir1/a
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/deps/npm/test/packages/npm-test-ignore/ignoredir1/a
diff --git a/deps/npm/test/packages/npm-test-ignore/ignoredir2/a b/deps/npm/test/packages/npm-test-ignore/ignoredir2/a
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/deps/npm/test/packages/npm-test-ignore/ignoredir2/a
diff --git a/deps/npm/test/packages/npm-test-ignore/sub/ignore1 b/deps/npm/test/packages/npm-test-ignore/sub/ignore1
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/deps/npm/test/packages/npm-test-ignore/sub/ignore1
diff --git a/deps/npm/test/packages/npm-test-ignore/sub/ignore3 b/deps/npm/test/packages/npm-test-ignore/sub/ignore3
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/deps/npm/test/packages/npm-test-ignore/sub/ignore3