summaryrefslogtreecommitdiff
path: root/deps/npm/test/packages
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2011-12-16 17:24:25 -0800
committerisaacs <i@izs.me>2011-12-16 18:05:17 -0800
commit90fb81ad54040f410cf14bfb6b37f0117e430347 (patch)
treee19de78b8f6096093f8e4c7b2a333737842954a0 /deps/npm/test/packages
parenta599aeb2a8159c48eafbe066466ea5bc90d0c71c (diff)
downloadnode-new-90fb81ad54040f410cf14bfb6b37f0117e430347.tar.gz
npm 1.1.0-beta-7
Diffstat (limited to 'deps/npm/test/packages')
-rw-r--r--deps/npm/test/packages/npm-test-files/.npmignore7
-rw-r--r--deps/npm/test/packages/npm-test-files/include40
-rw-r--r--deps/npm/test/packages/npm-test-files/package.json9
-rw-r--r--deps/npm/test/packages/npm-test-files/sub/include0
-rw-r--r--deps/npm/test/packages/npm-test-files/sub/include20
-rw-r--r--deps/npm/test/packages/npm-test-files/sub/include41
-rw-r--r--deps/npm/test/packages/npm-test-files/test.sh27
7 files changed, 44 insertions, 0 deletions
diff --git a/deps/npm/test/packages/npm-test-files/.npmignore b/deps/npm/test/packages/npm-test-files/.npmignore
new file mode 100644
index 0000000000..c7d927d0a2
--- /dev/null
+++ b/deps/npm/test/packages/npm-test-files/.npmignore
@@ -0,0 +1,7 @@
+/sub/ignore1
+./sub/include2
+ignore3
+./include4
+ignoredir1
+ignoredir2/
+*.tgz
diff --git a/deps/npm/test/packages/npm-test-files/include4 b/deps/npm/test/packages/npm-test-files/include4
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/deps/npm/test/packages/npm-test-files/include4
diff --git a/deps/npm/test/packages/npm-test-files/package.json b/deps/npm/test/packages/npm-test-files/package.json
new file mode 100644
index 0000000000..7c067828e2
--- /dev/null
+++ b/deps/npm/test/packages/npm-test-files/package.json
@@ -0,0 +1,9 @@
+{ "name":"npm-test-files"
+, "version":"1.2.5"
+, "files":
+ [ "include4"
+ , "sub/include"
+ , "sub/include2"
+ , "sub/include4"
+ , "test.sh" ]
+, "scripts":{"test":"bash test.sh"}}
diff --git a/deps/npm/test/packages/npm-test-files/sub/include b/deps/npm/test/packages/npm-test-files/sub/include
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/deps/npm/test/packages/npm-test-files/sub/include
diff --git a/deps/npm/test/packages/npm-test-files/sub/include2 b/deps/npm/test/packages/npm-test-files/sub/include2
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/deps/npm/test/packages/npm-test-files/sub/include2
diff --git a/deps/npm/test/packages/npm-test-files/sub/include4 b/deps/npm/test/packages/npm-test-files/sub/include4
new file mode 100644
index 0000000000..d16969cd18
--- /dev/null
+++ b/deps/npm/test/packages/npm-test-files/sub/include4
@@ -0,0 +1 @@
+This file should be in the package.
diff --git a/deps/npm/test/packages/npm-test-files/test.sh b/deps/npm/test/packages/npm-test-files/test.sh
new file mode 100644
index 0000000000..cdf47f211a
--- /dev/null
+++ b/deps/npm/test/packages/npm-test-files/test.sh
@@ -0,0 +1,27 @@
+x=`find . | grep ignore | grep -v npmignore`
+if [ "$x" != "" ]; then
+ echo "ignored files included: $x"
+ exit 1
+fi
+
+x=`find . | grep -v ignore | sort`
+y=".
+./include4
+./package.json
+./sub
+./sub/include
+./sub/include2
+./sub/include4
+./test.sh"
+if [ "$x" != "$y" ]; then
+ echo "missing included files"
+ echo "got:"
+ echo "==="
+ echo "$x"
+ echo "==="
+ echo "wanted:"
+ echo "==="
+ echo "$y"
+ echo "==="
+ exit 1
+fi