source: tests/attr_tests/Makefile.am @ 2d56f83

abac0-leakabac0-mei
Last change on this file since 2d56f83 was 2d56f83, checked in by Mei <mei@…>, 11 years ago

1) overhaul the tests directory that now we can regression test against
a build directory or a installed setup

  • Property mode set to 100644
File size: 844 bytes
Line 
1#
2# attr_tests
3#
4
5include  ${TESTDIR}/abac.mk
6
7EXPECTED_OKAY=3
8
9.PHONY: runcheck clean-local setup
10all: runcheck
11
12runcheck: setup.sh
13        @make clean
14        @echo 'running libabac ATTRS testing...' | tee result
15        @touch error
16        @$(MY_ENV) ./setup.sh
17        @($(MY_ENV) ./show.sh |tee -a result |grep BAD >> error; cd .)
18        @if test -f error ; \
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); \
28          else echo "   PASSED"; \
29        fi
30
31clean:
32        @rm -rf *.xml *.pem error result
33
34clean-local:
35        @rm -rf *.xml *.pem error result
36
37
Note: See TracBrowser for help on using the repository browser.