summaryrefslogtreecommitdiff
path: root/tests/06_dir_diff.sh
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2011-10-14 17:02:21 +0100
committerRichard Maw <richard.maw@codethink.co.uk>2011-10-14 17:02:21 +0100
commit43ea764b160ca41a599c978f556f8248fe5380be (patch)
tree5efc971fe01673b17d16098ea27694bffc591834 /tests/06_dir_diff.sh
parent87f84d4305716e73f43d0e0577b8295fdff2a64d (diff)
downloadtbdiff-43ea764b160ca41a599c978f556f8248fe5380be.tar.gz
Restructured tests so mandatory delay between source and target
directories can be inserted, to ensure mtime is not equal now dir_add_remove fails because the mtime of the directory changed after a file in it was altered
Diffstat (limited to 'tests/06_dir_diff.sh')
-rwxr-xr-xtests/06_dir_diff.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/06_dir_diff.sh b/tests/06_dir_diff.sh
index 99ec034..f9f56dd 100755
--- a/tests/06_dir_diff.sh
+++ b/tests/06_dir_diff.sh
@@ -11,8 +11,11 @@ TEST_TOOLS=$3
############# Test specific code ############
-setup () {
- mkdir $ORIGIN/a $ORIGIN/sticky $ORIGIN/setgid &&
+setup_origin () {
+ mkdir $ORIGIN/a $ORIGIN/sticky $ORIGIN/setgid
+}
+
+setup_target () {
mkdir $TARGET/a $TARGET/sticky $TARGET/setgid &&
echo "1" > $TARGET/a/1 &&
chown -h :cdrom $TARGET/a &&