From 61abf57e1c7a2950f7bb9f403798725b38ed71fe Mon Sep 17 00:00:00 2001
From: al_xipe <al_xipe@localhost>
Date: Sun, 26 Aug 2007 00:50:01 +0000
Subject: [PATCH] schematokens fix for replication tests

---
 opends/tests/functional-tests/testcases/replication/replication.xml |   32 +++++++-------------------------
 1 files changed, 7 insertions(+), 25 deletions(-)

diff --git a/opends/tests/functional-tests/testcases/replication/replication.xml b/opends/tests/functional-tests/testcases/replication/replication.xml
index d945bd9..9dcaa0e 100644
--- a/opends/tests/functional-tests/testcases/replication/replication.xml
+++ b/opends/tests/functional-tests/testcases/replication/replication.xml
@@ -37,31 +37,13 @@
             CurrentTestPath['group']='replication'
           </script>
           <call function="'testGroup_Preamble'"/>
-          
-          <import machine="STAF_LOCAL_HOSTNAME"
-                  file="'%s/testcases/replication/totalupdate/totalupdate.xml' % (TESTS_DIR)"/>
-          <call function="'main_totalupdate'" />
-          
-          <import machine="STAF_LOCAL_HOSTNAME"
-                  file="'%s/testcases/replication/binarycopy/binarycopy.xml' % (TESTS_DIR)"/>
-          <call function="'replication_binarycopy'" />
-          
-          <import machine="STAF_LOCAL_HOSTNAME"
-                  file="'%s/testcases/replication/ldifimport/ldifimport.xml' % (TESTS_DIR)"/>
-          <call function="'replication_ldifimport'" />
-          
-          <import machine="STAF_LOCAL_HOSTNAME"
-                  file="'%s/testcases/replication/resynchronization/resynchronization.xml' % (TESTS_DIR)"/>
-          <call function="'replication_resynchronization'" />
-          
-          <import machine="STAF_LOCAL_HOSTNAME"
-                  file="'%s/testcases/replication/basic/replication_basic.xml' % (TESTS_DIR)"/>
-          <call function="'replication_basic'" />
-          
-          <import machine="STAF_LOCAL_HOSTNAME"
-            file="'%s/testcases/replication/schema/schema.xml' % (TESTS_DIR)"/>
-          <call function="'replication_schema'" />
-          
+          <iterate  var="_test" in="['totalupdate','binarycopy','ldifimport','resynchronization','basic','schema']">
+            <sequence>
+              <import machine="STAF_LOCAL_HOSTNAME"
+                      file="'%s/testcases/replication/%s/%s.xml' % (TESTS_DIR,_test,_test)"/>
+              <call function="'replication_%s'% _test" />
+            </sequence>
+          </iterate>
           <call function="'testGroup_Postamble'"/>
         </sequence>
       </block>

--
Gitblit v1.10.0