source: examples/passphrase_tests/Makefile @ f3421a0

mei_rt2mei_rt2_fix_1
Last change on this file since f3421a0 was 08b8da7, checked in by Mei <mei@…>, 12 years ago

1) rework examples directory with Makefile
2) update scaling with plotting scripts
3) add more doc in there

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