source: tests/Makefile.am @ 1546962

abac0-leakabac0-mei
Last change on this file since 1546962 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: 1.8 KB
Line 
1
2#
3# tests directory for libabac
4#
5
6INCLUDES = -I$(abs_top_srcdir)/libabac
7LDADD = $(abs_top_builddir)/libabac/libabac.la
8
9CREDDY_ENV = CREDDY_LOCATION=$(abs_top_builddir)/creddy
10PROVER_ENV = PROVER_LOCATION=$(abs_top_builddir)/libabac
11PYTHON_ENV = PYTHONPATH=$(abs_top_builddir)/swig/python:$(abs_top_builddir)/swig/python/.libs:$(abs_top_builddir)/tests
12PERL_ENV = PERLLIB=$(abs_top_builddir)/swig/perl:$(abs_top_builddir)/swig/perl/.libs
13TEST_ENV = TESTDIR=$(abs_top_builddir)/tests
14
15MY_SH_ENV = env $(CREDDY_ENV) $(PROVER_ENV)
16MY_PY_ENV = env $(PROVER_ENV) $(PYTHON_ENV)
17MY_PL_ENV = env $(PERL_ENV)
18
19DIRECTORY = example_scripts python_tests scaling_tests \
20          creddy_tests creddy_prover_tests attr_tests
21
22.PHONY: clean clean-local check_sh_env check_py_env tests
23all: check_pl_env check_sh_env check_py_env tests
24
25tests:
26        @touch result
27        @for i in $(DIRECTORY); do \
28          here=`pwd`; \
29          cd $$i; \
30          make -s runcheck | tee -a $$here/result; \
31          cd $$here; \
32        done
33
34check_sh_env:
35        @rc=`$(MY_SH_ENV) ./test_util.sh`; \
36        if [ $$? -eq 0 ]; then \
37          echo "sh_env, okay"; \
38        else \
39          echo "sh_env, not okay"; \
40          echo "perhap you did not configure&build libabac's c api??"; \
41        fi
42
43check_py_env:
44        @rc=`$(MY_PY_ENV) ./test_util.py`; \
45        if [ $$? -eq 0 ]; then \
46          echo "py_env, okay"; \
47        else \
48          echo "py_env, not okay"; \
49          echo "perhap you did not configure&build libabac's swig/python api??"; \
50        fi
51
52check_pl_env:
53        @rc=`$(MY_PL_ENV) ./test_util.pl`; \
54        if [ $$? -eq 0 ]; then \
55          echo "pl_env, okay"; \
56        else \
57          echo "pl_env, not okay"; \
58          echo "perhap you did not configure&build libabac's swig/perl api??"; \
59        fi
60       
61       
62clean:
63        for i in $(DIRECTORY); do \
64          here=`pwd`; \
65          cd $$i; \
66          make clean; \
67          cd $$here; \
68        done
69        rm -rf result error
70        rm -rf test_util.pyc
71
72clean-local:
73        rm -rf result error
74        rm -rf test_util.pyc
Note: See TracBrowser for help on using the repository browser.