source: examples/passphrase_tests/Makefile @ d0efdec

mei_rt2
Last change on this file since d0efdec was 2e9455f, checked in by Mei <mei@…>, 11 years ago

1) added namespace
2) tweak ?This,
3) allowing linking role/oset as constraining conditions
4) adding access_tests regression testing that uses GENI's access policy
5) added couple multi contexts regression tests
6) add compression/uncompression calls to abac_encode_string/abac_decode_string
(libstrongwan only allows 512 char for attribute rule storage)
7) add attribute_now option to creddy that takes a whole char string for attribute
rule

  • Property mode set to 100644
File size: 981 bytes
Line 
1
2DIRECTORY=creddy creddy_prover python
3
4.PHONY : setup runcheck clean
5runcheck: $(DIRECTORY)
6
7clean:
8        @for i in $(DIRECTORY); do \
9        here=`pwd`; \
10        cd $$i; \
11        rm -rf */*.der */*.pem */pfile */*.tmp; \
12        rm -rf */*.cn */*.sha */*.log */creds_dump; \
13        rm -rf *.der *.pem pfile *.tmp; \
14        cd $$here; \
15        done 
16        @rm -rf allout.tmp
17        @rm -rf ENC_PRIVATE.PEM PFILE
18
19
20setup: 
21        @echo "dumdum" > PFILE
22        @openssl genrsa -des3 -out ENC_PRIVATE.PEM -passout file:PFILE 1>/dev/null 2>&1
23        @for i in $(DIRECTORY); do \
24        here=`pwd`; \
25        cd $$i; \
26        ./setup 1 >/dev/null 2>&1; \
27        cd $$here; \
28        done
29
30
31runcheck:
32        @echo 'running libabac PASSPHRASE testing...'
33        @make setup
34        @for i in $(DIRECTORY); do \
35        here=`pwd`; \
36        cd $$i; \
37        printf "\n ==> RUN on %s\n" "$$i" >> ../allout.tmp ; \
38        ./run_test 1 >> ../allout.tmp 2>/dev/null; \
39        cd $$here; \
40        done 
41        @if test -f allout.tmp && test `diff -q allout.save allout.tmp |wc -l ` -eq 0 ; \
42        then echo "   PASSED"; \
43        else echo "   ERROR:got changes!!!"; \
44        fi
45
Note: See TracBrowser for help on using the repository browser.