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 | # |
---|
4 | include ../abac.mk |
---|
5 | |
---|
6 | EXPECTED_OKAY=50 |
---|
7 | all: runcheck |
---|
8 | |
---|
9 | .PHONY: runcheck clean-local setup |
---|
10 | |
---|
11 | SCRIPT=verify roles attribute keyid generate display attribute_rule |
---|
12 | |
---|
13 | runcheck: 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 | |
---|
35 | clean: |
---|
36 | @rm -rf *.xml *.pem error result |
---|
37 | |
---|
38 | clean-local: |
---|
39 | @rm -rf *.xml *.pem error result |
---|
40 | |
---|
41 | |
---|
Note: See
TracBrowser
for help on using the repository browser.