clean:
scripts/cleanup
rm -f /tmp/file-list
- rm -f tmp/* working/*
+ rm -fr tmp/* working/*
rm -f test.out
rm -f diff
rm -f 1 2 3 scripts/1 scripts/2 scripts/3 tests/1 tests/2 tests/3
#
# Run all tests
#
+rm -f test1.out
tests/test0
echo " "
tests/auto-label-test
fi
echo " "
else
- echo " ===== auto-label-test OK ===== "
- echo " ===== auto-label-test OK ===== " >>test.out
+ echo " ===== auto-label-test OK `date +%R:%S` ===== "
+ echo " ===== auto-label-test OK `date +%R:%S` ===== " >>test.out
scripts/cleanup
fi
fi
echo " "
else
- echo " ===== Backup Bacula Test OK ===== "
- echo " ===== Backup Bacula Test OK ===== " >>test.out
+ echo " ===== Backup Bacula Test OK `date +%R:%S` ===== "
+ echo " ===== Backup Bacula Test OK `date +%R:%S` ===== " >>test.out
scripts/cleanup
fi
fi
echo " "
else
- echo " ===== bextract-test Bacula source OK ===== "
- echo " ===== bextract-test OK ===== " >>test.out
+ echo " ===== bextract-test Bacula source OK `date +%R:%S` ===== "
+ echo " ===== bextract-test OK `date +%R:%S` ===== " >>test.out
scripts/cleanup
fi
fi
echo " "
else
- echo " ===== bscan-test Bacula source OK ===== "
- echo " ===== bscan-test OK ===== " >>test.out
-# scripts/cleanup
+ echo " ===== bscan-test Bacula source OK `date +%R:%S` ===== "
+ echo " ===== bscan-test OK `date +%R:%S` ===== " >>test.out
+ scripts/cleanup
fi
fi
echo " "
else
- echo " ===== bsr-opt-test Bacula source OK ===== "
- echo " ===== bsr-opt-test OK ===== " >>test.out
+ echo " ===== bsr-opt-test Bacula source OK `date +%R:%S` ===== "
+ echo " ===== bsr-opt-test OK `date +%R:%S` ===== " >>test.out
scripts/cleanup
fi
fi
echo " "
else
- echo " ===== compressed-test Bacula source OK ===== "
- echo " ===== compressed-test OK ===== " >>test.out
+ echo " ===== compressed-test Bacula source OK `date +%R:%S` ===== "
+ echo " ===== compressed-test OK `date +%R:%S` ===== " >>test.out
scripts/cleanup
fi
echo " "
echo " "
echo " === Starting concurrent-jobs-test at `date +%R:%S` ==="
-echo " === Starting concurrent-jobs-test at `date +%R:%S` ===" >>working/log
echo " "
bin/bacula start 2>&1 >/dev/null
fi
echo " "
else
- echo " ===== concurrent-jobs-test Bacula source OK ===== "
- echo " ===== concurrent-jobs-test OK ===== " >>test.out
+ echo " ===== concurrent-jobs-test Bacula source OK `date +%R:%S` ===== "
+ echo " ===== concurrent-jobs-test OK `date +%R:%S` ===== " >>test.out
scripts/cleanup
fi
fi
echo " "
else
- echo " ===== differential-test Bacula source OK ===== "
- echo " ===== differential-test OK ===== " >>test.out
+ echo " ===== differential-test Bacula source OK `date +%R:%S` ===== "
+ echo " ===== differential-test OK `date +%R:%S` ===== " >>test.out
scripts/cleanup
fi
fi
echo " "
else
- echo " ===== Filed Encryption Verification Test OK ===== "
- echo " ===== Filed Encryption Verification Test OK ===== " >>test.out
+ echo " ===== Filed Encryption Verification Test OK `date +%R:%S` ===== "
+ echo " ===== Filed Encryption Verification Test OK `date +%R:%S` ===== " >>test.out
scripts/cleanup
fi
echo " "
exit 1
else
- echo " ===== four-concurrent-jobs-test Bacula source OK ===== "
- echo " ===== four-concurrent-jobs-test OK ===== " >>test.out
-# scripts/cleanup
+ echo " ===== four-concurrent-jobs-test Bacula source OK `date +%R:%S` ===== "
+ echo " ===== four-concurrent-jobs-test OK `date +%R:%S` ===== " >>test.out
+ scripts/cleanup
exit 0
fi
fi
echo " "
else
- echo " ===== four-jobs-test Bacula source OK ===== "
- echo " ===== four-jobs-test OK ===== " >>test.out
+ echo " ===== four-jobs-test Bacula source OK `date +%R:%S` ===== "
+ echo " ===== four-jobs-test OK `date +%R:%S` ===== " >>test.out
scripts/cleanup
fi
fi
echo " "
else
- echo " ===== incremental-test Bacula source OK ===== "
- echo " ===== incremental-test OK ===== " >>test.out
+ echo " ===== incremental-test Bacula source OK `date +%R:%S` ===== "
+ echo " ===== incremental-test OK `date +%R:%S` ===== " >>test.out
scripts/cleanup
fi
fi
echo " "
else
- echo " ===== query-test Bacula source OK ===== "
- echo " ===== query-test OK ===== " >>test.out
+ echo " ===== query-test Bacula source OK `date +%R:%S` ===== "
+ echo " ===== query-test OK `date +%R:%S` ===== " >>test.out
scripts/cleanup
fi
fi
echo " "
else
- echo " ===== recycle-test Bacula source OK ===== "
- echo " ===== recycle-test OK ===== " >>test.out
+ echo " ===== recycle-test Bacula source OK `date +%R:%S` ===== "
+ echo " ===== recycle-test OK `date +%R:%S` ===== " >>test.out
scripts/cleanup
fi
fi
echo " "
else
- echo " ===== restore-by-file-test Bacula source OK ===== "
- echo " ===== restore-by-file-test OK ===== " >>test.out
+ echo " ===== restore-by-file-test Bacula source OK `date +%R:%S` ===== "
+ echo " ===== restore-by-file-test OK `date +%R:%S` ===== " >>test.out
scripts/cleanup
fi
fi
echo " "
else
- echo " ===== restore-disk-seek-test Bacula source OK ===== "
- echo " ===== restore-disk-seek-test OK ===== " >>test.out
-# scripts/cleanup
-# rm -rf ${cwd}/tmp/build
+ echo " ===== restore-disk-seek-test Bacula source OK `date +%R:%S` ===== "
+ echo " ===== restore-disk-seek-test OK `date +%R:%S` ===== " >>test.out
+ scripts/cleanup
+ rm -rf ${cwd}/tmp/build
fi
echo "Diff status = $dstat"
echo " "
else
- echo " ===== restore2-by-file-test Bacula source OK ===== "
- echo " ===== restore2-by-file-test OK ===== " >>test.out
+ echo " ===== restore2-by-file-test Bacula source OK `date +%R:%S` ===== "
+ echo " ===== restore2-by-file-test OK `date +%R:%S` ===== " >>test.out
scripts/cleanup
fi
echo " !!!!! Scratch Pool Test failed!!! !!!!! " >>test.out
echo " "
else
- echo " ===== Scratch Pool Test Bacula source OK ===== "
- echo " ===== Scratch Pool Test OK ===== " >>test.out
-# scripts/cleanup
+ echo " ===== Scratch Pool Test Bacula source OK `date +%R:%S` ===== "
+ echo " ===== Scratch Pool Test OK `date +%R:%S` ===== " >>test.out
+ scripts/cleanup
fi
fi
echo " "
else
- echo " ===== six-vol-test Bacula source OK ===== "
- echo " ===== six-vol-test OK ===== " >>test.out
+ echo " ===== six-vol-test Bacula source OK `date +%R:%S` ===== "
+ echo " ===== six-vol-test OK `date +%R:%S` ===== " >>test.out
scripts/cleanup
fi
fi
echo " "
else
- echo " ===== span-vol-test Bacula source OK ===== "
- echo " ===== span-vol-test OK ===== " >>test.out
+ echo " ===== span-vol-test Bacula source OK `date +%R:%S` ===== "
+ echo " ===== span-vol-test OK `date +%R:%S` ===== " >>test.out
scripts/cleanup
fi
fi
echo " "
else
- echo " ===== sparse-compressed-test Bacula source OK ===== "
- echo " ===== sparse-compressed-test OK ===== " >>test.out
+ echo " ===== sparse-compressed-test Bacula source OK `date +%R:%S` ===== "
+ echo " ===== sparse-compressed-test OK `date +%R:%S` ===== " >>test.out
scripts/cleanup
fi
fi
echo " "
else
- echo " ===== sparse-test Bacula source OK ===== "
- echo " ===== sparse-test OK ===== " >>test.out
+ echo " ===== sparse-test Bacula source OK `date +%R:%S` ===== "
+ echo " ===== sparse-test OK `date +%R:%S` ===== " >>test.out
scripts/cleanup
fi
fi
echo " "
else
- echo " ===== two-jobs-test Bacula source OK ===== "
- echo " ===== two-jobs-test OK ===== " >>test.out
+ echo " ===== two-jobs-test Bacula source OK `date +%R:%S` ===== "
+ echo " ===== two-jobs-test OK `date +%R:%S` ===== " >>test.out
scripts/cleanup
fi
echo " !!!!! Two Pool Test failed!!! !!!!! " >>test.out
echo " "
else
- echo " ===== Two Pool Test Bacula source OK ===== "
- echo " ===== Two Pool Test OK ===== " >>test.out
-# scripts/cleanup
+ echo " ===== Two Pool Test Bacula source OK `date +%R:%S` ===== "
+ echo " ===== Two Pool Test OK `date +%R:%S` ===== " >>test.out
+ scripts/cleanup
fi
fi
echo " "
else
- echo " ===== two-vol-test Bacula source OK ===== "
- echo " ===== two-vol-test OK ===== " >>test.out
+ echo " ===== two-vol-test Bacula source OK `date +%R:%S` ===== "
+ echo " ===== two-vol-test OK `date +%R:%S` ===== " >>test.out
scripts/cleanup
fi
echo " !!!!! Two Volume Test failed!!! !!!!! " >>test.out
echo " "
else
- echo " ===== Two Volume Test Bacula source OK ===== "
- echo " ===== Two Volume Test OK ===== " >>test.out
-# scripts/cleanup
+ echo " ===== Two Volume Test Bacula source OK `date +%R:%S` ===== "
+ echo " ===== Two Volume Test OK `date +%R:%S` ===== " >>test.out
+ scripts/cleanup
fi
fi
echo " "
else
- echo " ===== Verify Volume Test OK ===== "
- echo " ===== Verify Volume Test OK ===== " >>test.out
+ echo " ===== Verify Volume Test OK `date +%R:%S` ===== "
+ echo " ===== Verify Volume Test OK `date +%R:%S` ===== " >>test.out
scripts/cleanup
fi
fi
echo " "
else
- echo " ===== Weird files test OK ===== "
- echo " ===== Weird files test OK ===== " >>test.out
+ echo " ===== Weird files test OK `date +%R:%S` ===== "
+ echo " ===== Weird files test OK `date +%R:%S` ===== " >>test.out
cd ${cwd}
scripts/cleanup
fi
fi
echo " "
else
- echo " ===== Weird files2 test OK ===== "
- echo " ===== Weird files2 test OK ===== " >>test.out
+ echo " ===== Weird files2 test OK `date +%R:%S` ===== "
+ echo " ===== Weird files2 test OK `date +%R:%S` ===== " >>test.out
cd ${cwd}
scripts/cleanup
rm -rf weird-files2