summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/INSTALL
diff options
context:
space:
mode:
Diffstat (limited to 'ctdb/tests/INSTALL')
-rwxr-xr-xctdb/tests/INSTALL10
1 files changed, 4 insertions, 6 deletions
diff --git a/ctdb/tests/INSTALL b/ctdb/tests/INSTALL
index 6f43650cce..c67d76dc7d 100755
--- a/ctdb/tests/INSTALL
+++ b/ctdb/tests/INSTALL
@@ -83,9 +83,7 @@ cp -pr "tests/bin/" "${ctdb_libdir}"
ctdb_bindir="${destdir}${bindir}"
echo "Installing wrapper scripts into ${ctdb_bindir}..."
mkdir -p "${ctdb_bindir}"
-for i in tests/run_tests.sh tests/run_cluster_tests.sh ; do
- b=$(basename "$i" ".sh")
- out="${ctdb_bindir}/ctdb_${b}"
- sed -e "s@^test_dir=.*@test_dir=${datarootdir}/ctdb-tests\nexport TEST_BIN_DIR=\"${libdir}/ctdb-tests\"@" "$i" >"${out}"
- chmod 755 "$out"
-done
+out="${ctdb_bindir}/ctdb_run_tests"
+sed -e "s@^test_dir=.*@test_dir=${datarootdir}/ctdb-tests\nexport TEST_BIN_DIR=\"${libdir}/ctdb-tests\"@" "tests/run_tests.sh" >"$out"
+chmod 755 "$out"
+ln -s "ctdb_run_tests" "${ctdb_bindir}/ctdb_run_cluster_tests"