]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- extended testsuite
authorArvin Schnell <aschnell@suse.de>
Wed, 6 Feb 2013 13:57:26 +0000 (08:57 -0500)
committerArvin Schnell <aschnell@suse.de>
Wed, 6 Feb 2013 13:57:26 +0000 (08:57 -0500)
testsuite-cmp/run-all
testsuite-cmp/setup

index bb40892bc07711215059299abac713ee0ad4e911..24db137a7eae6c3f3b5a5da0482ce208ca058b0c 100755 (executable)
@@ -18,3 +18,6 @@
 ./cmp btrfs /testsuite 11 12
 ./cmp btrfs /testsuite 12 11
 
+./cmp btrfs /testsuite 13 14
+./cmp btrfs /testsuite 14 13
+
index f53ffc3b5093d7afee5dc97fe7a103fcfbe6a7de..6b6d7a95900a19a26af57bb0ce474ffb8616ffec 100755 (executable)
@@ -70,18 +70,21 @@ function test5()
 {
     mkdir a
     mkdir b
+
     echo hello > a/same
     echo foo > a/diff
     echo new > a/new
+
     sleep 1
+
     echo hello > b/same
     echo bar > b/diff
 
     make_snapshot 9
 
-    mv a c
+    mv a t
     mv b a
-    mv c b
+    mv t b
 
     make_snapshot 10
 
@@ -91,15 +94,43 @@ function test5()
 
 function test6()
 {
-    touch perm user group
+    mkdir -p a1/a2/a3
+    mkdir -p b1/b2
+
+    echo hello > a1/a2/a3/same
+    echo foo > a1/a2/a3/diff
+    echo new > a1/a2/a3/new
+    mkdir a1/a2/a3/d
+    echo hello > a1/a2/a3/d/world
+
+    sleep 1
+
+    echo hello > b1/b2/same
+    echo bar > b1/b2/diff
 
     make_snapshot 11
 
+    mv a1/a2/a3 t
+    mv b1/b2 a1/a2/a3
+    mv t b1/b2
+
+    make_snapshot 12
+
+    rm a1 b1 -rf
+}
+
+
+function test7()
+{
+    touch perm user group
+
+    make_snapshot 13
+
     chmod a+rw perm
     chown nobody user
     chown :nobody group
 
-    make_snapshot 12
+    make_snapshot 14
 
     rm perm user group
 }
@@ -116,4 +147,5 @@ test3
 test4
 test5
 test6
+test7