couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject svn commit: r1066704 - /couchdb/trunk/test/etap/
Date Thu, 03 Feb 2011 00:17:19 GMT
Author: davisp
Date: Thu Feb  3 00:17:19 2011
New Revision: 1066704

URL: http://svn.apache.org/viewvc?rev=1066704&view=rev
Log:
Use shell scripts to trigger daemon errors.

The old scripts were written with escript and were occasionally taking
too long to boot the entire Erlang VM causing some of the timing based
tests to fail. Using shell scripts should minimize the process start
up times to avoid these spurious errors.

Thanks to Adam Kocoloski for pointing out my ineptitude.
Fixes COUCHDB-1055


Added:
    couchdb/trunk/test/etap/172-os-daemon-errors.1.sh
    couchdb/trunk/test/etap/172-os-daemon-errors.2.sh   (with props)
    couchdb/trunk/test/etap/172-os-daemon-errors.3.sh   (with props)
    couchdb/trunk/test/etap/172-os-daemon-errors.4.sh   (with props)
Removed:
    couchdb/trunk/test/etap/172-os-daemon-errors.1.es
    couchdb/trunk/test/etap/172-os-daemon-errors.2.es
    couchdb/trunk/test/etap/172-os-daemon-errors.3.es
    couchdb/trunk/test/etap/172-os-daemon-errors.4.es
Modified:
    couchdb/trunk/test/etap/172-os-daemon-errors.t

Added: couchdb/trunk/test/etap/172-os-daemon-errors.1.sh
URL: http://svn.apache.org/viewvc/couchdb/trunk/test/etap/172-os-daemon-errors.1.sh?rev=1066704&view=auto
==============================================================================
--- couchdb/trunk/test/etap/172-os-daemon-errors.1.sh (added)
+++ couchdb/trunk/test/etap/172-os-daemon-errors.1.sh Thu Feb  3 00:17:19 2011
@@ -0,0 +1,17 @@
+#! /usr/bin/env bash -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.
+# 
+# Please do not make this file executable as that's the error being tested.
+
+sleep 5
\ No newline at end of file

Added: couchdb/trunk/test/etap/172-os-daemon-errors.2.sh
URL: http://svn.apache.org/viewvc/couchdb/trunk/test/etap/172-os-daemon-errors.2.sh?rev=1066704&view=auto
==============================================================================
--- couchdb/trunk/test/etap/172-os-daemon-errors.2.sh (added)
+++ couchdb/trunk/test/etap/172-os-daemon-errors.2.sh Thu Feb  3 00:17:19 2011
@@ -0,0 +1,15 @@
+#! /usr/bin/env bash -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.
+
+exit 1
\ No newline at end of file

Propchange: couchdb/trunk/test/etap/172-os-daemon-errors.2.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: couchdb/trunk/test/etap/172-os-daemon-errors.3.sh
URL: http://svn.apache.org/viewvc/couchdb/trunk/test/etap/172-os-daemon-errors.3.sh?rev=1066704&view=auto
==============================================================================
--- couchdb/trunk/test/etap/172-os-daemon-errors.3.sh (added)
+++ couchdb/trunk/test/etap/172-os-daemon-errors.3.sh Thu Feb  3 00:17:19 2011
@@ -0,0 +1,15 @@
+#! /usr/bin/env bash -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.
+
+sleep 1
\ No newline at end of file

Propchange: couchdb/trunk/test/etap/172-os-daemon-errors.3.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: couchdb/trunk/test/etap/172-os-daemon-errors.4.sh
URL: http://svn.apache.org/viewvc/couchdb/trunk/test/etap/172-os-daemon-errors.4.sh?rev=1066704&view=auto
==============================================================================
--- couchdb/trunk/test/etap/172-os-daemon-errors.4.sh (added)
+++ couchdb/trunk/test/etap/172-os-daemon-errors.4.sh Thu Feb  3 00:17:19 2011
@@ -0,0 +1,15 @@
+#! /usr/bin/env bash -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.
+
+sleep 2
\ No newline at end of file

Propchange: couchdb/trunk/test/etap/172-os-daemon-errors.4.sh
------------------------------------------------------------------------------
    svn:executable = *

Modified: couchdb/trunk/test/etap/172-os-daemon-errors.t
URL: http://svn.apache.org/viewvc/couchdb/trunk/test/etap/172-os-daemon-errors.t?rev=1066704&r1=1066703&r2=1066704&view=diff
==============================================================================
--- couchdb/trunk/test/etap/172-os-daemon-errors.t (original)
+++ couchdb/trunk/test/etap/172-os-daemon-errors.t Thu Feb  3 00:17:19 2011
@@ -30,16 +30,16 @@ config_files() ->
     ]).
 
 bad_perms() ->
-    test_util:source_file("test/etap/172-os-daemon-errors.1.es").
+    test_util:source_file("test/etap/172-os-daemon-errors.1.sh").
 
 die_on_boot() ->
-    test_util:source_file("test/etap/172-os-daemon-errors.2.es").
+    test_util:source_file("test/etap/172-os-daemon-errors.2.sh").
 
 die_quickly() ->
-    test_util:source_file("test/etap/172-os-daemon-errors.3.es").
+    test_util:source_file("test/etap/172-os-daemon-errors.3.sh").
 
 can_reboot() ->
-    test_util:source_file("test/etap/172-os-daemon-errors.4.es").
+    test_util:source_file("test/etap/172-os-daemon-errors.4.sh").
 
 main(_) ->
     test_util:init_code_path(),



Mime
View raw message