source: examples/creddy_prover_tests/.runall @ 880e924

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

1) make regression test to use just runcheck (hide runall)
2) alter the absolute path in the error message so the regression testing

would not be so user dependent when doing validation

3) add the missing null setting in abac_verifier's issuer_id line 335

  • Property mode set to 100755
File size: 925 bytes
RevLine 
[f0eb81d]1#!/bin/sh
2
3# format,
4#   runall clean
[9335cfa]5#   runall setup
6#   runall run
[f0eb81d]7
8progname=$(basename $0)
[d9c3886]9pwd=`pwd`
[f0eb81d]10
11if [ $# -eq 0 ]; then
12    echo "Usage: $progname (clean|setup|run)" >&2;
13    exit 1
14fi
[c469edf]15
[f824a9e]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
[5110d42]23export ABAC_PROVER_PATH
24
[c469edf]25for 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
41done
Note: See TracBrowser for help on using the repository browser.