From: Eric Bollengier Date: Mon, 28 Feb 2011 09:02:41 +0000 (+0100) Subject: regress: tweak remote-fd-test X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1914560d54a72c532c4c98a60e7ba5828a753ba8;p=bacula%2Fbacula regress: tweak remote-fd-test --- diff --git a/regress/scripts/functions.pm b/regress/scripts/functions.pm index dd8d7c502d..28e01215ef 100644 --- a/regress/scripts/functions.pm +++ b/regress/scripts/functions.pm @@ -622,6 +622,13 @@ Messages { close(FP); chmod 0755, "test.sh"; + # create a hardlink + link("test.sh", "link-test.sh"); + + # play with some symlinks + symlink("test.sh", "sym-test.sh"); + symlink("$REMOTE_FILE/save/test.sh", "sym-abs-test.sh"); + if ($pid) { system("ps $pid"); $estat = ($? != 0); diff --git a/regress/tests/remote-fd-test b/regress/tests/remote-fd-test index 2d66dbb9e6..31b3033431 100755 --- a/regress/tests/remote-fd-test +++ b/regress/tests/remote-fd-test @@ -30,6 +30,13 @@ start_test echo $REMOTE_FILE/save > $tmp/file-list +ssh $REMOTE_ADDR test -x /opt/bacula/bin/bacula-fd +if [ $? != 0 ]; then + print_debug "ERROR: Need to install bacula on $REMOTE_ADDR" + echo "ERROR: Need to install bacula on $REMOTE_ADDR" + exit 1 +fi + $bperl -e remote_stop $bperl -e remote_init $bperl -e remote_config