Don't print test headers unless the test is about to run.
[rsync/rsync.git] / testsuite / master.test
CommitLineData
a4772a4d
MP
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
11echo "============================================================"
12echo "$0 running"
13
068a7221 14test_names="rsync-hello hands"
a4772a4d
MP
15
16export rsync_bin
17export testdir
18
19cd "$testdir"
20
21for testbase in $test_names
22do
a4772a4d
MP
23 testscript="$testbase.test"
24 if test \! -f "$testscript"
25 then
26 echo "$testscript does not exist" >&2
27 continue
28 fi
29
951351a5
MP
30 echo "------------------------------------------------------------"
31 echo "----- $testbase running"
32
a4772a4d
MP
33 if sh $testscript
34 then
35 echo "----- $testbase completed succesfully"
36 else
37 echo "----- $testbase failed!"
38 fi
39done
40
41echo '------------------------------------------------------------'