X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=carnet-tools-cn.git;a=blobdiff_plain;f=test%2FMakefile;fp=test%2FMakefile;h=339768eabc2ba3d0790d500463bdafa63d211492;hp=e0117a8bfa985ae2f62749038a78565e5aaf2400;hb=794b05eb76c5fa0ae149bf69a35b8ead99b8fd30;hpb=dd60228fb054bcc7ad1f222d1de6c7f351c00069 diff --git a/test/Makefile b/test/Makefile index e0117a8..339768e 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,13 @@ 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 + echo Succeeded $@ + # more tests needed # --insert-before # --begin/end marks