]> arthur.barton.de Git - bup.git/blobdiff - t/test-split-join.sh
midx-cmd: accommodate python 3
[bup.git] / t / test-split-join.sh
index 5e7cdef973a151098988a517bf99b7b483bace0e..1a5d659b3e4c36cff76c4861347d2e8f669c645f 100755 (executable)
@@ -5,7 +5,7 @@
 
 set -o pipefail
 
-top="$(WVPASS /bin/pwd)" || exit $?
+top="$(WVPASS pwd)" || exit $?
 tmpdir="$(WVPASS wvmktempdir)" || exit $?
 export BUP_DIR="$tmpdir/bup"
 
@@ -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