summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNoah Slater <nslater@apache.org>2009-07-14 19:36:12 +0000
committerNoah Slater <nslater@apache.org>2009-07-14 19:36:12 +0000
commit69d1f1d09a68243b4d0ce6e4db869d6b9758c537 (patch)
tree410fb6320ce4f887360bcccc76260bed69f9edaf /test
parentd8dee3b9e3b9f182982a97cbd8c3517aa8fcf30f (diff)
added licence check, and licence.skip
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@794030 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rw-r--r--test/couch_config_test.erl17
-rw-r--r--test/couch_config_writer_test.erl12
-rwxr-xr-xtest/etap/001-load.t12
-rwxr-xr-xtest/etap/010-file-basics.t12
-rwxr-xr-xtest/etap/011-file-headers.t12
-rwxr-xr-xtest/etap/020-btree-basics.t12
-rwxr-xr-xtest/etap/021-btree-reductions.t12
-rwxr-xr-xtest/etap/030-doc-from-json.t11
-rwxr-xr-xtest/etap/031-doc-to-json.t11
-rwxr-xr-xtest/etap/040-util.t22
-rwxr-xr-xtest/etap/050-stream.t12
-rwxr-xr-xtest/etap/060-kt-merging.t12
-rwxr-xr-xtest/etap/061-kt-missing-leaves.t12
-rwxr-xr-xtest/etap/062-kt-remove-leaves.t12
-rwxr-xr-xtest/etap/063-kt-get-leaves.t12
-rwxr-xr-xtest/etap/064-kt-counting.t12
-rwxr-xr-xtest/etap/065-kt-stemming.t12
-rwxr-xr-xtest/etap/070-couch-db.t12
-rwxr-xr-xtest/etap/080-config-get-set.t12
-rw-r--r--test/etap/081-config-override.2.ini2
-rwxr-xr-xtest/etap/081-config-override.t12
-rwxr-xr-xtest/etap/082-config-register.t12
-rwxr-xr-xtest/etap/083-config-no-files.t12
-rwxr-xr-xtest/etap/090-task-status.t12
-rwxr-xr-xtest/etap/100-ref-counter.t12
-rw-r--r--test/runner.erl12
-rwxr-xr-xtest/runner.sh18
27 files changed, 323 insertions, 10 deletions
diff --git a/test/couch_config_test.erl b/test/couch_config_test.erl
index a02affc1..096ce53d 100644
--- a/test/couch_config_test.erl
+++ b/test/couch_config_test.erl
@@ -1,4 +1,16 @@
-% couch_config module test suote
+% Licensed under the Apache License, Version 2.0 (the "License"); you may not
+% use this file except in compliance with the License. You may obtain a copy of
+% the License at
+%
+% http://www.apache.org/licenses/LICENSE-2.0
+%
+% Unless required by applicable law or agreed to in writing, software
+% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+% License for the specific language governing permissions and limitations under
+% the License.
+
+% couch_config module test suite
% Set up test suite
% ?MODULE_test() returns a list of functions
@@ -8,7 +20,6 @@ couch_config_test() ->
fun() -> store_strings() end
].
-
% test functions
store_strings() ->
@@ -30,4 +41,4 @@ store_strings() ->
% clean up
file:delete(Filename),
- Value = Result. \ No newline at end of file
+ Value = Result.
diff --git a/test/couch_config_writer_test.erl b/test/couch_config_writer_test.erl
index 6fa87078..ba17a946 100644
--- a/test/couch_config_writer_test.erl
+++ b/test/couch_config_writer_test.erl
@@ -1,3 +1,15 @@
+% Licensed under the Apache License, Version 2.0 (the "License"); you may not
+% use this file except in compliance with the License. You may obtain a copy of
+% the License at
+%
+% http://www.apache.org/licenses/LICENSE-2.0
+%
+% Unless required by applicable law or agreed to in writing, software
+% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+% License for the specific language governing permissions and limitations under
+% the License.
+
% couch_config_writer module test suote
% Set up test suite
diff --git a/test/etap/001-load.t b/test/etap/001-load.t
index ef941867..983c2ae8 100755
--- a/test/etap/001-load.t
+++ b/test/etap/001-load.t
@@ -2,6 +2,18 @@
%% -*- erlang -*-
%%! -pa src/couchdb -sasl errlog_type error -boot start_sasl -noshell
+% Licensed under the Apache License, Version 2.0 (the "License"); you may not
+% use this file except in compliance with the License. You may obtain a copy of
+% the License at
+%
+% http://www.apache.org/licenses/LICENSE-2.0
+%
+% Unless required by applicable law or agreed to in writing, software
+% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+% License for the specific language governing permissions and limitations under
+% the License.
+
% Test that we can load each module.
main(_) ->
diff --git a/test/etap/010-file-basics.t b/test/etap/010-file-basics.t
index 055c9780..e74b55dc 100755
--- a/test/etap/010-file-basics.t
+++ b/test/etap/010-file-basics.t
@@ -2,6 +2,18 @@
%% -*- erlang -*-
%%! -pa ./src/couchdb -sasl errlog_type error -boot start_sasl -noshell
+% Licensed under the Apache License, Version 2.0 (the "License"); you may not
+% use this file except in compliance with the License. You may obtain a copy of
+% the License at
+%
+% http://www.apache.org/licenses/LICENSE-2.0
+%
+% Unless required by applicable law or agreed to in writing, software
+% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+% License for the specific language governing permissions and limitations under
+% the License.
+
filename() -> "./test/etap/temp.010".
main(_) ->
diff --git a/test/etap/011-file-headers.t b/test/etap/011-file-headers.t
index 4ad3d21f..7316cee2 100755
--- a/test/etap/011-file-headers.t
+++ b/test/etap/011-file-headers.t
@@ -2,6 +2,18 @@
%% -*- erlang -*-
%%! -pa ./src/couchdb -sasl errlog_type error -boot start_sasl -noshell
+% Licensed under the Apache License, Version 2.0 (the "License"); you may not
+% use this file except in compliance with the License. You may obtain a copy of
+% the License at
+%
+% http://www.apache.org/licenses/LICENSE-2.0
+%
+% Unless required by applicable law or agreed to in writing, software
+% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+% License for the specific language governing permissions and limitations under
+% the License.
+
filename() -> "./test/etap/temp.011".
sizeblock() -> 4096. % Need to keep this in sync with couch_file.erl
diff --git a/test/etap/020-btree-basics.t b/test/etap/020-btree-basics.t
index 1b985a4a..9187b606 100755
--- a/test/etap/020-btree-basics.t
+++ b/test/etap/020-btree-basics.t
@@ -2,6 +2,18 @@
%% -*- erlang -*-
%%! -pa ./src/couchdb -sasl errlog_type error -boot start_sasl -noshell
+% Licensed under the Apache License, Version 2.0 (the "License"); you may not
+% use this file except in compliance with the License. You may obtain a copy of
+% the License at
+%
+% http://www.apache.org/licenses/LICENSE-2.0
+%
+% Unless required by applicable law or agreed to in writing, software
+% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+% License for the specific language governing permissions and limitations under
+% the License.
+
filename() -> "./test/etap/temp.020".
rows() -> 250.
diff --git a/test/etap/021-btree-reductions.t b/test/etap/021-btree-reductions.t
index d2de4c92..e4bc7a88 100755
--- a/test/etap/021-btree-reductions.t
+++ b/test/etap/021-btree-reductions.t
@@ -2,6 +2,18 @@
%% -*- erlang -*-
%%! -pa ./src/couchdb -sasl errlog_type error -boot start_sasl -noshell
+% Licensed under the Apache License, Version 2.0 (the "License"); you may not
+% use this file except in compliance with the License. You may obtain a copy of
+% the License at
+%
+% http://www.apache.org/licenses/LICENSE-2.0
+%
+% Unless required by applicable law or agreed to in writing, software
+% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+% License for the specific language governing permissions and limitations under
+% the License.
+
filename() -> "./test/etap/temp.021".
rows() -> 1000.
diff --git a/test/etap/030-doc-from-json.t b/test/etap/030-doc-from-json.t
index 431aa7ed..2bfdfdc5 100755
--- a/test/etap/030-doc-from-json.t
+++ b/test/etap/030-doc-from-json.t
@@ -2,6 +2,17 @@
%% -*- erlang -*-
%%! -pa ./src/couchdb -pa ./src/mochiweb -sasl errlog_type false -noshell
+% Licensed under the Apache License, Version 2.0 (the "License"); you may not
+% use this file except in compliance with the License. You may obtain a copy of
+% the License at
+%
+% http://www.apache.org/licenses/LICENSE-2.0
+%
+% Unless required by applicable law or agreed to in writing, software
+% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+% License for the specific language governing permissions and limitations under
+% the License.
%% XXX: Figure out how to -include("couch_db.hrl")
-record(doc, {id= <<"">>, revs={0, []}, body={[]},
diff --git a/test/etap/031-doc-to-json.t b/test/etap/031-doc-to-json.t
index 9bb5747e..1bf49d6b 100755
--- a/test/etap/031-doc-to-json.t
+++ b/test/etap/031-doc-to-json.t
@@ -2,6 +2,17 @@
%% -*- erlang -*-
%%! -pa ./src/couchdb -pa ./src/mochiweb -sasl errlog_type false -noshell
+% Licensed under the Apache License, Version 2.0 (the "License"); you may not
+% use this file except in compliance with the License. You may obtain a copy of
+% the License at
+%
+% http://www.apache.org/licenses/LICENSE-2.0
+%
+% Unless required by applicable law or agreed to in writing, software
+% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+% License for the specific language governing permissions and limitations under
+% the License.
%% XXX: Figure out how to -include("couch_db.hrl")
-record(doc, {id= <<"">>, revs={0, []}, body={[]},
diff --git a/test/etap/040-util.t b/test/etap/040-util.t
index 94db4534..c23dc97f 100755
--- a/test/etap/040-util.t
+++ b/test/etap/040-util.t
@@ -1,6 +1,18 @@
#!/usr/bin/env escript
%% -*- erlang -*-
+% Licensed under the Apache License, Version 2.0 (the "License"); you may not
+% use this file except in compliance with the License. You may obtain a copy of
+% the License at
+%
+% http://www.apache.org/licenses/LICENSE-2.0
+%
+% Unless required by applicable law or agreed to in writing, software
+% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+% License for the specific language governing permissions and limitations under
+% the License.
+
main(_) ->
code:add_pathz("src/couchdb"),
application:start(crypto),
@@ -26,13 +38,13 @@ test() ->
% terminate_linked
Self = self(),
spawn(fun() ->
- ChildPid = spawn_link(fun() -> receive shutdown -> ok end end),
- couch_util:terminate_linked(normal),
- Self ! {pid, ChildPid}
- end),
+ ChildPid = spawn_link(fun() -> receive shutdown -> ok end end),
+ couch_util:terminate_linked(normal),
+ Self ! {pid, ChildPid}
+ end),
receive
{pid, Pid} ->
- etap:ok(not is_process_alive(Pid), "why wont this work?")
+ etap:ok(not is_process_alive(Pid), "why wont this work?")
end,
% new_uuid
diff --git a/test/etap/050-stream.t b/test/etap/050-stream.t
index bb28a96b..aa4c839a 100755
--- a/test/etap/050-stream.t
+++ b/test/etap/050-stream.t
@@ -1,6 +1,18 @@
#!/usr/bin/env escript
%% -*- erlang -*-
+% Licensed under the Apache License, Version 2.0 (the "License"); you may not
+% use this file except in compliance with the License. You may obtain a copy of
+% the License at
+%
+% http://www.apache.org/licenses/LICENSE-2.0
+%
+% Unless required by applicable law or agreed to in writing, software
+% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+% License for the specific language governing permissions and limitations under
+% the License.
+
main(_) ->
code:add_pathz("src/couchdb"),
etap:plan(13),
diff --git a/test/etap/060-kt-merging.t b/test/etap/060-kt-merging.t
index f5d9fbe7..0ad73245 100755
--- a/test/etap/060-kt-merging.t
+++ b/test/etap/060-kt-merging.t
@@ -1,6 +1,18 @@
#!/usr/bin/env escript
%% -*- erlang -*-
+% Licensed under the Apache License, Version 2.0 (the "License"); you may not
+% use this file except in compliance with the License. You may obtain a copy of
+% the License at
+%
+% http://www.apache.org/licenses/LICENSE-2.0
+%
+% Unless required by applicable law or agreed to in writing, software
+% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+% License for the specific language governing permissions and limitations under
+% the License.
+
main(_) ->
code:add_pathz("src/couchdb"),
etap:plan(16),
diff --git a/test/etap/061-kt-missing-leaves.t b/test/etap/061-kt-missing-leaves.t
index 85fac0b6..051eb45d 100755
--- a/test/etap/061-kt-missing-leaves.t
+++ b/test/etap/061-kt-missing-leaves.t
@@ -1,6 +1,18 @@
#!/usr/bin/env escript
%% -*- erlang -*-
+% Licensed under the Apache License, Version 2.0 (the "License"); you may not
+% use this file except in compliance with the License. You may obtain a copy of
+% the License at
+%
+% http://www.apache.org/licenses/LICENSE-2.0
+%
+% Unless required by applicable law or agreed to in writing, software
+% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+% License for the specific language governing permissions and limitations under
+% the License.
+
main(_) ->
code:add_pathz("src/couchdb"),
etap:plan(4),
diff --git a/test/etap/062-kt-remove-leaves.t b/test/etap/062-kt-remove-leaves.t
index e560c6a9..dc163ffe 100755
--- a/test/etap/062-kt-remove-leaves.t
+++ b/test/etap/062-kt-remove-leaves.t
@@ -1,6 +1,18 @@
#!/usr/bin/env escript
%% -*- erlang -*-
+% Licensed under the Apache License, Version 2.0 (the "License"); you may not
+% use this file except in compliance with the License. You may obtain a copy of
+% the License at
+%
+% http://www.apache.org/licenses/LICENSE-2.0
+%
+% Unless required by applicable law or agreed to in writing, software
+% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+% License for the specific language governing permissions and limitations under
+% the License.
+
main(_) ->
code:add_pathz("src/couchdb"),
etap:plan(6),
diff --git a/test/etap/063-kt-get-leaves.t b/test/etap/063-kt-get-leaves.t
index 342657bf..f86ddde6 100755
--- a/test/etap/063-kt-get-leaves.t
+++ b/test/etap/063-kt-get-leaves.t
@@ -1,6 +1,18 @@
#!/usr/bin/env escript
%% -*- erlang -*-
+% Licensed under the Apache License, Version 2.0 (the "License"); you may not
+% use this file except in compliance with the License. You may obtain a copy of
+% the License at
+%
+% http://www.apache.org/licenses/LICENSE-2.0
+%
+% Unless required by applicable law or agreed to in writing, software
+% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+% License for the specific language governing permissions and limitations under
+% the License.
+
main(_) ->
code:add_pathz("src/couchdb"),
etap:plan(11),
diff --git a/test/etap/064-kt-counting.t b/test/etap/064-kt-counting.t
index aa42fec6..b44ec9cc 100755
--- a/test/etap/064-kt-counting.t
+++ b/test/etap/064-kt-counting.t
@@ -1,6 +1,18 @@
#!/usr/bin/env escript
%% -*- erlang -*-
+% Licensed under the Apache License, Version 2.0 (the "License"); you may not
+% use this file except in compliance with the License. You may obtain a copy of
+% the License at
+%
+% http://www.apache.org/licenses/LICENSE-2.0
+%
+% Unless required by applicable law or agreed to in writing, software
+% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+% License for the specific language governing permissions and limitations under
+% the License.
+
main(_) ->
code:add_pathz("src/couchdb"),
etap:plan(4),
diff --git a/test/etap/065-kt-stemming.t b/test/etap/065-kt-stemming.t
index 0de69482..c7883c16 100755
--- a/test/etap/065-kt-stemming.t
+++ b/test/etap/065-kt-stemming.t
@@ -1,6 +1,18 @@
#!/usr/bin/env escript
%% -*- erlang -*-
+% Licensed under the Apache License, Version 2.0 (the "License"); you may not
+% use this file except in compliance with the License. You may obtain a copy of
+% the License at
+%
+% http://www.apache.org/licenses/LICENSE-2.0
+%
+% Unless required by applicable law or agreed to in writing, software
+% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+% License for the specific language governing permissions and limitations under
+% the License.
+
main(_) ->
code:add_pathz("src/couchdb"),
etap:plan(3),
diff --git a/test/etap/070-couch-db.t b/test/etap/070-couch-db.t
index d0ae0a52..2bc365d9 100755
--- a/test/etap/070-couch-db.t
+++ b/test/etap/070-couch-db.t
@@ -1,6 +1,18 @@
#!/usr/bin/env escript
%% -*- erlang -*-
+% Licensed under the Apache License, Version 2.0 (the "License"); you may not
+% use this file except in compliance with the License. You may obtain a copy of
+% the License at
+%
+% http://www.apache.org/licenses/LICENSE-2.0
+%
+% Unless required by applicable law or agreed to in writing, software
+% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+% License for the specific language governing permissions and limitations under
+% the License.
+
main(_) ->
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 7abd8a0a..9507cf05 100755
--- a/test/etap/080-config-get-set.t
+++ b/test/etap/080-config-get-set.t
@@ -1,6 +1,18 @@
#!/usr/bin/env escript
%% -*- erlang -*-
+% Licensed under the Apache License, Version 2.0 (the "License"); you may not
+% use this file except in compliance with the License. You may obtain a copy of
+% the License at
+%
+% http://www.apache.org/licenses/LICENSE-2.0
+%
+% Unless required by applicable law or agreed to in writing, software
+% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+% License for the specific language governing permissions and limitations under
+% the License.
+
default_config() ->
"etc/couchdb/default_dev.ini".
diff --git a/test/etap/081-config-override.2.ini b/test/etap/081-config-override.2.ini
index bb67b629..243a67f1 100644
--- a/test/etap/081-config-override.2.ini
+++ b/test/etap/081-config-override.2.ini
@@ -2,4 +2,4 @@
port = 80
[fizbang]
-unicode = normalized \ No newline at end of file
+unicode = normalized
diff --git a/test/etap/081-config-override.t b/test/etap/081-config-override.t
index abb88854..7813702c 100755
--- a/test/etap/081-config-override.t
+++ b/test/etap/081-config-override.t
@@ -1,6 +1,18 @@
#!/usr/bin/env escript
%% -*- erlang -*-
+% Licensed under the Apache License, Version 2.0 (the "License"); you may not
+% use this file except in compliance with the License. You may obtain a copy of
+% the License at
+%
+% http://www.apache.org/licenses/LICENSE-2.0
+%
+% Unless required by applicable law or agreed to in writing, software
+% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+% License for the specific language governing permissions and limitations under
+% the License.
+
default_config() ->
"etc/couchdb/default_dev.ini".
diff --git a/test/etap/082-config-register.t b/test/etap/082-config-register.t
index 09972c9e..a35d96aa 100755
--- a/test/etap/082-config-register.t
+++ b/test/etap/082-config-register.t
@@ -1,6 +1,18 @@
#!/usr/bin/env escript
%% -*- erlang -*-
+% Licensed under the Apache License, Version 2.0 (the "License"); you may not
+% use this file except in compliance with the License. You may obtain a copy of
+% the License at
+%
+% http://www.apache.org/licenses/LICENSE-2.0
+%
+% Unless required by applicable law or agreed to in writing, software
+% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+% License for the specific language governing permissions and limitations under
+% the License.
+
default_config() ->
"etc/couchdb/default_dev.ini".
diff --git a/test/etap/083-config-no-files.t b/test/etap/083-config-no-files.t
index 61ad9517..3efe41ed 100755
--- a/test/etap/083-config-no-files.t
+++ b/test/etap/083-config-no-files.t
@@ -1,6 +1,18 @@
#!/usr/bin/env escript
%% -*- erlang -*-
+% Licensed under the Apache License, Version 2.0 (the "License"); you may not
+% use this file except in compliance with the License. You may obtain a copy of
+% the License at
+%
+% http://www.apache.org/licenses/LICENSE-2.0
+%
+% Unless required by applicable law or agreed to in writing, software
+% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+% License for the specific language governing permissions and limitations under
+% the License.
+
default_config() ->
"etc/couchdb/default_dev.ini".
diff --git a/test/etap/090-task-status.t b/test/etap/090-task-status.t
index bc4c20ca..e681e056 100755
--- a/test/etap/090-task-status.t
+++ b/test/etap/090-task-status.t
@@ -1,6 +1,18 @@
#!/usr/bin/env escript
%% -*- erlang -*-
+% Licensed under the Apache License, Version 2.0 (the "License"); you may not
+% use this file except in compliance with the License. You may obtain a copy of
+% the License at
+%
+% http://www.apache.org/licenses/LICENSE-2.0
+%
+% Unless required by applicable law or agreed to in writing, software
+% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+% License for the specific language governing permissions and limitations under
+% the License.
+
main(_) ->
code:add_pathz("src/couchdb"),
etap:plan(16),
diff --git a/test/etap/100-ref-counter.t b/test/etap/100-ref-counter.t
index 144a95b8..a186076a 100755
--- a/test/etap/100-ref-counter.t
+++ b/test/etap/100-ref-counter.t
@@ -1,6 +1,18 @@
#!/usr/bin/env escript
%% -*- erlang -*-
+% Licensed under the Apache License, Version 2.0 (the "License"); you may not
+% use this file except in compliance with the License. You may obtain a copy of
+% the License at
+%
+% http://www.apache.org/licenses/LICENSE-2.0
+%
+% Unless required by applicable law or agreed to in writing, software
+% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+% License for the specific language governing permissions and limitations under
+% the License.
+
main(_) ->
code:add_pathz("src/couchdb"),
etap:plan(8),
diff --git a/test/runner.erl b/test/runner.erl
index 5cf559f3..f2522d2d 100644
--- a/test/runner.erl
+++ b/test/runner.erl
@@ -1,3 +1,15 @@
+% Licensed under the Apache License, Version 2.0 (the "License"); you may not
+% use this file except in compliance with the License. You may obtain a copy of
+% the License at
+%
+% http://www.apache.org/licenses/LICENSE-2.0
+%
+% Unless required by applicable law or agreed to in writing, software
+% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+% License for the specific language governing permissions and limitations under
+% the License.
+
-module(runner).
-export([run/0]).
diff --git a/test/runner.sh b/test/runner.sh
index 6715f5f9..7890a259 100755
--- a/test/runner.sh
+++ b/test/runner.sh
@@ -1,7 +1,23 @@
#!/bin/sh -e
+# Licensed under the Apache License, Version 2.0 (the "License"); you may not
+# use this file except in compliance with the License. You may obtain a copy of
+# the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations under
+# the License.
+
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 ../share/www/script/test/* 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 -