]> git.sur5r.net Git - bacula/bacula/commitdiff
Update
authorKern Sibbald <kern@sibbald.com>
Wed, 2 Apr 2008 14:16:26 +0000 (14:16 +0000)
committerKern Sibbald <kern@sibbald.com>
Wed, 2 Apr 2008 14:16:26 +0000 (14:16 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6725 91ce42f0-d328-0410-95d8-f526ca767f89

regress/DartTestfile.txt.in
regress/scripts/functions
regress/tests/big-fileset-test [new file with mode: 0755]

index 2a6a6fe917bf16db384078e145ab0da1f6d0d505..078bf717de8fb5ac755dd9c5f3f95aa93b628256 100644 (file)
@@ -5,6 +5,7 @@ ADD_TEST(disk:auto-label-test "@regressdir@/tests/auto-label-test")
 ADD_TEST(disk:backup-bacula-test "@regressdir@/tests/backup-bacula-test")
 ADD_TEST(disk:backup-to-null "@regressdir@/tests/backup-to-null")
 ADD_TEST(disk:bextract-test "@regressdir@/tests/bextract-test")
+ADD_TEST(disk:big-fileset-test "@regressdir@/tests/big-fileset-test")
 ADD_TEST(disk:big-vol-test "@regressdir@/tests/big-vol-test")
 ADD_TEST(disk:bscan-test "@regressdir@/tests/bscan-test")
 ADD_TEST(disk:bsr-opt-test "@regressdir@/tests/bsr-opt-test")
index 6518f0f034e444c67b5cc90bfa1a496629977669..a2d22457a127db70b55abde37c59862532d2b5bb 100644 (file)
@@ -205,7 +205,7 @@ end_test()
    else
       echo "  ===== $TestName OK `date +%R:%S` ===== "
       echo "  ===== $TestName OK `date +%R:%S` ===== " >>test.out
-      if test "$debug" -eq 0 ; then
+      if [ $debug -eq 0 ] ; then
          scripts/cleanup
       fi
    fi
diff --git a/regress/tests/big-fileset-test b/regress/tests/big-fileset-test
new file mode 100755 (executable)
index 0000000..f5b6d9f
--- /dev/null
@@ -0,0 +1,80 @@
+#!/bin/sh
+#
+#  Test if Bacula can handle big fileset
+#
+
+TestName="big-fileset-test"
+JobName=BigFileSet
+. scripts/functions
+
+copy_test_confs
+
+echo "${cwd}/build" >${cwd}/tmp/file-list
+
+cp ${cwd}/bin/bacula-dir.conf ${cwd}/tmp/1
+sed "s%# Label Format%  Label Format%" ${cwd}/tmp/1 >${cwd}/bin/bacula-dir.conf
+
+change_jobname MonsterFileSet $JobName
+start_test
+
+cat <<END_OF_SCRIPT >${cwd}/tmp/bconcmds
+@output /dev/null
+messages
+@$out ${cwd}/tmp/log1.out
+status all
+status all
+list pools
+messages
+@#setdebug level=110 storage=File
+run job=$JobName storage=File yes
+list pools
+list volumes
+wait
+sql
+SELECT StartTime, JobFiles, JobId, Level, count(*) AS nb_jobmedia  
+FROM JobMedia join Job using (JobId) join Client using (ClientId) 
+where Client.Name = 'localhost-fd' group by JobId, Level, StartTime, 
+JobFiles order by JobId desc ;
+
+messages
+@# 
+@# now do a restore
+@#
+@$out ${cwd}/tmp/log2.out
+@#setdebug level=400 storage=File
+restore where=${cwd}/tmp/bacula-restores select storage=File
+unmark *
+mark *
+count
+ls *
+dir *
+find Makefile
+pwd
+lsmark
+estimate
+?
+help
+done
+yes
+wait
+messages
+@$out
+quit
+END_OF_SCRIPT
+
+run_bacula
+check_for_zombie_jobs storage=File || exit 1
+stop_bacula
+
+check_two_logs
+
+# we are really more interested to know if backup and restore 
+# worked, but checking the files restored is non-trivial due
+# to the big fileset exclusions
+#  check_restore_diff
+
+zstat=0
+dstat=0
+bstat=0
+rstat=0
+end_test