]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/source-addr-test
regress: add function to create many dirs
[bacula/bacula] / regress / tests / source-addr-test
index dfcaa6631dcd250812f109645a17a77d38714a97..644e4a3d1f1ef8fa278b264817c08ab9b97f40fe 100755 (executable)
@@ -53,14 +53,14 @@ DIRPORT=$BASEPORT
 FDPORT=$(($BASEPORT + 1))
 SDPORT=$(($BASEPORT + 2))
 
-change_jobname Client1 $JobName
+change_jobname BackupClient1 $JobName
 start_test
 
 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
 messages
 @$out ${cwd}/tmp/log1.out
-@#label volume=TestVolume001 storage=File pool=Default
+@#label volume=TestVolume001 storage=File pool=File
 @#setdebug level=100 storage=File
 run job=$JobName yes
 @sleep 3
@@ -84,15 +84,19 @@ if [ $? -ne 0 ]; then
    print_debug "Couldn't detect a connection to the FD sourced from SourceAddress ${IP}"
 fi
 
+if [ "$stat" = 2 ] ; then
+   netstat -tan
+fi
+
 if [ "$debug" = 1 ] ; then
     cat $tmp/log3.out
 fi
 
 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
 messages
 @$out ${cwd}/tmp/log1.out
-label volume=TestVolume001 storage=File pool=Default
+label volume=TestVolume001 storage=File pool=File
 @#setdebug level=100 storage=File
 wait
 messages
@@ -104,7 +108,6 @@ restore where=${cwd}/tmp/bacula-restores select all done
 yes
 wait
 messages
-@$out
 quit
 END_OF_DATA