diff options
| author | Steve Dickson <steved@redhat.com> | 2009-02-22 14:43:02 -0500 |
|---|---|---|
| committer | Steve Dickson <steved@redhat.com> | 2009-02-22 14:43:02 -0500 |
| commit | 43d64aa2dabf5029aac3e503a875a3cda6c5d253 (patch) | |
| tree | 34b0d7d90205ca9f6a26c319638d80d44ee03bd7 /general/runtests | |
| download | cthon04-43d64aa2dabf5029aac3e503a875a3cda6c5d253.tar.gz cthon04-43d64aa2dabf5029aac3e503a875a3cda6c5d253.tar.xz cthon04-43d64aa2dabf5029aac3e503a875a3cda6c5d253.zip | |
Inital Commit
Diffstat (limited to 'general/runtests')
| -rwxr-xr-x | general/runtests | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/general/runtests b/general/runtests new file mode 100755 index 0000000..2b7ae0b --- /dev/null +++ b/general/runtests @@ -0,0 +1,37 @@ +: +#!/bin/sh +# +# @(#)runtests 1.4 2001/12/07 Connectathon Testsuite +# + +# If the initialization file is present, assume we are in the distribution +# tree and that we must copy the tests to the test directory. Otherwise, +# we are in the test directory and can just run the tests + +InitFile="../tests.init" + +if test -f $InitFile +then + . $InitFile + export PATH CC CFLAGS LIBS + echo "GENERAL TESTS: directory $NFSTESTDIR" + mkdir $NFSTESTDIR + if test ! -d $NFSTESTDIR + then + echo "Can't make directory $NFSTESTDIR" + exit 1 + fi + make copy DESTDIR=$NFSTESTDIR + if test $? -ne 0 + then + exit 1 + fi + cd $NFSTESTDIR +else + NFSTESTDIR=`pwd` + export PATH + echo "GENERAL TESTS: directory $NFSTESTDIR" + make +fi + +exec sh runtests.wrk FROM_RUNTESTS |
