3 echo "Testing \"integration\" in $0:"
6 export BUP_DIR="$TOP/buptest.tmp"
16 bup split --bench -b <testfile1 >tags1.tmp
17 bup split -vvvv -b testfile2 >tags2.tmp
18 bup split -t testfile2 >tags2t.tmp
19 bup split -t testfile2 --fanout 3 >tags2tf.tmp
20 bup split -r "$BUP_DIR" -c testfile2 >tags2c.tmp
21 diff -u tags1.tmp tags2.tmp || true
22 if diff -q tags2t.tmp tags2tf.tmp; then
23 echo "fanout tree same as non-fanout tree!?"
26 wc -c testfile1 testfile2
27 wc -l tags1.tmp tags2.tmp
28 bup join $(cat tags1.tmp) >out1.tmp
29 bup join <tags2.tmp >out2.tmp
30 bup join <tags2t.tmp >out2t.tmp
31 bup join -r "$BUP_DIR" <tags2c.tmp >out2c.tmp
32 diff -u testfile1 out1.tmp
33 diff -u testfile2 out2.tmp
34 diff -u testfile2 out2t.tmp
35 diff -u testfile2 out2c.tmp
39 cd "$BUP_DIR" || exit 1
42 (cd "$TOP/t/sampledata" && bup save -vvn master .) || exit 1
43 n=$(git fsck --full --strict 2>&1 |
44 egrep -v 'dangling (commit|tree)' |
47 if [ "$n" != 0 ]; then
48 echo "git fsck error."