summaryrefslogtreecommitdiffstats
path: root/ctdb
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2015-03-04 11:51:50 +1100
committerAmitay Isaacs <amitay@samba.org>2015-03-04 10:42:27 +0100
commita7dcc187e762b4f07e0233504a97aac816b04799 (patch)
treec2384c812eaded4e2dfa841bce8ad2ec05fccd97 /ctdb
parent50ddc2c35643389c2f249c6ad4496ab73a1bfc99 (diff)
downloadsamba-a7dcc187e762b4f07e0233504a97aac816b04799.tar.gz
samba-a7dcc187e762b4f07e0233504a97aac816b04799.tar.xz
samba-a7dcc187e762b4f07e0233504a97aac816b04799.zip
ctdb-tests: Remove the old, confusing INSTALL script
It is not used after switching to waf build. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb')
-rwxr-xr-xctdb/tests/INSTALL96
1 files changed, 0 insertions, 96 deletions
diff --git a/ctdb/tests/INSTALL b/ctdb/tests/INSTALL
deleted file mode 100755
index 23dcdaf2e6..0000000000
--- a/ctdb/tests/INSTALL
+++ /dev/null
@@ -1,96 +0,0 @@
-#!/bin/sh
-
-# Stop on 1st error
-set -e
-
-# Script to install the CTDB testsuite on a machine.
-
-usage ()
-{
- if [ -n "$1" ] ; then
- echo "$1"
- echo
- fi
-
- cat <<EOF
- $0 --destdir=<DIR1> \\
- --datarootdir=<DIR2> \\
- --libdir=<DIR3> \\
- --bindir=<DIR4> \\
- --etcdir=<DIR5>
-EOF
- exit 1
-}
-
-parse_options ()
-{
- temp=$(getopt -n "$prog" -o "h" -l help,destdir:,datarootdir:,libdir:,bindir:,etcdir: -- "$@")
-
- [ $? != 0 ] && usage
-
- eval set -- "$temp"
-
- destdir=""
- datarootdir=""
- libdir=""
- bindir=""
- etcdir=""
-
- while true ; do
- case "$1" in
- --destdir) destdir="$2" ; shift 2 ;;
- --datarootdir) datarootdir="$2" ; shift 2 ;;
- --libdir) libdir="$2" ; shift 2 ;;
- --bindir) bindir="$2" ; shift 2 ;;
- --etcdir) etcdir="$2" ; shift 2 ;;
- --) shift ; break ;;
- -h|--help|*) usage ;; # Shouldn't happen, so this is reasonable.
- esac
- done
-
- [ $# -gt 0 ] && usage
-
- [ -n "$destdir" ] || usage "No option --destdir specified"
- [ -n "$datarootdir" ] || usage "No option --datarootdir specified"
- [ -n "$libdir" ] || usage "No option --libdir specified"
- [ -n "$bindir" ] || usage "No option --bindir specified"
- [ -n "$etcdir" ] || usage "No option --etcdir specified"
-}
-
-parse_options "$@"
-
-# Make things neater!
-if [ "$destdir" = "/" ] ; then
- destdir=""
-fi
-
-data_subdirs="complex events.d eventscripts onnode scripts simple takeover tool"
-
-ctdb_datadir="${destdir}${datarootdir}/ctdb-tests"
-echo "Installing test data files into ${ctdb_datadir}..."
-for d in $data_subdirs ; do
- mkdir -p "${ctdb_datadir}/${d}"
- cp -pr "tests/${d}" "${ctdb_datadir}"
-done
-# Some of the unit tests have relative symlinks back to in-tree bits
-# and pieces. These links will be broken!
-link_dir="${ctdb_datadir}/eventscripts/etc-ctdb/"
-broken_links=$(find "$link_dir" -type l | sed -e "s@^${link_dir}@@")
-for i in $broken_links ; do
- ln -sf "${etcdir}/ctdb/${i}" "${ctdb_datadir}/eventscripts/etc-ctdb/${i}"
-done
-# test_wrap needs to set TEST_BIN_DIR
-sed -i -e "s@^TEST_SCRIPTS_DIR=.*@&\nexport TEST_BIN_DIR=\"${libdir}/ctdb-tests\"@" "${ctdb_datadir}/scripts/test_wrap"
-
-ctdb_libdir="${destdir}${libdir}/ctdb-tests"
-mkdir -p "${destdir}${libdir}"
-echo "Installing test binary files into ${ctdb_libdir}..."
-cp -pr "tests/bin/" "${ctdb_libdir}"
-
-ctdb_bindir="${destdir}${bindir}"
-echo "Installing wrapper scripts into ${ctdb_bindir}..."
-mkdir -p "${ctdb_bindir}"
-out="${ctdb_bindir}/ctdb_run_tests"
-sed -e "s@^test_dir=.*@test_dir=${datarootdir}/ctdb-tests\nexport TEST_BIN_DIR=\"${libdir}/ctdb-tests\"@" -e 's@^\(export CTDB_TESTS_ARE_INSTALLED\)=false@\1=true@' "tests/run_tests.sh" >"$out"
-chmod 755 "$out"
-ln -s "ctdb_run_tests" "${ctdb_bindir}/ctdb_run_cluster_tests"