source: examples/example_scripts/python/run_test @ be6cb41

abac0-leakabac0-meimei-idmei-rt0-nmei_rt0tvf-new-xml
Last change on this file since be6cb41 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
Line 
1#!/bin/sh
2
3echo '---running (python) attr script'
4make run_attr 1>/dev/null 2>& 1
5result=`grep success attr.log 2>/dev/null`
6if [ "$result" = "" ]; then
7   echo "   ERROR"
8else   
9   echo "   PASSED"
10fi
11
12#this needed to be run by hand (input dumdum twice)...
13#echo '---running (python) encrypted key attr script'
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
17#   echo "   PASSED"
18#else   
19#   echo "   ERROR"
20#fi
21
22echo '---running (python) id script'
23make run_id 1>/dev/null 2>& 1
24result=`grep okay id.log 2>/dev/null`
25if [ "$result" = "" ]; then
26   echo "   ERROR"
27else   
28   echo "   PASSED"
29fi
30
31echo '---running (python) id2 script, expect failure'
32make run_id2 1>/dev/null 2>& 1
33result=`grep "okay" id2.log 2>/dev/null`
34if [ "$result" = "" ]; then
35   echo "   PASSED"
36else   
37   echo "   ERROR"
38fi
39
40echo '---running (python) id3 script, expect failure'
41make run_id3 1>/dev/null 2>& 1
42result=`grep "okay" id3.log 2>/dev/null`
43if [ "$result" = "" ]; then
44   echo "   ERROR"
45else   
46   echo "   PASSED"
47fi
48
49echo '---running (python) prover script'
50make run_prove 1>/dev/null 2>& 1
51result=`grep success prover.log 2>/dev/null`
52if [ "$result" = "" ]; then
53   echo "   ERROR"
54else   
55   echo "   PASSED"
56fi
Note: See TracBrowser for help on using the repository browser.