]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl Add some cleanup
authorEric Bollengier <eric@eb.homelinux.org>
Wed, 10 Dec 2008 21:25:21 +0000 (21:25 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Wed, 10 Dec 2008 21:25:21 +0000 (21:25 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8139 91ce42f0-d328-0410-95d8-f526ca767f89

regress/tests/backup-acl-test

index 026ff31009d3dd468cfac26361b81e9175dcee40..125b0732f7dc0ed2703057dcc9e47639ca84586b 100755 (executable)
@@ -38,9 +38,12 @@ setfacl -m user:nobody:--- $d/bconsole
 setfacl -m group:nogroup:--x $d/bconsole
 cp ${cwd}/bin/bconsole $d/testdir
 cp ${cwd}/bin/bconsole $d/other
-#setfattr -n bacula -v rulez $d/other
+setfattr -n bacula.test -v rulez $d/other
 
-(cd $cwd/build; getfacl -R acl > $cwd/tmp/org)
+( cd $cwd/build
+  getfacl -R acl > $cwd/tmp/org
+  getfattr -R acl > $cwd/tmp/attr.org
+)
 
 change_jobname Client1 $JobName
 start_test
@@ -69,13 +72,23 @@ run_bacula
 check_for_zombie_jobs storage=File
 stop_bacula
 
-(cd $cwd/tmp/bacula-restores/$cwd/build; getfacl -R acl > $cwd/tmp/new)
+( cd $cwd/tmp/bacula-restores/$cwd/build
+  getfacl -R acl > $cwd/tmp/new
+  getfattr -R acl > $cwd/tmp/attr.new
+)
 
 diff $cwd/tmp/org $cwd/tmp/new
 if [ $? -ne 0 ]; then
    rstat=1
 fi
 
+diff $cwd/tmp/attr.org $cwd/tmp/attr.new
+if [ $? -ne 0 ]; then
+   rstat=1
+fi
+
+rm -rf $d
+
 check_two_logs
 check_restore_diff