Note test suite.
[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
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
39done
40
41echo '------------------------------------------------------------'