mei_rt2mei_rt2_fix_1
Last change
on this file since 669b481 was
669b481,
checked in by Mei <mei@…>, 12 years ago
|
1) finish test conversion from creddy-prover to python
2) update the abac.hh/API doc more, adding more intermediate calls
to make abac.hh more uniform
3) found out why a very long attribute rule can not survive in/out of
ietf_attribute_t call (m64 en/decoding - abac_verifier, alice_rt1)
|
-
Property mode set to
100755
|
File size:
759 bytes
|
Rev | Line | |
---|
[669b481] | 1 | #!/bin/sh |
---|
| 2 | |
---|
| 3 | ABAC_PROVER_PATH="/home/mei/Deter/abac/libabac" |
---|
| 4 | export ABAC_PROVER_PATH |
---|
| 5 | |
---|
| 6 | echo '---setup principals' |
---|
| 7 | env keystore=`pwd` ./setup.py 1>/dev/null 2>& 1 |
---|
| 8 | |
---|
| 9 | echo '---setup attributes' |
---|
| 10 | env keystore=`pwd` ./attr.py 1> alice.log 2>& 1 |
---|
| 11 | |
---|
| 12 | echo '---run queries' |
---|
| 13 | |
---|
| 14 | # Make prover queries |
---|
| 15 | g_cmd_sha=`grep "cmd1:" query.py |sed "s/cmd1://g" ` |
---|
| 16 | g_cmd_cn=`grep "cmd2:" query.py |sed "s/cmd2://g" ` |
---|
| 17 | |
---|
| 18 | echo '...with sha' |
---|
| 19 | eval $g_cmd_sha 2>/dev/null 1 > alice.sha |
---|
| 20 | |
---|
| 21 | echo '...with cn' |
---|
| 22 | eval $g_cmd_cn 1>alice.cn 2>&1 |
---|
| 23 | |
---|
| 24 | result=`diff alice.cn alice.save 2>/dev/null` |
---|
| 25 | if [ $? -eq 0 ]; then |
---|
| 26 | if [ "$result" = "" ]; then |
---|
| 27 | echo " PASSED" |
---|
| 28 | else |
---|
| 29 | echo " ERROR:alice_rt1 test result differs!!!" |
---|
| 30 | fi |
---|
| 31 | else |
---|
| 32 | echo " ERROR:alice_rt1 test result differs!!!" |
---|
| 33 | fi |
---|
| 34 | |
---|
| 35 | |
---|
Note: See
TracBrowser
for help on using the repository browser.