From 7f608415063f04a1035bfe7d0f8ddfb9f0215e5c Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Sun, 15 Sep 2013 19:56:25 -0700 Subject: tests: take regression tests out of autotools make run-tests.sh "location independent" and replace 'make install' with cpio in glusterfs.spec.in Change-Id: I140473c7f558e1e0af93a863b79098ced516a76b BUG: 764966 Signed-off-by: Anand Avati Reviewed-on: http://review.gluster.org/5986 Reviewed-by: Harshavardhana Tested-by: Gluster Build System --- run-tests.sh | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 run-tests.sh (limited to 'run-tests.sh') diff --git a/run-tests.sh b/run-tests.sh new file mode 100755 index 000000000..128404ed5 --- /dev/null +++ b/run-tests.sh @@ -0,0 +1,30 @@ +#!/bin/bash +# Copyright (c) 2013 Red Hat, Inc. +# + +function _init() +{ + regression_testsdir=$(dirname $0); + + if [ ! -f ${regression_testsdir}/tests/include.rc ]; then + echo "Seems like GlusterFS quality tests are corrupted..aborting!!" + exit 1 + fi +} + +function main() +{ + if [ $# -lt 1 ]; then + echo "Running all the regression test cases" + prove -rf --timer ${regression_testsdir}/tests; + else + ## TODO + echo "Running single regression test.." + echo "WARNING: yet to be implemented.. exiting safely" + exit 0 + #export DEBUG=1; + #echo "Automatically setting up DEBUG=1 for this test $1"; + fi +} + +_init "$@" && main "$@" -- cgit