abac0-leak
Last change
on this file since 0f8d3ab was
0f8d3ab,
checked in by Ted Faber <faber@…>, 11 years ago
|
Make sure that the regressions work when run after a fail
|
-
Property mode set to
100644
|
File size:
986 bytes
|
Line | |
---|
1 | # |
---|
2 | # example_scripts |
---|
3 | # |
---|
4 | |
---|
5 | EXPECTED_OKAY = 23 |
---|
6 | |
---|
7 | DIRECTORY = c perl python wiki |
---|
8 | SUBDIRS = $(DIRECTORY) |
---|
9 | |
---|
10 | .PHONY : runcheck clean-local clean |
---|
11 | all: runcheck |
---|
12 | |
---|
13 | clean-local: |
---|
14 | clean: |
---|
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 | |
---|
23 | runcheck: |
---|
24 | @echo 'running libabac SCRIPT testing...' | tee result |
---|
25 | @rm error; |
---|
26 | @touch error; |
---|
27 | @for i in $(DIRECTORY); do \ |
---|
28 | here=`pwd`; \ |
---|
29 | cd $$i; \ |
---|
30 | printf "\n ==> RUN on %s\n" "$$i" >> $$here/result ; \ |
---|
31 | make -i -s |tee -a $$here/result |grep BAD >> $$here/error; \ |
---|
32 | cd $$here; \ |
---|
33 | done |
---|
34 | @if test -f error ; \ |
---|
35 | then \ |
---|
36 | (if test `cat error | wc -l ` -eq 0 ; \ |
---|
37 | then \ |
---|
38 | (if test `grep GOOD result | wc -l ` -eq $(EXPECTED_OKAY) ; \ |
---|
39 | then echo " PASSED!!!"; \ |
---|
40 | else echo " ERROR, no error but not enough good results!!!"; \ |
---|
41 | fi); \ |
---|
42 | else (echo " ERROR!!!"; cat error;); \ |
---|
43 | fi); \ |
---|
44 | else echo " PASSED"; \ |
---|
45 | fi |
---|
46 | |
---|
Note: See
TracBrowser
for help on using the repository browser.