From a0f07a7a8e7c9163a7f5d1e976cdca8b6d10310f Mon Sep 17 00:00:00 2001
From: gary_williams <gary_williams@localhost>
Date: Thu, 23 Aug 2007 07:08:53 +0000
Subject: [PATCH] ensure tests can be run remotely
---
opends/tests/functional-tests/shared/functions/topology.xml | 36 +++++++++++++++++++++++++++++++++---
1 files changed, 33 insertions(+), 3 deletions(-)
diff --git a/opends/tests/functional-tests/shared/functions/topology.xml b/opends/tests/functional-tests/shared/functions/topology.xml
index 580f9ed..4590637 100755
--- a/opends/tests/functional-tests/shared/functions/topology.xml
+++ b/opends/tests/functional-tests/shared/functions/topology.xml
@@ -161,6 +161,7 @@
<!-- If the test data is already created then don't redo it -->
<if expr="RC == 48">
<sequence>
+
<!-- Locally copy static data files to temporary staging area -->
<!-- LDIF (.ldif) test data files -->
<message>
@@ -173,6 +174,7 @@
'extension' : 'ldif'
}
</call>
+
<!-- LDIF (.ldif) files for quickinstall -->
<script>
quickStartGroupDir='%s/%s/quickstart' % (TESTS_DIR,relativeDataDir)
@@ -212,7 +214,23 @@
'extension' : 'gz'
}
</call>
-
+
+ <!-- Archive java (.class) files -->
+ <script>
+ javaSharedDir='%s' % (TESTS_JAVA_DIR)
+ javaLocalDir='%s/shared/java' % (logsTestDataDir)
+ </script>
+ <message>
+ 'Copy java class files locally to %s.' % javaLocalDir
+ </message>
+ <call function="'CopyFolderByExtension'">
+ { 'location' : STAXServiceMachine,
+ 'srcfolder' : javaSharedDir,
+ 'destfolder' : javaLocalDir,
+ 'extension' : 'class'
+ }
+ </call>
+
<!-- Delete the any existing testdata archive -->
<message>
'Delete %s/testdata.zip' % logsTempDir
@@ -225,7 +243,7 @@
<!-- Zip up contents of tests directory -->
<message>
- 'Zip up local data directory %s/testdata.zip' % logsTempDir
+ 'Zip up local data directory to %s/testdata.zip' % logsTempDir
</message>
<call function="'zipUpFile'">
{ 'location' : STAXServiceMachine,
@@ -236,7 +254,7 @@
</call>
<message>
- 'Zip up local quickstart directory %s/testdata.zip' % logsTempDir
+ 'Zip up local quickstart directory to %s/testdata.zip' % logsTempDir
</message>
<call function="'zipUpFile'">
{ 'location' : STAXServiceMachine,
@@ -245,6 +263,18 @@
'relativeto' : logsTestDataDir
}
</call>
+
+ <message>
+ 'Zip up local java class files to %s/testdata.zip' % logsTempDir
+ </message>
+ <call function="'zipUpFile'">
+ { 'location' : STAXServiceMachine,
+ 'zipfile' : '%s/testdata.zip' % logsTempDir ,
+ 'folder' : '%s' % javaLocalDir ,
+ 'relativeto' : logsTestDataDir
+ }
+ </call>
+
</sequence>
<else>
<message>
--
Gitblit v1.10.0