abac0-leak
Last change
on this file since e825c38 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:
836 bytes
|
Rev | Line | |
---|
[3c30b59] | 1 | # |
---|
| 2 | # attr_tests |
---|
| 3 | # |
---|
| 4 | |
---|
[831da18] | 5 | include ../abac.mk |
---|
[3c30b59] | 6 | |
---|
[2d56f83] | 7 | EXPECTED_OKAY=3 |
---|
[3c30b59] | 8 | |
---|
[2d56f83] | 9 | .PHONY: runcheck clean-local setup |
---|
| 10 | all: runcheck |
---|
[3c30b59] | 11 | |
---|
| 12 | runcheck: setup.sh |
---|
| 13 | @make clean |
---|
| 14 | @echo 'running libabac ATTRS testing...' | tee result |
---|
| 15 | @touch error |
---|
| 16 | @$(MY_ENV) ./setup.sh |
---|
[2d56f83] | 17 | @($(MY_ENV) ./show.sh |tee -a result |grep BAD >> error; cd .) |
---|
[3c30b59] | 18 | @if test -f error ; \ |
---|
[2d56f83] | 19 | then \ |
---|
| 20 | (if test `cat error | wc -l ` -eq 0 ; \ |
---|
| 21 | then \ |
---|
| 22 | (if test `grep GOOD result | wc -l ` -eq $(EXPECTED_OKAY) ; \ |
---|
| 23 | then echo " PASSED!!!"; \ |
---|
| 24 | else echo " ERROR, no error but not enough good results!!!"; \ |
---|
| 25 | fi); \ |
---|
| 26 | else (echo " ERROR!!!"; cat error;); \ |
---|
| 27 | fi); \ |
---|
[3c30b59] | 28 | else echo " PASSED"; \ |
---|
| 29 | fi |
---|
| 30 | |
---|
| 31 | clean: |
---|
| 32 | @rm -rf *.xml *.pem error result |
---|
| 33 | |
---|
| 34 | clean-local: |
---|
| 35 | @rm -rf *.xml *.pem error result |
---|
| 36 | |
---|
| 37 | |
---|
Note: See
TracBrowser
for help on using the repository browser.