abac0-leakabac0-meimei-idmei-rt0-nmei_rt0tvf-new-xml
Last change
on this file since b7b2ca1 was
4721618,
checked in by Mei <mei@…>, 12 years ago
|
1) tested out python and perl test scripts along with
abac_chunk_t calls in libabac's abac.hh
|
-
Property mode set to
100755
|
File size:
1.2 KB
|
Rev | Line | |
---|
[4721618] | 1 | #!/bin/sh |
---|
| 2 | |
---|
| 3 | echo '---running (python) attr script' |
---|
| 4 | make run_attr 1>/dev/null 2>& 1 |
---|
| 5 | result=`grep success attr.log 2>/dev/null` |
---|
| 6 | if [ "$result" = "" ]; then |
---|
| 7 | echo " ERROR" |
---|
| 8 | else |
---|
| 9 | echo " PASSED" |
---|
| 10 | fi |
---|
| 11 | |
---|
| 12 | #echo '---running (python) encrypted key attr script' |
---|
| 13 | #make run_e_attr 1>/dev/null 2>& 1 |
---|
| 14 | #result=`grep succeed e_attr.log 2>/dev/null` |
---|
| 15 | #if [ "$result" = "" ]; then |
---|
| 16 | # echo " ERROR" |
---|
| 17 | #else |
---|
| 18 | # echo " PASSED" |
---|
| 19 | #fi |
---|
| 20 | |
---|
| 21 | echo '---running (python) id script' |
---|
| 22 | make run_id 1>/dev/null 2>& 1 |
---|
| 23 | result=`grep okay id.log 2>/dev/null` |
---|
| 24 | if [ "$result" = "" ]; then |
---|
| 25 | echo " ERROR" |
---|
| 26 | else |
---|
| 27 | echo " PASSED" |
---|
| 28 | fi |
---|
| 29 | |
---|
| 30 | echo '---running (python) id2 script, expect failure' |
---|
| 31 | make run_id2 1>/dev/null 2>& 1 |
---|
| 32 | result=`grep "okay" id2.log 2>/dev/null` |
---|
| 33 | if [ "$result" = "" ]; then |
---|
| 34 | echo " PASSED" |
---|
| 35 | else |
---|
| 36 | echo " ERROR" |
---|
| 37 | fi |
---|
| 38 | |
---|
| 39 | echo '---running (python) id3 script, expect failure' |
---|
| 40 | make run_id3 1>/dev/null 2>& 1 |
---|
| 41 | result=`grep "okay" id3.log 2>/dev/null` |
---|
| 42 | if [ "$result" = "" ]; then |
---|
| 43 | echo " ERROR" |
---|
| 44 | else |
---|
| 45 | echo " PASSED" |
---|
| 46 | fi |
---|
| 47 | |
---|
| 48 | echo '---running (python) prover script' |
---|
| 49 | make run_prove 1>/dev/null 2>& 1 |
---|
| 50 | result=`grep success prover.log 2>/dev/null` |
---|
| 51 | if [ "$result" = "" ]; then |
---|
| 52 | echo " ERROR" |
---|
| 53 | else |
---|
| 54 | echo " PASSED" |
---|
| 55 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.