glusterfs/run-tests.sh
Anand Avati 7f60841506 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 <avati@redhat.com>
Reviewed-on: http://review.gluster.org/5986
Reviewed-by: Harshavardhana <harsha@harshavardhana.net>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
2013-09-20 21:12:39 -07:00

31 lines
726 B
Bash
Executable File

#!/bin/bash
# Copyright (c) 2013 Red Hat, Inc. <http://www.redhat.com>
#
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 "$@"