Start to unify the "make check" and build farm test suites
[rsync/rsync.git] / testsuite / master.test
1 #! /bin/sh
2
3 # Copyright (C) 2001 by Martin Pool <mbp@samba.org>
4
5 # rsync top-level test script -- this invokes all the other more
6 # detailed tests in order.  This script can either be called by 'make
7 # check' or through 'runlist' from the build farm.
8
9 # We need a few environment variables to know what to test.
10
11 echo "============================================================"
12 echo "$0 running"
13
14 test_names="rsync-hello"
15
16 export rsync_bin
17 export testdir
18
19 cd "$testdir"
20
21 for testbase in $test_names
22 do
23     echo "------------------------------------------------------------"
24     echo "----- $testbase running"
25
26     testscript="$testbase.test"
27     if test \! -f "$testscript" 
28     then
29         echo "$testscript does not exist" >&2
30         continue
31     fi
32
33     if sh $testscript
34     then
35         echo "----- $testbase completed succesfully"
36     else
37         echo "----- $testbase failed!"
38     fi  
39 done
40
41 echo '------------------------------------------------------------'