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
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2010-08-25 11:06:54 +0400
committerisaacs <i@izs.me>2010-08-25 16:21:53 +0400
commit7bab22476253236f38745265935fbc8e45765e53 (patch)
treef93a58b213e444daaf91f32bdccc2f9708f1f02c
parent63a0176d6163a8617b01a6b9e9f7bece655e9050 (diff)
A test that's fast, and another that's slow.
-rw-r--r--test/packages/fast/package.json12
-rw-r--r--test/packages/slow/package.json12
2 files changed, 24 insertions, 0 deletions
diff --git a/test/packages/fast/package.json b/test/packages/fast/package.json
new file mode 100644
index 000000000..b7c576d68
--- /dev/null
+++ b/test/packages/fast/package.json
@@ -0,0 +1,12 @@
+{ "name" : "testing-fast"
+, "description" : "does nothing"
+, "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"
+, "preactivate" : "sleep 1 && echo fast 4 $(date +%s) && echo fast 5"
+, "activate" : "sleep 1 && echo fast 5 $(date +%s) && echo fast 6"
+, "postactivate" : "sleep 1 && echo fast 6 $(date +%s) && echo fast 7"
+}
+}
diff --git a/test/packages/slow/package.json b/test/packages/slow/package.json
new file mode 100644
index 000000000..d1f5ab4f6
--- /dev/null
+++ b/test/packages/slow/package.json
@@ -0,0 +1,12 @@
+{ "name" : "testing-slow"
+, "description" : "just like fast, but 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)"
+ , "preactivate" : "sleep 1 && echo slow 4 $(date +%s) && sleep 1 && echo slow 5 $(date +%s)"
+ , "activate" : "sleep 1 && echo slow 5 $(date +%s) && sleep 1 && echo slow 6 $(date +%s)"
+ , "postactivate" : "sleep 1 && echo slow 6 $(date +%s) && sleep 1 && echo slow 7 $(date +%s)"
+ }
+}