]> git.sur5r.net Git - bacula/bacula/commitdiff
Verify if the Exclude Dir Containing directive does his job
authorEric Bollengier <eric@eb.homelinux.org>
Wed, 9 Sep 2009 08:22:55 +0000 (10:22 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Wed, 9 Sep 2009 08:22:55 +0000 (10:22 +0200)
regress/tests/exclude-dir-test

index b4ae49c4b5dbb4c9d3acd0568138fa44078e41bd..7cea3dc7c2fb4cdd3bc2a9e020c51665807e5aed 100755 (executable)
@@ -16,6 +16,10 @@ cp -f $tmp/1 $conf/bacula-dir.conf
 change_jobname CompressedTest $JobName
 start_test
 
+mkdir ${cwd}/build/src/testdir
+touch ${cwd}/build/src/testdir/.nobkp
+cp ${cwd}/build/src/dird/*.c ${cwd}/build/src/testdir
+
 cat >tmp/bconcmds <<END_OF_DATA
 @$out /dev/null
 messages
@@ -40,5 +44,15 @@ check_for_zombie_jobs storage=File
 stop_bacula
 
 check_two_logs
+
+# should be ok if we remove the testdir
+rm -rf ${cwd}/build/src/testdir
 check_restore_diff
+
+grep '/testdir' $tmp/log3.out > /dev/null
+if [ $? = 0 ]; then
+    print_debug "ERROR: Should not see testdir in estimate output"
+    bstat=2
+fi
+
 end_test