3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
8 # Run a regression test script on a remote machine
10 # called: rtest <machine> <branch> <test-script>
12 # Since make setup is always called, you probably want
13 # to execute scripts that do not do the setup. If you do
14 # it just takes a bit longer, but there is no harm done.
16 # Note: expects remote source to be in the same place
17 # as defined in regress/config on your calling machine
18 # Otherwise, you must define BACULA_SOURCE after the
23 if test $# != 3 ; then
24 echo "Called: rtest <machine> <branch> <test-script>"
34 # remove any modified version.h
35 git checkout src/version.h
36 git checkout ${branch}
43 scp ${host}:${BACULA_SOURCE}/../regress/test.out rtest.out
47 grep -e" \!\!\!\!" -e"===\ Test" test.out