X-Git-Url: http://sigaev.ru/git/gitweb.cgi?a=blobdiff_plain;f=Makefile;h=8fbb763092f9bc28f96ecb476505d536eb8329bf;hb=ea9d8cf2fe7206cc87126155e97bfb831cbc4d2f;hp=12e66903188e2b87c5193c4cca3764a36f221fb6;hpb=0efed821b858c3d372c03038bb26b503b0a0dd99;p=tedtools.git diff --git a/Makefile b/Makefile index 12e6690..8fbb763 100644 --- a/Makefile +++ b/Makefile @@ -28,10 +28,25 @@ libtedtools.a: $(OBJS) .c.o: $(CC) $(CFLAGS) $(INCLUDE) -c $< + +test: all + @[ -d results ] || mkdir results + @[ -d diffs ] || mkdir diffs + @[ -d temp ] || mkdir temp + @for FILE in `ls tests/* | sed -e 's#^tests/##'` ; do \ + echo -n $$FILE " ........ " ; \ + if sh tests/$$FILE > results/$$FILE 2>results/$$FILE.errout && diff -c expected/$$FILE results/$$FILE > diffs/$$FILE ; then \ + echo ok ; \ + else \ + echo FAILED ; \ + fi ; \ + done + clean: rm -rf $(OBJS) rm -rf $(PROGS) *.o rm -rf libtedtools.a rm -rf *core *gmon* nohup.out rm -rf sfxtest.log BTREE + rm -rf results diffs temp