X-Git-Url: http://www.sigaev.ru/git/gitweb.cgi?p=clrlibru.git;a=blobdiff_plain;f=Makefile;fp=Makefile;h=04e3721c47d424b5fdb85ae4bcd0b09d01f1c1e8;hp=bf32e85eca2ff7b0fd06955fd85f06e97292b453;hb=c5cbb3cfe4b2192517ea6032c982e34db1d292b9;hpb=15580bcb97c6ffc2661d193be35ce2ebef8ceb33 diff --git a/Makefile b/Makefile index bf32e85..04e3721 100644 --- a/Makefile +++ b/Makefile @@ -13,6 +13,19 @@ all: clrlibru clrlibru: $(OBJS) $(CC) $(LIB) -o $@ $(OBJS) +test: all + @[ -d results ] || mkdir results + @[ -d diffs ] || mkdir diffs + @for FILE in test.htm ; do \ + echo -n $$FILE " ........ " ; \ + if ./clrlibru < tests/$$FILE > results/$$FILE && diff -c expected/$$FILE results/$$FILE > diffs/$$FILE ; then \ + echo ok ; \ + else \ + echo FAILED ; \ + fi ; \ + done + clean: rm -rf clrlibru *core *.o + rm -rf results diffs