source:
examples/python_tests/runall
@
47d5cf9
Last change on this file since 47d5cf9 was 669b481, checked in by , 12 years ago | |
---|---|
|
|
File size: 617 bytes |
Rev | Line | |
---|---|---|
[f0eb81d] | 1 | #!/bin/sh |
2 | ||
3 | # format, | |
4 | # runall clean | |
[9335cfa] | 5 | # runall run |
[f0eb81d] | 6 | |
7 | progname=$(basename $0) | |
[d9c3886] | 8 | pwd=`pwd` |
[f0eb81d] | 9 | |
10 | if [ $# -eq 0 ]; then | |
[d9c3886] | 11 | echo "Usage: $progname (clean|run)" >&2; |
[f0eb81d] | 12 | exit 1 |
13 | fi | |
[c469edf] | 14 | |
[5110d42] | 15 | ABAC_PROVER_PATH="/home/mei/Deter/abac/libabac" |
16 | export ABAC_PROVER_PATH | |
17 | ||
[c469edf] | 18 | for i in `ls -1 `; do |
[d9c3886] | 19 | if [ -d $i ]; then |
20 | cd $i | |
[f0eb81d] | 21 | if [ "$1" = "clean" ]; then |
[5110d42] | 22 | rm -rf ../allout.tmp |
[f0eb81d] | 23 | printf "\n ==> CLEANING on %s\n" "$i" >& 2 ; |
[669b481] | 24 | rm -rf *.der *.pem *.cn *.sha *.log |
[f0eb81d] | 25 | elif [ "$1" = "run" ] ; then |
[d9c3886] | 26 | printf "\n ==> RUN on %s\n" "$i" >& 2; |
27 | ./run_test | |
[f0eb81d] | 28 | fi |
[d9c3886] | 29 | cd $pwd |
[c469edf] | 30 | fi |
31 | done |
Note: See TracBrowser
for help on using the repository browser.