abac0-leakabac0-mei
Last change
on this file since 3c30b59 was
3c30b59,
checked in by Mei <mei@…>, 11 years ago
|
1) add in new refactored regression testing directory
2) undo the abac.hh/ABAC.hh api changes
3) merged with Ted's changes to attribute format/nickname/issuer processing
|
-
Property mode set to
100644
|
File size:
811 bytes
|
Rev | Line | |
---|
[3c30b59] | 1 | # |
---|
| 2 | # example_scripts |
---|
| 3 | # |
---|
| 4 | INCLUDES = -I$(abs_top_srcdir)/libabac |
---|
| 5 | LDADD = $(abs_top_builddir)/libabac/libabac.la |
---|
| 6 | |
---|
| 7 | DIRECTORY = c perl python wiki |
---|
| 8 | |
---|
| 9 | .PHONY : runcheck clean-local |
---|
| 10 | |
---|
| 11 | all: runcheck |
---|
| 12 | |
---|
| 13 | clean-local: |
---|
| 14 | @for i in $(DIRECTORY); do \ |
---|
| 15 | here=`pwd`; \ |
---|
| 16 | cd $$i; \ |
---|
| 17 | make -s clean; \ |
---|
| 18 | cd $$here; \ |
---|
| 19 | done |
---|
| 20 | @rm -rf result error |
---|
| 21 | |
---|
| 22 | runcheck: |
---|
| 23 | @echo 'running libabac SCRIPT testing...' | tee result |
---|
| 24 | @touch error; |
---|
| 25 | @for i in $(DIRECTORY); do \ |
---|
| 26 | here=`pwd`; \ |
---|
| 27 | cd $$i; \ |
---|
| 28 | printf "\n ==> RUN on %s\n" "$$i" >> $$here/result ; \ |
---|
| 29 | make -s |tee -a $$here/result |grep BAD >> $$here/error; \ |
---|
| 30 | cd $$here; \ |
---|
| 31 | done |
---|
| 32 | @if test -f error ; \ |
---|
| 33 | then \ |
---|
| 34 | (if test `cat error | wc -l ` -eq 0 ; \ |
---|
| 35 | then echo " PASSED"; \ |
---|
| 36 | else (echo " ERROR!!!"; cat error;); \ |
---|
| 37 | fi); \ |
---|
| 38 | else echo " PASSED"; \ |
---|
| 39 | fi |
---|
| 40 | |
---|
Note: See
TracBrowser
for help on using the repository browser.