source:
examples/creddy_prover_tests/runall
@
f824a9e
Last change on this file since f824a9e was f824a9e, checked in by , 12 years ago | |
---|---|
|
|
File size: 925 bytes |
Rev | Line | |
---|---|---|
[f0eb81d] | 1 | #!/bin/sh |
2 | ||
3 | # format, | |
4 | # runall clean | |
[9335cfa] | 5 | # runall setup |
6 | # runall run | |
[f0eb81d] | 7 | |
8 | progname=$(basename $0) | |
[d9c3886] | 9 | pwd=`pwd` |
[f0eb81d] | 10 | |
11 | if [ $# -eq 0 ]; then | |
12 | echo "Usage: $progname (clean|setup|run)" >&2; | |
13 | exit 1 | |
14 | fi | |
[c469edf] | 15 | |
[f824a9e] | 16 | |
17 | UID=`id | sed -e 's/ .*//' | sed -e 's/.*(//' | sed -e 's/)//'` | |
18 | if [ $UID = "mei" ]; then | |
19 | ABAC_PROVER_PATH="../../../libabac" | |
20 | else | |
21 | ABAC_PROVER_PATH=`which abac_prover_yap | sed 's/\/abac_prover_yap//'` | |
22 | fi | |
[5110d42] | 23 | export ABAC_PROVER_PATH |
24 | ||
[c469edf] | 25 | for i in `ls -1 `; do |
[d9c3886] | 26 | if [ -d $i ]; then |
27 | cd $i | |
[f0eb81d] | 28 | if [ "$1" = "clean" ]; then |
[5110d42] | 29 | rm -rf ../allout.sha ../allout.cn |
[f0eb81d] | 30 | printf "\n ==> CLEANING on %s\n" "$i" >& 2 ; |
31 | rm -rf *.der *.pem creds_dump | |
32 | elif [ "$1" = "setup" ]; then | |
33 | printf "\n ==> SETUP on %s\n" "$i" >& 2; | |
[9502c50] | 34 | ./README |
[f0eb81d] | 35 | elif [ "$1" = "run" ] ; then |
36 | printf "\n ==> RUN on %s\n" "$i" ; | |
[9502c50] | 37 | ./run_query |
[f0eb81d] | 38 | fi |
[d9c3886] | 39 | cd $pwd |
[c469edf] | 40 | fi |
41 | done |
Note: See TracBrowser
for help on using the repository browser.