source: examples/creddy_prover_tests/runall @ f824a9e

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

1) add more doc to python_tests

  • Property mode set to 100755
File size: 925 bytes
Line 
1#!/bin/sh
2
3# format,
4#   runall clean
5#   runall setup
6#   runall run
7
8progname=$(basename $0)
9pwd=`pwd`
10
11if [ $# -eq 0 ]; then
12    echo "Usage: $progname (clean|setup|run)" >&2;
13    exit 1
14fi
15
16
17UID=`id | sed -e 's/ .*//' | sed -e 's/.*(//' | sed -e 's/)//'`
18if [ $UID = "mei" ]; then
19    ABAC_PROVER_PATH="../../../libabac"
20    else
21    ABAC_PROVER_PATH=`which abac_prover_yap | sed 's/\/abac_prover_yap//'`
22fi
23export ABAC_PROVER_PATH
24
25for i in `ls -1 `; do
26   if [ -d $i ]; then
27       cd $i
28       if [ "$1" = "clean" ]; then
29           rm -rf ../allout.sha ../allout.cn
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;
34           ./README
35       elif [ "$1" = "run" ] ; then
36           printf "\n ==> RUN on %s\n" "$i" ;
37           ./run_query
38       fi 
39       cd $pwd
40   fi
41done
Note: See TracBrowser for help on using the repository browser.