summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/scripts/integration.bash
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2012-04-24 10:23:17 +1000
committerMartin Schwenke <martin@meltin.net>2012-04-27 15:40:43 +1000
commit7ed438799044c186b55f9575415faa8fb702e521 (patch)
treeaff976aed893508c091e426fbbbca720a9ec4f74 /ctdb/tests/scripts/integration.bash
parent286d5aa5b10b25c900083ec29bf5f479729343b9 (diff)
downloadsamba-7ed438799044c186b55f9575415faa8fb702e521.tar.gz
samba-7ed438799044c186b55f9575415faa8fb702e521.tar.xz
samba-7ed438799044c186b55f9575415faa8fb702e521.zip
tests/integration: Remove cabability for testcase option
This is unused and can't be used with the current test infrastructure. It may have been useful with ctdb_test_env but I don't think it was ever used. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 4aa879466dd46cb4e8710edbbaac1276521e475b)
Diffstat (limited to 'ctdb/tests/scripts/integration.bash')
-rw-r--r--ctdb/tests/scripts/integration.bash48
1 files changed, 0 insertions, 48 deletions
diff --git a/ctdb/tests/scripts/integration.bash b/ctdb/tests/scripts/integration.bash
index 363fecf5e8..3e3cc67616 100644
--- a/ctdb/tests/scripts/integration.bash
+++ b/ctdb/tests/scripts/integration.bash
@@ -129,60 +129,12 @@ ctdb_test_exit_hook_add ()
ctdb_test_exit_hook="${ctdb_test_exit_hook}${ctdb_test_exit_hook:+ ; }$*"
}
-ctdb_test_usage()
-{
- local status=${1:-2}
-
- cat <<EOF
-Usage: $0 [option]
-
-Options:
- -h, --help show this screen.
- -v, --version show test case version.
- --category show the test category (ACL, CTDB, Samba ...).
- -d, --description show test case description.
- --summary show short test case summary.
- -x trace test using set -x
-EOF
-
- exit $status
-}
-
-ctdb_test_version ()
-{
- [ -n "$CTDB_DIR" ] || die "Can not determine version."
-
- (cd "$CTDB_DIR" && git describe)
-}
-
-ctdb_test_cmd_options()
-{
- [ -n "$1" ] || return 0
-
- case "$1" in
- -h|--help) ctdb_test_usage 0 ;;
- -v|--version) ctdb_test_version ;;
- --category) echo "CTDB" ;;
- -d|--description) test_info ;;
- -x) set -x ; return 0 ;;
- *)
- echo "Error: Unknown parameter = $1"
- echo
- ctdb_test_usage 2
- ;;
- esac
-
- exit 0
-}
-
ctdb_test_init ()
{
scriptname=$(basename "$0")
testfailures=0
ctdb_test_restart_scheduled=false
- ctdb_test_cmd_options $@
-
trap "ctdb_test_exit" 0
}