From 69d1f1d09a68243b4d0ce6e4db869d6b9758c537 Mon Sep 17 00:00:00 2001 From: Noah Slater Date: Tue, 14 Jul 2009 19:36:12 +0000 Subject: added licence check, and licence.skip git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@794030 13f79535-47bb-0310-9956-ffa450edef68 --- test/etap/001-load.t | 12 ++++++++++++ test/etap/010-file-basics.t | 12 ++++++++++++ test/etap/011-file-headers.t | 12 ++++++++++++ test/etap/020-btree-basics.t | 12 ++++++++++++ test/etap/021-btree-reductions.t | 12 ++++++++++++ test/etap/030-doc-from-json.t | 11 +++++++++++ test/etap/031-doc-to-json.t | 11 +++++++++++ test/etap/040-util.t | 22 +++++++++++++++++----- test/etap/050-stream.t | 12 ++++++++++++ test/etap/060-kt-merging.t | 12 ++++++++++++ test/etap/061-kt-missing-leaves.t | 12 ++++++++++++ test/etap/062-kt-remove-leaves.t | 12 ++++++++++++ test/etap/063-kt-get-leaves.t | 12 ++++++++++++ test/etap/064-kt-counting.t | 12 ++++++++++++ test/etap/065-kt-stemming.t | 12 ++++++++++++ test/etap/070-couch-db.t | 12 ++++++++++++ test/etap/080-config-get-set.t | 12 ++++++++++++ test/etap/081-config-override.2.ini | 2 +- test/etap/081-config-override.t | 12 ++++++++++++ test/etap/082-config-register.t | 12 ++++++++++++ test/etap/083-config-no-files.t | 12 ++++++++++++ test/etap/090-task-status.t | 12 ++++++++++++ test/etap/100-ref-counter.t | 12 ++++++++++++ 23 files changed, 268 insertions(+), 6 deletions(-) (limited to 'test/etap') 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), -- cgit v1.2.3