From: Avery Pennarun Date: Sun, 3 Jan 2010 03:42:58 +0000 (-0500) Subject: Name temp files from 'make test' as *.tmp to make them easier to clean. X-Git-Tag: bup-0.01~12 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=bup.git;a=commitdiff_plain;h=2056f97c7857ba9a69fb38112956eaf4a8d62c11 Name temp files from 'make test' as *.tmp to make them easier to clean. --- diff --git a/.gitignore b/.gitignore index f19e1c2..a2577fc 100644 --- a/.gitignore +++ b/.gitignore @@ -10,4 +10,5 @@ randomgen tags[12] tags2[tc] out[12] -out2[tc] \ No newline at end of file +out2[tc] +*.tmp diff --git a/Makefile b/Makefile index 65ff880..a61b0ec 100644 --- a/Makefile +++ b/Makefile @@ -14,21 +14,21 @@ runtests: all runtests-cmdline: all @echo "Testing \"$@\" in Makefile:" - ./bup split --bench -b tags1 - ./bup split -vvvv -b testfile2 >tags2 - ./bup split -t testfile2 >tags2t - ./bup split -c testfile2 >tags2c - diff -u tags1 tags2 || true + ./bup split --bench -b tags1.tmp + ./bup split -vvvv -b testfile2 >tags2.tmp + ./bup split -t testfile2 >tags2t.tmp + ./bup split -c testfile2 >tags2c.tmp + diff -u tags1.tmp tags2.tmp || true wc -c testfile1 testfile2 - wc -l tags1 tags2 - ./bup join $$(cat tags1) >out1 - ./bup join out2 - ./bup join out2t - ./bup join out2c - diff -u testfile1 out1 - diff -u testfile2 out2 - diff -u testfile2 out2t - diff -u testfile2 out2c + wc -l tags1.tmp tags2.tmp + ./bup join $$(cat tags1.tmp) >out1.tmp + ./bup join out2.tmp + ./bup join out2t.tmp + ./bup join out2c.tmp + diff -u testfile1 out1.tmp + diff -u testfile2 out2.tmp + diff -u testfile2 out2t.tmp + diff -u testfile2 out2c.tmp test: all runtests-cmdline ./wvtestrun $(MAKE) runtests @@ -54,4 +54,4 @@ bup-%: cmd-%.sh clean: rm -f *.o *.so *~ .*~ *.pyc */*.pyc */*~ \ bup bup-split bup-join bup-save randomgen \ - out[12] tags[12] + out[12] out2[tc] tags[12] tags2[tc] *.tmp