default: all
-all: bup-split bup-join bup-save bup randomgen chashsplit.so
+all: bup-split bup-join bup-save bup-init bup-server bup randomgen chashsplit.so
randomgen: randomgen.o
./wvtest.py $(wildcard t/t*.py)
runtests-cmdline: all
- @echo "Testing \"$@\" in Makefile:"
- ./bup split --bench -b <testfile1 >tags1
- ./bup split -vvvv -b testfile2 >tags2
- diff -u tags1 tags2 || true
- wc -c testfile1 testfile2
- wc -l tags1 tags2
- ./bup join $$(cat tags1) >out1
- ./bup join <tags2 >out2
- diff -u testfile1 out1
- diff -u testfile2 out2
+ ./test-sh
test: all runtests-cmdline
./wvtestrun $(MAKE) runtests
clean:
rm -f *.o *.so *~ .*~ *.pyc */*.pyc */*~ \
- bup bup-split bup-join bup-save randomgen \
- out[12] tags[12]
+ bup bup-* randomgen \
+ out[12] out2[tc] tags[12] tags2[tc]
+ rm -rf *.tmp