Don't print test headers unless the test is about to run.
[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 hands"
15
16 export rsync_bin
17 export testdir
18
19 cd "$testdir"
20
21 for testbase in $test_names
22 do
23     testscript="$testbase.test"
24     if test \! -f "$testscript" 
25     then
26         echo "$testscript does not exist" >&2
27         continue
28     fi
29
30     echo "------------------------------------------------------------"
31     echo "----- $testbase running"
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 '------------------------------------------------------------'