$bperl -e '(-M "$tmp/logsametime.done" < -M "$tmp/logerr.done") && exit 1'
if [ $? -ne 0 ]; then
print_debug "ERROR: The timestamp of $tmp/logsametime.done should be smaller than $tmp/logerr.done"
- echo "logsametime.done"
- cat $tmp/logsametime.done
- echo "logerr.done"
- cat $tmp/logerr.done
+ stat $tmp/logsametime.done
+ stat $tmp/logerr.done
estat=1
+else
+ stat $tmp/logsametime.done
+ stat $tmp/logerr.done
fi
nb=`grep test50-1-fd $tmp/log2.out $tmp/logerr2.out | wc -l`
# Remove last / and convert all / to cd commands
CD=`printf $tmp | sed 's:/$::' | sed 's:/:\ncd :g'`
+echo "CD=${CD}"
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
@output /dev/null
@$out ${cwd}/tmp/log2.out
restore where=$tmp/bacula-restores select storage=File1
unmark *
-$CD
+${CD}
mark big
done
yes
#!/bin/sh
#
-# Copyright (C) 2000-2015 Kern Sibbald
+# Copyright (C) 2000-2017 Kern Sibbald
# License: BSD 2-Clause; see file LICENSE-FOSS
#
#
$bperl -e 'add_attribute("$conf/bacula-sd.conf", "BlockChecksum", "no", "Device")'
+# Introduce a volume error by modifying the some Volume data
nbok=2
if [ x$FORCE_DEDUP = xyes ]; then
nbok=4
cat <<END_OF_DATA >tmp/bconcmds
@$out tmp/log3.out
@#
-@# now do a verify volume with errors
+@# now do a verify volume with errors. Note, which JobId produces
+@# verify errors depends on the size of data stored (less with dedup
+@# and ALIGNED).
@#
@$out ${cwd}/tmp/log3.out
setdebug level=10 client
fi
nb=`grep "^ Termination: *Verify OK" tmp/log2.out | wc -l`
if [ $nb -ne 4 ]; then
- rstat=1
+ vstat=1
fi
nb=`grep "^ Termination: *Verify OK" tmp/log3.out | wc -l`
if [ $nb -ne $nbok ]; then
echo "nb=${nb} nbok=${nbok}"
echo "tmp/log3.out"
cat tmp/log3.out
- rstat=2
+ vstat=2
fi
dstat=0
end_test