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:
576 bytes
|
Rev | Line | |
---|
[5110d42] | 1 | #!/bin/sh |
---|
| 2 | |
---|
| 3 | ABAC_PROVER_PATH="/home/mei/Deter/abac/libabac" |
---|
| 4 | export ABAC_PROVER_PATH |
---|
| 5 | |
---|
| 6 | g_cmd_sha=`grep "cmd1:" id.py |sed "s/cmd1://g" ` |
---|
| 7 | g_cmd_cn=`grep "cmd2:" id.py |sed "s/cmd2://g" ` |
---|
| 8 | |
---|
| 9 | echo '---setup principals' |
---|
| 10 | ./README |
---|
| 11 | |
---|
| 12 | echo '---run with sha' |
---|
| 13 | eval $g_cmd_sha 2>/dev/null 1 > id.sha |
---|
| 14 | |
---|
| 15 | echo '---run with cn' |
---|
| 16 | eval $g_cmd_cn 1>id.cn 2>&1 |
---|
| 17 | result=`diff id.cn id.save 2>/dev/null` |
---|
| 18 | if [ $? -eq 0 ]; then |
---|
| 19 | if [ "$result" = "" ]; then |
---|
| 20 | echo " PASSED" |
---|
| 21 | else |
---|
| 22 | echo " ERROR:id test result differs!!!" |
---|
| 23 | fi |
---|
| 24 | else |
---|
| 25 | echo " ERROR:id test result differs!!!" |
---|
| 26 | fi |
---|
| 27 | |
---|
| 28 | |
---|
| 29 | |
---|
| 30 | |
---|
Note: See
TracBrowser
for help on using the repository browser.