source: tests/attr_tests/Makefile.am @ 3c30b59

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: 852 bytes
Line 
1#
2# attr_tests
3#
4
5.PHONY: runcheck clean-local setup
6
7INCLUDES = -I$(abs_top_srcdir)/libabac
8LDADD = $(abs_top_builddir)/libabac/libabac.la
9CREDDY_ENV = CREDDY_LOCATION=$(abs_top_builddir)/creddy
10PROVER_ENV = PROVER_LOCATION=$(abs_top_builddir)/libabac
11TEST_ENV = TESTDIR=$(abs_top_builddir)/tests
12MY_ENV = env $(CREDDY_ENV) $(PROVER_ENV) $(TEST_ENV)
13
14all:runcheck
15
16runcheck: setup.sh
17        @make clean
18        @echo 'running libabac ATTRS testing...' | tee result
19        @touch error
20        @$(MY_ENV) ./setup.sh
21        @($(MY_ENV) ./show.sh |tee -a result |grep BAD >> ../error; cd .)
22        @if test -f error ; \
23          then \
24            (if test `cat error | wc -l ` -eq 0 ; \
25              then echo "   PASSED"; \
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.