]> arthur.barton.de Git - bup.git/blobdiff - t/test-split-join.sh
get: adjust for python 3 and test there
[bup.git] / t / test-split-join.sh
index 8e3cc4d584a866023de940b6f1eddff2a7e18c9a..1a5d659b3e4c36cff76c4861347d2e8f669c645f 100755 (executable)
@@ -15,6 +15,13 @@ WVPASS cd "$tmpdir"
 
 WVPASS bup init
 
+WVSTART "split --noop"
+WVPASS bup split --noop <"$top/t/testfile1" >noop.tmp
+WVPASSEQ '' "$(<noop.tmp)"
+WVPASS bup split --noop -b <"$top/t/testfile1" >tags1n.tmp
+WVPASS bup split --noop -t <"$top/t/testfile2" >tags2tn.tmp
+WVPASSEQ $(find "$BUP_DIR/objects/pack" -name '*.pack' | wc -l) 0
+
 WVSTART "split"
 WVPASS echo a >a.tmp
 WVPASS echo b >b.tmp
@@ -66,6 +73,8 @@ WVPASS bup ls /lslr/latest
 WVPASS bup ls /lslr/latest/
 #WVPASS bup ls /lslr/1971-01-01   # all dates always exist
 WVFAIL diff -u tags1.tmp tags2.tmp
+WVPASS diff -u tags1.tmp tags1n.tmp
+WVPASS diff -u tags2t.tmp tags2tn.tmp
 
 # fanout must be different from non-fanout
 WVFAIL diff tags2t.tmp tags2tf.tmp