source: tests/creddy_tests/Makefile.am @ 831da18

abac0-leakabac0-mei
Last change on this file since 831da18 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: 1003 bytes
Line 
1#
2# creddy_tests
3#
4include  ../abac.mk
5
6EXPECTED_OKAY=50
7all: runcheck
8
9.PHONY: runcheck clean-local setup
10
11SCRIPT=verify roles attribute keyid generate display attribute_rule
12
13runcheck: setup.sh
14        @echo 'running libabac CREDDY testing...' | tee result
15        @make clean
16        @$(MY_ENV) ./setup.sh
17        @touch error
18        @for i in $(SCRIPT); do \
19          echo "---running $$i script"  >> result; \
20          $(MY_ENV) ./$$i.sh | tee -a result |grep BAD >> error; cd .; \
21        done
22        @if test -f error ; \
23          then \
24            (if test `cat error | wc -l ` -eq 0 ; \
25              then \
26                (if test `grep GOOD result | wc -l ` -eq $(EXPECTED_OKAY) ; \
27                  then echo "   PASSED!!!"; \
28                  else echo "   ERROR, no error but not enough good results!!!"; \
29                fi); \
30              else (echo "   ERROR!!!"; cat error;); \
31            fi); \
32          else echo "   PASSED"; \
33        fi
34
35clean:
36        @rm -rf *.xml *.pem error result
37
38clean-local:
39        @rm -rf *.xml *.pem error result
40
41
Note: See TracBrowser for help on using the repository browser.