[Swift-commit] r2178 - in trunk/tests: misc sites/wonky

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Wed Aug 6 12:00:46 CDT 2008


Author: benc
Date: 2008-08-06 12:00:45 -0500 (Wed, 06 Aug 2008)
New Revision: 2178

Added:
   trunk/tests/misc/wonky-replication.sh
   trunk/tests/sites/wonky/slow-queue-fast-queue.xml
Log:
test for replication, making use of provider-wonky. this test hangs on
my laptop at the moment.


Added: trunk/tests/misc/wonky-replication.sh
===================================================================
--- trunk/tests/misc/wonky-replication.sh	                        (rev 0)
+++ trunk/tests/misc/wonky-replication.sh	2008-08-06 17:00:45 UTC (rev 2178)
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+# run tests with replication enabled and one site set to queue for a long
+# time
+
+export CF=swift.properties.enable-replication
+
+cd ../language-behaviour
+
+./generate-tc.data
+
+cat tc.data | grep -e '^localhost' > tmp.tc.data.wonky-twosite
+
+cat tc.data ../sites/tc.data > tmp.tc.data.sites
+
+cat tmp.tc.data.wonky-twosite | sed 's/localhost/wonkyA/' >> tmp.tc.data.sites
+cat tmp.tc.data.wonky-twosite | sed 's/localhost/wonkyB/' >> tmp.tc.data.sites
+
+cat $(dirname $(which swift))/../etc/swift.properties | grep --invert-match -E '^replication.enabled=' > $CF
+echo replication.enabled=true >> $CF
+
+export SWIFT_TEST_PARAMS="-config $CF -tc.file tmp.tc.data.sites -sites.file ../sites/wonky/slow-queue-fast-queue.xml -debug" 
+
+./run 066-many.swift
+
+


Property changes on: trunk/tests/misc/wonky-replication.sh
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/tests/sites/wonky/slow-queue-fast-queue.xml
===================================================================
--- trunk/tests/sites/wonky/slow-queue-fast-queue.xml	                        (rev 0)
+++ trunk/tests/sites/wonky/slow-queue-fast-queue.xml	2008-08-06 17:00:45 UTC (rev 2178)
@@ -0,0 +1,18 @@
+<config>
+
+  <pool handle="wonkyA">
+    <gridftp  url="local://localhost" />
+    <execution provider="wonky" url="good/activefail=0/activedelay=0" />
+    <workdirectory >/var/tmp</workdirectory>
+    <profile namespace="karajan" key="jobThrottle">4</profile>
+  </pool>
+
+  <pool handle="wonkyB">
+    <gridftp  url="local://localhost" />
+    <execution provider="wonky" url="bad/activefail=0/activedelay=0/submitteddelay=120" />
+    <workdirectory >/var/tmp</workdirectory>
+    <profile namespace="karajan" key="jobThrottle">4</profile>
+  </pool>
+
+
+</config>




More information about the Swift-commit mailing list