]> git.sur5r.net Git - bacula/bacula/commitdiff
regress: tweak remote-fd-test
authorEric Bollengier <eric@eb.homelinux.org>
Mon, 28 Feb 2011 09:02:41 +0000 (10:02 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:43:30 +0000 (14:43 +0200)
regress/scripts/functions.pm
regress/tests/remote-fd-test

index dd8d7c502d05e43c4a6a7b2c02b4696c8f215527..28e01215eff3f7382b19325e1da469ebf5108958 100644 (file)
@@ -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);
index 2d66dbb9e618446bcc6f2cceca626459f9da4018..31b3033431dde63b46fd85441c476d9bfebff249 100755 (executable)
@@ -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