abac0-leakabac0-meimei-idmei-rt0-nmei_rt0tvf-new-xml
Last change
on this file since d6439d4 was
9e063cb,
checked in by Mei <mei@…>, 12 years ago
|
1) test out using encrypted private key to generate id credential
|
-
Property mode set to
100755
|
File size:
1.3 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 | |
---|
[9e063cb] | 12 | #this needed to be run by hand (input dumdum twice)... |
---|
[4721618] | 13 | #echo '---running (python) encrypted key attr script' |
---|
[9e063cb] | 14 | #./run_e_prover 1> e_prover.log 2>& 1 |
---|
| 15 | #result=`grep success e_prover.log 2>/dev/null |wc -l` |
---|
| 16 | #if [ "$result" = "2" ]; then |
---|
[4721618] | 17 | # echo " PASSED" |
---|
[9e063cb] | 18 | #else |
---|
| 19 | # echo " ERROR" |
---|
[4721618] | 20 | #fi |
---|
| 21 | |
---|
| 22 | echo '---running (python) id script' |
---|
| 23 | make run_id 1>/dev/null 2>& 1 |
---|
| 24 | result=`grep okay id.log 2>/dev/null` |
---|
| 25 | if [ "$result" = "" ]; then |
---|
| 26 | echo " ERROR" |
---|
| 27 | else |
---|
| 28 | echo " PASSED" |
---|
| 29 | fi |
---|
| 30 | |
---|
| 31 | echo '---running (python) id2 script, expect failure' |
---|
| 32 | make run_id2 1>/dev/null 2>& 1 |
---|
| 33 | result=`grep "okay" id2.log 2>/dev/null` |
---|
| 34 | if [ "$result" = "" ]; then |
---|
| 35 | echo " PASSED" |
---|
| 36 | else |
---|
| 37 | echo " ERROR" |
---|
| 38 | fi |
---|
| 39 | |
---|
| 40 | echo '---running (python) id3 script, expect failure' |
---|
| 41 | make run_id3 1>/dev/null 2>& 1 |
---|
| 42 | result=`grep "okay" id3.log 2>/dev/null` |
---|
| 43 | if [ "$result" = "" ]; then |
---|
| 44 | echo " ERROR" |
---|
| 45 | else |
---|
| 46 | echo " PASSED" |
---|
| 47 | fi |
---|
| 48 | |
---|
| 49 | echo '---running (python) prover script' |
---|
| 50 | make run_prove 1>/dev/null 2>& 1 |
---|
| 51 | result=`grep success prover.log 2>/dev/null` |
---|
| 52 | if [ "$result" = "" ]; then |
---|
| 53 | echo " ERROR" |
---|
| 54 | else |
---|
| 55 | echo " PASSED" |
---|
| 56 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.