X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=test%2FMakefile;h=4f733be57fe4dfed503f575c8a7e080bf28c221b;hb=c36c7532f58f6554cce86a585ed83e92784699ff;hp=e0117a8bfa985ae2f62749038a78565e5aaf2400;hpb=baae9f008f06d16d8d033ba280c0552403c1b9bb;p=carnet-tools-cn.git diff --git a/test/Makefile b/test/Makefile index e0117a8..4f733be 100644 --- a/test/Makefile +++ b/test/Makefile @@ -6,12 +6,12 @@ # path to cp-update script CPUPDATE=../cp-update -tests: test0 test1 test2 test3 test4 test5 test6 test7 test8 +tests: test0 test1 test2 test3 test4 test5 test6 test7 test8 test9 @echo "All tests completed successfully" @cp test-file.start test-file clean: test0 test-file.start - rm -f test[0-9] test[0-9][a-zA-Z0-9] test-file.[0-9]* + rm -f test[0-9] test[0-9][a-zA-Z0-9] test-file.[0-9]* test[0-9].tmp # prepare everything for test sequence test0: test-file.start @@ -99,6 +99,14 @@ test8: test1 test2 test3 test4 test5 test6 cp test-file $@ echo Succeeded $@ +# remove single last block to leave the file empty +test9: test9.start + cp test9.start test9.tmp + $(CPUPDATE) -r test9 test9.tmp + cmp test9.tmp test9.ok + cp test9.tmp test9 + echo Succeeded $@ + # more tests needed # --insert-before # --begin/end marks