source: examples/python_tests/runall @ 5110d42

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

1) reorganized the test directory to include python tests
2) attribute via api and principal via api from python scripts is

working (although there is a annoying seg fault at the very end
that must be related to something not been dup()ed.. need to wait
for c example to debug it)

3) able to query via api
4) replicated access_rt2 example in python and the query result matches
5) expanded api to make it easier to generate rt2 structure

  • Property mode set to 100755
File size: 814 bytes
Line 
1#!/bin/sh
2
3# format,
4#   runall clean
5#   runall run
6
7progname=$(basename $0)
8
9if [ $# -eq 0 ]; then
10    echo "Usage: $progname (clean|setup|run)" >&2;
11    exit 1
12fi
13
14ABAC_PROVER_PATH="/home/mei/Deter/abac/libabac"
15export ABAC_PROVER_PATH
16
17for i in `ls -1 `; do
18   if ( file $i | grep -Fq directory ); then
19       cd $i;
20       if [ "$1" = "clean" ]; then
21           rm -rf ../allout.tmp
22           printf "\n ==> CLEANING on %s\n" "$i" >& 2 ;
23           rm -rf *.der *.pem *.cn *.sha
24       elif [ "$1" = "setup" ]; then
25           printf "\n ==> SETUP on %s\n" "$i"  >& 2;
26           ./README
27       elif [ "$1" = "run" ] ; then
28           if(file run_test | grep -vq ERROR); then
29               printf "\n ==> RUN on %s\n" "$i" >& 2;
30               ./run_test
31           fi
32       fi 
33       cd ..;
34   fi
35done
Note: See TracBrowser for help on using the repository browser.