summaryrefslogtreecommitdiff
path: root/test/etap
diff options
context:
space:
mode:
authorPaul Joseph Davis <davisp@apache.org>2009-09-29 02:38:18 +0000
committerPaul Joseph Davis <davisp@apache.org>2009-09-29 02:38:18 +0000
commite5813d55b0f65d30b3081d0f1a5cd2e7b6f900ed (patch)
tree59bf3af8ae1b074edf286b541eb2cfc550122a0b /test/etap
parent09c24441707ad620482a70fb768a117602777091 (diff)
Add ETap to CouchDB's SVN repository.
This pulls in ETap as an included dependency. As per directions of the ASF the NOTICE and LICENSE have been updated. Tests have been updated to include etap on Erlang's code path. license.skip was updated for make distcheck. This only affects running the Erlang test suite. Noah is awesome. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@819799 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/etap')
-rwxr-xr-xtest/etap/001-load.t1
-rw-r--r--test/etap/002-erl-driver.t1
-rwxr-xr-xtest/etap/010-file-basics.t1
-rwxr-xr-xtest/etap/011-file-headers.t1
-rwxr-xr-xtest/etap/020-btree-basics.t1
-rwxr-xr-xtest/etap/021-btree-reductions.t1
-rwxr-xr-xtest/etap/030-doc-from-json.t1
-rwxr-xr-xtest/etap/031-doc-to-json.t1
-rwxr-xr-xtest/etap/040-util.t1
-rw-r--r--test/etap/041-uuid-gen.t1
-rwxr-xr-xtest/etap/050-stream.t1
-rwxr-xr-xtest/etap/060-kt-merging.t1
-rwxr-xr-xtest/etap/061-kt-missing-leaves.t1
-rwxr-xr-xtest/etap/062-kt-remove-leaves.t1
-rwxr-xr-xtest/etap/063-kt-get-leaves.t1
-rwxr-xr-xtest/etap/064-kt-counting.t1
-rwxr-xr-xtest/etap/065-kt-stemming.t1
-rwxr-xr-xtest/etap/070-couch-db.t1
-rwxr-xr-xtest/etap/080-config-get-set.t1
-rwxr-xr-xtest/etap/081-config-override.t1
-rwxr-xr-xtest/etap/082-config-register.t1
-rwxr-xr-xtest/etap/083-config-no-files.t1
-rwxr-xr-xtest/etap/090-task-status.t1
-rwxr-xr-xtest/etap/100-ref-counter.t1
-rwxr-xr-xtest/etap/110-replication-httpc.t1
-rwxr-xr-xtest/etap/111-replication-changes-feed.t1
-rwxr-xr-xtest/etap/112-replication-missing-revs.t1
-rwxr-xr-xtest/etap/120-stats-collect.t1
-rwxr-xr-xtest/etap/121-stats-aggregates.t1
29 files changed, 29 insertions, 0 deletions
diff --git a/test/etap/001-load.t b/test/etap/001-load.t
index 983c2ae8..619b289b 100755
--- a/test/etap/001-load.t
+++ b/test/etap/001-load.t
@@ -17,6 +17,7 @@
% Test that we can load each module.
main(_) ->
+ code:add_patha("src/etap"),
code:add_pathz("src/couchdb"),
etap:plan(39),
Modules = [
diff --git a/test/etap/002-erl-driver.t b/test/etap/002-erl-driver.t
index b290690d..4a2a40da 100644
--- a/test/etap/002-erl-driver.t
+++ b/test/etap/002-erl-driver.t
@@ -13,6 +13,7 @@
main(_) ->
+ code:add_patha("src/etap"),
code:add_pathz("src/couchdb"),
etap:plan(3),
etap:is(
diff --git a/test/etap/010-file-basics.t b/test/etap/010-file-basics.t
index a019c465..b6c95a6f 100755
--- a/test/etap/010-file-basics.t
+++ b/test/etap/010-file-basics.t
@@ -15,6 +15,7 @@
filename() -> "./test/etap/temp.010".
main(_) ->
+ code:add_patha("src/etap"),
code:add_pathz("src/couchdb"),
etap:plan(16),
case (catch test()) of
diff --git a/test/etap/011-file-headers.t b/test/etap/011-file-headers.t
index 7316cee2..d26629c0 100755
--- a/test/etap/011-file-headers.t
+++ b/test/etap/011-file-headers.t
@@ -18,6 +18,7 @@ filename() -> "./test/etap/temp.011".
sizeblock() -> 4096. % Need to keep this in sync with couch_file.erl
main(_) ->
+ code:add_patha("src/etap"),
code:add_pathz("src/couchdb"),
{S1, S2, S3} = now(),
random:seed(S1, S2, S3),
diff --git a/test/etap/020-btree-basics.t b/test/etap/020-btree-basics.t
index 90c04075..93a139fb 100755
--- a/test/etap/020-btree-basics.t
+++ b/test/etap/020-btree-basics.t
@@ -20,6 +20,7 @@ rows() -> 250.
-record(btree, {fd, root, extract_kv, assemble_kv, less, reduce}).
main(_) ->
+ code:add_patha("src/etap"),
code:add_pathz("src/couchdb"),
etap:plan(48),
case (catch test()) of
diff --git a/test/etap/021-btree-reductions.t b/test/etap/021-btree-reductions.t
index 875c4677..64d390ed 100755
--- a/test/etap/021-btree-reductions.t
+++ b/test/etap/021-btree-reductions.t
@@ -18,6 +18,7 @@ filename() -> "./test/etap/temp.021".
rows() -> 1000.
main(_) ->
+ code:add_patha("src/etap"),
code:add_pathz("src/couchdb"),
etap:plan(8),
case (catch test()) of
diff --git a/test/etap/030-doc-from-json.t b/test/etap/030-doc-from-json.t
index 241aee40..45763173 100755
--- a/test/etap/030-doc-from-json.t
+++ b/test/etap/030-doc-from-json.t
@@ -20,6 +20,7 @@
-record(att, {name, type, len, md5= <<>>, revpos=0, data}).
main(_) ->
+ code:add_patha("src/etap"),
code:add_pathz("src/couchdb"),
etap:plan(26),
case (catch test()) of
diff --git a/test/etap/031-doc-to-json.t b/test/etap/031-doc-to-json.t
index 86b3920e..00440abe 100755
--- a/test/etap/031-doc-to-json.t
+++ b/test/etap/031-doc-to-json.t
@@ -20,6 +20,7 @@
-record(att, {name, type, len, md5= <<>>, revpos=0, data}).
main(_) ->
+ code:add_patha("src/etap"),
code:add_pathz("src/couchdb"),
etap:plan(12),
case (catch test()) of
diff --git a/test/etap/040-util.t b/test/etap/040-util.t
index 7446046e..38f82851 100755
--- a/test/etap/040-util.t
+++ b/test/etap/040-util.t
@@ -14,6 +14,7 @@
% the License.
main(_) ->
+ code:add_patha("src/etap"),
code:add_pathz("src/couchdb"),
application:start(crypto),
diff --git a/test/etap/041-uuid-gen.t b/test/etap/041-uuid-gen.t
index 45cc7f59..dd88ae93 100644
--- a/test/etap/041-uuid-gen.t
+++ b/test/etap/041-uuid-gen.t
@@ -38,6 +38,7 @@ run_test(IniFiles, Test) ->
end.
main(_) ->
+ code:add_patha("src/etap"),
code:add_pathz("src/couchdb"),
application:start(crypto),
etap:plan(unknown),
diff --git a/test/etap/050-stream.t b/test/etap/050-stream.t
index 7ed64608..b3bce45f 100755
--- a/test/etap/050-stream.t
+++ b/test/etap/050-stream.t
@@ -14,6 +14,7 @@
% the License.
main(_) ->
+ code:add_patha("src/etap"),
code:add_pathz("src/couchdb"),
etap:plan(13),
case (catch test()) of
diff --git a/test/etap/060-kt-merging.t b/test/etap/060-kt-merging.t
index 0ad73245..17f77e3d 100755
--- a/test/etap/060-kt-merging.t
+++ b/test/etap/060-kt-merging.t
@@ -14,6 +14,7 @@
% the License.
main(_) ->
+ code:add_patha("src/etap"),
code:add_pathz("src/couchdb"),
etap:plan(16),
case (catch test()) of
diff --git a/test/etap/061-kt-missing-leaves.t b/test/etap/061-kt-missing-leaves.t
index 051eb45d..d1dc3fd7 100755
--- a/test/etap/061-kt-missing-leaves.t
+++ b/test/etap/061-kt-missing-leaves.t
@@ -14,6 +14,7 @@
% the License.
main(_) ->
+ code:add_patha("src/etap"),
code:add_pathz("src/couchdb"),
etap:plan(4),
case (catch test()) of
diff --git a/test/etap/062-kt-remove-leaves.t b/test/etap/062-kt-remove-leaves.t
index dc163ffe..9c33475b 100755
--- a/test/etap/062-kt-remove-leaves.t
+++ b/test/etap/062-kt-remove-leaves.t
@@ -14,6 +14,7 @@
% the License.
main(_) ->
+ code:add_patha("src/etap"),
code:add_pathz("src/couchdb"),
etap:plan(6),
case (catch test()) of
diff --git a/test/etap/063-kt-get-leaves.t b/test/etap/063-kt-get-leaves.t
index f86ddde6..a8fa3e94 100755
--- a/test/etap/063-kt-get-leaves.t
+++ b/test/etap/063-kt-get-leaves.t
@@ -14,6 +14,7 @@
% the License.
main(_) ->
+ code:add_patha("src/etap"),
code:add_pathz("src/couchdb"),
etap:plan(11),
case (catch test()) of
diff --git a/test/etap/064-kt-counting.t b/test/etap/064-kt-counting.t
index b44ec9cc..b68215b5 100755
--- a/test/etap/064-kt-counting.t
+++ b/test/etap/064-kt-counting.t
@@ -14,6 +14,7 @@
% the License.
main(_) ->
+ code:add_patha("src/etap"),
code:add_pathz("src/couchdb"),
etap:plan(4),
case (catch test()) of
diff --git a/test/etap/065-kt-stemming.t b/test/etap/065-kt-stemming.t
index c7883c16..6dfe9380 100755
--- a/test/etap/065-kt-stemming.t
+++ b/test/etap/065-kt-stemming.t
@@ -14,6 +14,7 @@
% the License.
main(_) ->
+ code:add_patha("src/etap"),
code:add_pathz("src/couchdb"),
etap:plan(3),
case (catch test()) of
diff --git a/test/etap/070-couch-db.t b/test/etap/070-couch-db.t
index 9f64d95b..ba381277 100755
--- a/test/etap/070-couch-db.t
+++ b/test/etap/070-couch-db.t
@@ -14,6 +14,7 @@
% the License.
main(_) ->
+ code:add_patha("src/etap"),
code:add_pathz("src/couchdb"),
code:add_pathz("src/mochiweb"),
diff --git a/test/etap/080-config-get-set.t b/test/etap/080-config-get-set.t
index f97ad5e2..7702fb07 100755
--- a/test/etap/080-config-get-set.t
+++ b/test/etap/080-config-get-set.t
@@ -17,6 +17,7 @@ default_config() ->
"etc/couchdb/default_dev.ini".
main(_) ->
+ code:add_patha("src/etap"),
code:add_pathz("src/couchdb"),
etap:plan(12),
case (catch test()) of
diff --git a/test/etap/081-config-override.t b/test/etap/081-config-override.t
index 12d41b8a..e96e3c23 100755
--- a/test/etap/081-config-override.t
+++ b/test/etap/081-config-override.t
@@ -39,6 +39,7 @@ run_tests(IniFiles, Tests) ->
end.
main(_) ->
+ code:add_patha("src/etap"),
code:add_pathz("src/couchdb"),
etap:plan(17),
diff --git a/test/etap/082-config-register.t b/test/etap/082-config-register.t
index 416c45ee..d484db11 100755
--- a/test/etap/082-config-register.t
+++ b/test/etap/082-config-register.t
@@ -17,6 +17,7 @@ default_config() ->
"etc/couchdb/default_dev.ini".
main(_) ->
+ code:add_patha("src/etap"),
code:add_pathz("src/couchdb"),
etap:plan(5),
case (catch test()) of
diff --git a/test/etap/083-config-no-files.t b/test/etap/083-config-no-files.t
index 3efe41ed..0d513cef 100755
--- a/test/etap/083-config-no-files.t
+++ b/test/etap/083-config-no-files.t
@@ -17,6 +17,7 @@ default_config() ->
"etc/couchdb/default_dev.ini".
main(_) ->
+ code:add_patha("src/etap"),
code:add_pathz("src/couchdb"),
etap:plan(3),
case (catch test()) of
diff --git a/test/etap/090-task-status.t b/test/etap/090-task-status.t
index e681e056..26cff33a 100755
--- a/test/etap/090-task-status.t
+++ b/test/etap/090-task-status.t
@@ -14,6 +14,7 @@
% the License.
main(_) ->
+ code:add_patha("src/etap"),
code:add_pathz("src/couchdb"),
etap:plan(16),
case (catch test()) of
diff --git a/test/etap/100-ref-counter.t b/test/etap/100-ref-counter.t
index a186076a..c2c233e1 100755
--- a/test/etap/100-ref-counter.t
+++ b/test/etap/100-ref-counter.t
@@ -14,6 +14,7 @@
% the License.
main(_) ->
+ code:add_patha("src/etap"),
code:add_pathz("src/couchdb"),
etap:plan(8),
case (catch test()) of
diff --git a/test/etap/110-replication-httpc.t b/test/etap/110-replication-httpc.t
index 040cae39..a84491f1 100755
--- a/test/etap/110-replication-httpc.t
+++ b/test/etap/110-replication-httpc.t
@@ -39,6 +39,7 @@ server() -> "http://127.0.0.1:5984/".
dbname() -> "etap-test-db".
main(_) ->
+ code:add_patha("src/etap"),
code:add_pathz("src/couchdb"),
code:add_pathz("src/ibrowse"),
code:add_pathz("src/mochiweb"),
diff --git a/test/etap/111-replication-changes-feed.t b/test/etap/111-replication-changes-feed.t
index 4045a28d..10cea201 100755
--- a/test/etap/111-replication-changes-feed.t
+++ b/test/etap/111-replication-changes-feed.t
@@ -38,6 +38,7 @@
conn = nil
}).
main(_) ->
+ code:add_patha("src/etap"),
code:add_pathz("src/couchdb"),
code:add_pathz("src/ibrowse"),
code:add_pathz("src/mochiweb"),
diff --git a/test/etap/112-replication-missing-revs.t b/test/etap/112-replication-missing-revs.t
index e42c185e..cfb11f35 100755
--- a/test/etap/112-replication-missing-revs.t
+++ b/test/etap/112-replication-missing-revs.t
@@ -40,6 +40,7 @@
}).
main(_) ->
+ code:add_patha("src/etap"),
code:add_pathz("src/couchdb"),
code:add_pathz("src/ibrowse"),
code:add_pathz("src/mochiweb"),
diff --git a/test/etap/120-stats-collect.t b/test/etap/120-stats-collect.t
index 463aa384..a870bfef 100755
--- a/test/etap/120-stats-collect.t
+++ b/test/etap/120-stats-collect.t
@@ -14,6 +14,7 @@
% the License.
main(_) ->
+ code:add_patha("src/etap"),
code:add_pathz("src/couchdb"),
etap:plan(11),
case (catch test()) of
diff --git a/test/etap/121-stats-aggregates.t b/test/etap/121-stats-aggregates.t
index d9130487..cb2c2bb2 100755
--- a/test/etap/121-stats-aggregates.t
+++ b/test/etap/121-stats-aggregates.t
@@ -14,6 +14,7 @@
% the License.
main(_) ->
+ code:add_patha("src/etap"),
code:add_pathz("src/couchdb"),
etap:plan(unknown),
case (catch test()) of