summaryrefslogtreecommitdiff
path: root/tests/tet_run
blob: e0366a8ce0f6036ec75d04d034ba5814e0653c53 (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
#!/bin/bash

## FILL THIS IN or be sure environment is correct.
#XDG_TEST_DIR=
#TET_ROOT= 

export XDG_TEST_NO_INTERACTIVE="true"

if [ -z "$XDG_TEST_DIR" ] ; then
	# User didn't follow directions, make a guess.
	XDG_TEST_DIR=`pwd`	
fi
if [ -z "$TET_ROOT" ] ; then
	# can't really guess
	echo "TET_ROOT is not defined!!"
	exit 1
fi
USING_TET="true"
TEST_GROUPS=`find "$XDG_TEST_DIR" -type d -name 'xdg-*'`
TEST_FILES=`find $TEST_GROUPS -name 't.*'`

## load all the tests. 
for t in $TEST_FILES; do
	. "$t"
done

. "$XDG_TEST_DIR/include/testcontrol.sh"

tet_startup="test_setup"
tet_cleanup="test_cleanup"

## $iclist and all $ic1 ... $icN variables are now defined.
echo "iclist: $iclist"

## Launch TET
. "$TET_ROOT/lib/xpg3sh/tcm.sh"