fix split test script

Sun, 02 Jul 2023 12:06:45 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 02 Jul 2023 12:06:45 +0200
changeset 774
8c8aed7e1756
parent 773
78e501f6370d
child 775
e5909dff0dbf

fix split test script

test/bin-test/test-dav-sync-split1.sh file | annotate | diff | comparison | revisions
test/bin-test/test-dav-sync.sh file | annotate | diff | comparison | revisions
--- a/test/bin-test/test-dav-sync-split1.sh	Sun Jul 02 11:44:09 2023 +0200
+++ b/test/bin-test/test-dav-sync-split1.sh	Sun Jul 02 12:06:45 2023 +0200
@@ -145,7 +145,7 @@
 # test 2: add a large file
 # expected result: split
 
-head -c 1048576 /dev/zero | sed 's/\x0/a/g' > tmp-sync/xa
+head -c 1048576 /dev/zero | tr '\0' 'a' > tmp-sync/xa
 cat tmp-sync/xa | sed 's/a/b/g' > tmp-sync/xb
 cat tmp-sync/xa | sed 's/a/c/g' > tmp-sync/xc
 cat tmp-sync/xa | sed 's/a/1/g' > tmp-sync/x1
--- a/test/bin-test/test-dav-sync.sh	Sun Jul 02 11:44:09 2023 +0200
+++ b/test/bin-test/test-dav-sync.sh	Sun Jul 02 12:06:45 2023 +0200
@@ -92,25 +92,26 @@
 #
 # ok, begin the tests
 #
-#do_test "dav-sync push (1)" test-dav-sync-push1.sh
-#do_test "dav-sync pull (1)" test-dav-sync-pull1.sh
-#do_test "dav-sync pull conflict (1)" test-dav-sync-pull-conflict.sh
-#do_test "dav-sync push conflict (1)" test-dav-sync-push-conflict.sh
-#do_test "dav-sync hashing (1)" test-dav-sync-hashing1.sh
-#do_test "dav-sync hashing (2)" test-dav-sync-hashing1.sh
-#do_test "dav-sync hash strategy" test-dav-sync-hash-strategy.sh
-#do_test "dav-sync hash conflict resolution" test-dav-sync-hash-conflictres.sh
-#do_test "dav-sync hashing change cfg" test-dav-sync-hashing-cfgchange.sh
-#do_test "dav-sync metadata (1)" test-dav-sync-metadata1.sh
-#do_test "dav-sync metadata (2)" test-dav-sync-metadata2.sh
-#do_test "dav-sync metadata (3)" test-dav-sync-metadata3.sh
-#do_test "dav-sync metadata (4)" test-dav-sync-metadata4.sh
+do_test "dav-sync push (1)" test-dav-sync-push1.sh
+do_test "dav-sync pull (1)" test-dav-sync-pull1.sh
+do_test "dav-sync pull conflict (1)" test-dav-sync-pull-conflict.sh
+do_test "dav-sync push conflict (1)" test-dav-sync-push-conflict.sh
+do_test "dav-sync hashing (1)" test-dav-sync-hashing1.sh
+do_test "dav-sync hashing (2)" test-dav-sync-hashing1.sh
+do_test "dav-sync hash strategy" test-dav-sync-hash-strategy.sh
+do_test "dav-sync hash conflict resolution" test-dav-sync-hash-conflictres.sh
+do_test "dav-sync hashing change cfg" test-dav-sync-hashing-cfgchange.sh
+do_test "dav-sync metadata (1)" test-dav-sync-metadata1.sh
+do_test "dav-sync metadata (2)" test-dav-sync-metadata2.sh
+do_test "dav-sync metadata (3)" test-dav-sync-metadata3.sh
+do_test "dav-sync metadata (4)" test-dav-sync-metadata4.sh
 do_test "dav-sync versioning (1)" test-dav-sync-versioning1.sh
 do_test "dav-sync split (1)" test-dav-sync-split1.sh
 do_test "dav-sync symlink (1)" test-dav-sync-symlink1.sh
 
 # cleanup
-$DAV_BIN rm dav-test-repo/sync/test1 > /dev/null 2>&1
+
+$DAV_BIN rm dav-test-repo/sync/ > /dev/null 2>&1
 if [ $? -ne 0 ]; then
 	echo "cleanup failed"
 	exit 2

mercurial