Skip to content
Browse files

tagging 0.9.1

git-svn-id: https://svn.apache.org/repos/asf/couchdb/tags/0.9.1@794853 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
2 parents 111e428 + 0308efb commit 6c9ef188eb84daa48734c1be086281437d3d9396 @nslater nslater committed Jul 16, 2009
View
1 share/Makefile.am
@@ -87,6 +87,7 @@ nobase_dist_localdata_DATA = \
www/script/test/large_docs.js \
www/script/test/utf8.js \
www/script/test/attachments.js \
+ www/script/test/attachment_names.js \
www/script/test/attachment_paths.js \
www/script/test/attachment_views.js \
www/script/test/design_paths.js \
View
14 share/www/_sidebar.html
@@ -1,3 +1,17 @@
+<!--
+
+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.
+
+-->
<div id="sidebar">
<a href="index.html">
<img id="logo" src="image/logo.png" width="175" height="150" alt="Apache CouchDB: Relax">
View
4 share/www/script/jquery.couch.js
@@ -239,9 +239,9 @@
dataType: "json", data: toJSON(doc),
complete: function(req) {
var resp = $.httpData(req, "json")
- doc._id = resp.id;
- doc._rev = resp.rev;
if (req.status == 201) {
+ doc._id = resp.id;
+ doc._rev = resp.rev;
if (options.success) options.success(resp);
} else if (options.error) {
options.error(req.status, resp.error, resp.reason);
View
20 test/couch_config_test.erl
@@ -1,7 +1,19 @@
+% 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 suote
% Set up test suite
-% ?MODULE_test() returns a list of functions
+% ?MODULE_test() returns a list of functions
% that run the actual tests.
couch_config_test() ->
[
@@ -10,7 +22,7 @@ couch_config_test() ->
% test functions
-
+
store_strings() ->
Filename = "test.ini",
file:write_file(Filename, ""),
@@ -26,8 +38,8 @@ store_strings() ->
exit(Proc, kill),
receive {'EXIT', Proc, _} -> ok end,
-
+
% clean up
file:delete(Filename),
- Value = Result.
+ Value = Result.
View
18 test/couch_config_writer_test.erl
@@ -1,7 +1,19 @@
+% 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
-% ?MODULE_test() returns a list of functions
+% ?MODULE_test() returns a list of functions
% that run the actual tests.
% todo, fix replace_existing_variable2 (i.e. reordering)
couch_config_writer_test() ->
@@ -186,12 +198,12 @@ run_operation_and_compare_results(Contents, Expect, Config) ->
% call replace function
[couch_config_writer:save_to_file(ConfigVar, Filename) || ConfigVar <- Config],
-
+
% compare new file with expected file
{ok, Result_} = file:read_file(Filename),
Result = binary_to_list(Result_),
% clean up
% file:delete(Filename),
-
+
Result = Expect.
View
12 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]).
View
12 test/runner.sh
@@ -1,5 +1,17 @@
#!/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()"

0 comments on commit 6c9ef18

Please sign in to comment.
Something went wrong with that request. Please try again.