summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2009-02-15 23:59:38 +0000
committerJohn Christopher Anderson <jchris@apache.org>2009-02-15 23:59:38 +0000
commit59a60a319bead55aa188e8cb1516d5e5146c4492 (patch)
tree223063b38170d593def1e31ed12b6505dcd70c79 /test
parent146bc594aef47b675670e7a7fd7f89b7c6a10843 (diff)
Reorganize the tests into one file per test. No other changes.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@744782 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rwxr-xr-xtest/runner.sh2
-rw-r--r--test/test.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/test/runner.sh b/test/runner.sh
index 561110a8..6715f5f9 100755
--- a/test/runner.sh
+++ b/test/runner.sh
@@ -4,4 +4,4 @@ erlc runner.erl
erl -noshell -pa ../src/couchdb -pa ../src/mochiweb -eval "runner:run()"
-cat ../share/www/script/couch.js ../share/www/script/couch_test_runner.js ../share/www/script/couch_tests.js test.js | ../src/couchdb/couchjs -
+cat ../share/www/script/couch.js ../share/www/script/couch_test_runner.js ../share/www/script/couch_tests.js ../share/www/script/test/* test.js | ../src/couchdb/couchjs -
diff --git a/test/test.js b/test/test.js
index a4aa32e1..f3990966 100644
--- a/test/test.js
+++ b/test/test.js
@@ -194,14 +194,14 @@ var numFailures = 0;
function runAllTestsConsole() {
var numTests = 0;
var debug = false;
- for (var t in tests) {
+ for (var t in couchTests) {
p(t);
if (t == "utf8") {
p("We skip the utf8 test because it fails due to problems in couch_js.c");
p("Run the in-browser tests to verify utf8.\n");
} else {
numTests += 1;
- var testFun = tests[t];
+ var testFun = couchTests[t];
runTestConsole(testFun, debug);
}
}