summaryrefslogtreecommitdiff
path: root/tests/regular_file_diff.sh.disabled
diff options
context:
space:
mode:
Diffstat (limited to 'tests/regular_file_diff.sh.disabled')
-rwxr-xr-xtests/regular_file_diff.sh.disabled40
1 files changed, 40 insertions, 0 deletions
diff --git a/tests/regular_file_diff.sh.disabled b/tests/regular_file_diff.sh.disabled
new file mode 100755
index 0000000..0e12454
--- /dev/null
+++ b/tests/regular_file_diff.sh.disabled
@@ -0,0 +1,40 @@
+#!/bin/bash
+
+TEST_ID="00"
+TEST_NAME="Simple file diff"
+
+CREATE=`pwd`/$1
+DEPLOY=`pwd`/$2
+TEST_TOOLS=$3
+
+. ./test_lib.sh
+
+############# Test specific code ############
+
+ORG_FILE=$ORIGIN/b.txt
+TGT_FILE=$TARGET/b.txt
+
+setup_origin () {
+ echo 1 >$ORIGIN/a.txt &&
+ chgrp tty $ORIGIN/a.txt &&
+ echo 1 > $ORG_FILE
+}
+
+setup_target () {
+ echo 2 >$TARGET/a.txt &&
+ chgrp tty $TARGET/a.txt &&
+ echo 2 > $TGT_FILE &&
+ chown :cdrom $TGT_FILE &&
+ chmod 707 $TGT_FILE
+}
+
+check_results () {
+ check_group $ORIGIN/a.txt tty &&
+ check_content $ORG_FILE "2" && \
+ check_perm $ORG_FILE 707 && \
+ check_group $ORG_FILE cdrom && \
+ check_same_mtime $ORG_FILE $TGT_FILE
+}
+
+#############################################
+main $@