summaryrefslogtreecommitdiffstats
path: root/general/runtests
blob: 2b7ae0bd3f40c40f647a48b51987af6175abf8b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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