6 export BUP_DIR="$TOP/buptest.tmp"
23 WVPASSEQ "$(bup index -p)" ""
24 WVPASSEQ "$(bup index -p $D)" ""
26 WVFAIL bup index -u $D.fake
27 WVPASS bup index -u $D
28 WVPASSEQ "$(bup index -p $D)" "$D/"
31 WVPASSEQ "$(bup index -s $D/)" "A $D/"
32 WVPASSEQ "$(bup index -s $D/b)" ""
34 WVPASSEQ "$(bup index -us $D/b)" "A $D/b"
35 WVPASSEQ "$(bup index -us $D)" \
41 WVPASSEQ "$(bup index -us $D/a $D/b --fake-valid)" \
44 WVPASSEQ "$(bup index -us $D/a)" " $D/a" # stays unmodified
46 WVPASS bup index -u $D/a # becomes modified
47 WVPASSEQ "$(bup index -s $D/a $D $D/b)" \
53 WVPASSEQ "$(cd $D && bup index -m .)" \
58 WVPASSEQ "$(cd $D && bup index -m)" \
63 WVPASSEQ "$(cd $D && bup index -s .)" "$(cd $D && bup index -s .)"
67 WVPASS bup split --bench -b <testfile1 >tags1.tmp
68 WVPASS bup split -vvvv -b testfile2 >tags2.tmp
69 WVPASS bup split -t testfile2 >tags2t.tmp
70 WVPASS bup split -t testfile2 --fanout 3 >tags2tf.tmp
71 WVPASS bup split -r "$BUP_DIR" -c testfile2 >tags2c.tmp
73 | WVPASS bup split -r "$BUP_DIR" -c --fanout 3 --max-pack-objects 3 -n lslr
74 WVFAIL diff -u tags1.tmp tags2.tmp
76 # fanout must be different from non-fanout
77 WVFAIL diff -q tags2t.tmp tags2tf.tmp
78 wc -c testfile1 testfile2
79 wc -l tags1.tmp tags2.tmp
82 WVPASS bup join $(cat tags1.tmp) >out1.tmp
83 WVPASS bup join <tags2.tmp >out2.tmp
84 WVPASS bup join <tags2t.tmp >out2t.tmp
85 WVPASS bup join -r "$BUP_DIR" <tags2c.tmp >out2c.tmp
86 WVPASS diff -u testfile1 out1.tmp
87 WVPASS diff -u testfile2 out2.tmp
88 WVPASS diff -u testfile2 out2t.tmp
89 WVPASS diff -u testfile2 out2c.tmp
94 cd "$BUP_DIR" || exit 1
97 (cd "$TOP/t/sampledata" && WVPASS bup save -vvn master /) || WVFAIL
98 n=$(git fsck --full --strict 2>&1 |
99 egrep -v 'dangling (commit|tree)' |
102 WVPASS [ "$n" -eq 0 ]