source: tests/example_scripts/Makefile.am @ f2622ee

abac0-leak
Last change on this file since f2622ee was 831da18, checked in by Mei <mei@…>, 11 years ago

1) getting ready to for 0.1.6

  • Property mode set to 100644
File size: 974 bytes
Line 
1#
2# example_scripts
3#
4
5EXPECTED_OKAY = 23
6
7DIRECTORY = c perl python wiki
8SUBDIRS = $(DIRECTORY)
9
10.PHONY : runcheck clean-local clean
11all: runcheck
12
13clean-local:
14clean:
15        @for i in $(DIRECTORY); do \
16          here=`pwd`; \
17          cd $$i; \
18          make -s clean; \
19          cd $$here; \
20        done
21        @rm -rf result error
22
23runcheck:
24        @echo 'running libabac SCRIPT testing...' | tee result
25        @touch error;
26        @for i in $(DIRECTORY); do \
27          here=`pwd`; \
28          cd $$i; \
29          printf "\n ==> RUN on %s\n" "$$i" >> $$here/result ; \
30          make -i -s |tee -a $$here/result |grep BAD >> $$here/error; \
31          cd $$here; \
32        done
33        @if test -f error ; \
34          then \
35            (if test `cat error | wc -l ` -eq 0 ; \
36              then \
37                (if test `grep GOOD result | wc -l ` -eq $(EXPECTED_OKAY) ; \
38                  then echo "   PASSED!!!"; \
39                  else echo "   ERROR, no error but not enough good results!!!"; \
40                fi); \
41              else (echo "   ERROR!!!"; cat error;); \
42            fi); \
43          else echo "   PASSED"; \
44        fi
45
Note: See TracBrowser for help on using the repository browser.