From 0f3ba154b9a1b72730d9647c4cd82aec271d30db Mon Sep 17 00:00:00 2001
From: el_kaboing <el_kaboing@localhost>
Date: Mon, 17 Jul 2006 19:00:25 +0000
Subject: [PATCH] Fixed a bug in build.sh for the integration test suites. Previously, if the OpenDS bits did not exist, they would be built twice, and the integration test suites not built at all. Now, if the OpenDS bits do not exist, OpenDS is built once and the integration test suites built once.
---
opends/tests/integration-tests-testng/build.sh | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/opends/tests/integration-tests-testng/build.sh b/opends/tests/integration-tests-testng/build.sh
index 6e4d42c..563c7e4 100755
--- a/opends/tests/integration-tests-testng/build.sh
+++ b/opends/tests/integration-tests-testng/build.sh
@@ -84,9 +84,10 @@
if [ ! -d "${ds_home}/build" ]; then
# Do you want to build directory server ?
# maybe the question should be asked interactively, I don't know
- echo "Could not find the bits, starting a build now"
+ echo "Could not find the openDS bits, starting a build of openDS now"
cd ${ds_home}
./build.sh package
+ cd ${ft_home}
fi
# generate the testcase from the template
@@ -97,12 +98,14 @@
template_file="${testcase_file}.template"
#cat ${template_home}/${template_file}|sed "s|<hostname>|${hostname}|"|sed "s|<integration_home>|$integration_home|" > ${template_home}/${testcase_file}
+echo "Starting the build for the integration test suites"
# Execute the ant script and pass it any additional command-line arguments.
${ANT_HOME}/bin/ant --noconfig ${*}
if [ $? -eq 0 ]; then
echo "Successfully built the integration test suite"
- echo "To run the integration test suite, please install OpenDS."
+ echo "To run the integration test suite, please install OpenDS in the location of your choice."
+ echo "Remember to set the variables in ${ft_home}/ext/testng/testng.xml"
echo "To start the integration test suite, execute "
echo "${ft_home}/test.sh [OpenDS home directory]"
cat > ${ft_home}/test.sh <<EOF
--
Gitblit v1.10.0