abac0-leak
Last change
on this file since 8a9f7af was
3c30b59,
checked in by Mei <mei@…>, 11 years ago
|
1) add in new refactored regression testing directory
2) undo the abac.hh/ABAC.hh api changes
3) merged with Ted's changes to attribute format/nickname/issuer processing
|
-
Property mode set to
100755
|
File size:
1.1 KB
|
Rev | Line | |
---|
[b7b2ca1] | 1 | #!/bin/sh |
---|
| 2 | |
---|
[3c30b59] | 3 | . ${TESTDIR}/test_util.sh |
---|
| 4 | keyloc=`pwd` |
---|
[b7b2ca1] | 5 | |
---|
[3c30b59] | 6 | ice=`$eloc/creddy --keyid --cert $keyloc/IceCream_ID.pem` |
---|
| 7 | chocolate_prin=`$eloc/creddy --keyid --cert $keyloc/Chocolate_ID.pem` |
---|
[b7b2ca1] | 8 | |
---|
| 9 | delicious="$ice.delicious" |
---|
| 10 | |
---|
| 11 | echo "===good============ IceCream.delicious <- Chocolate" |
---|
[3c30b59] | 12 | runTest creddy_prover_test/ice_cream_rt0 test1 \ |
---|
| 13 | "$ploc/abac_prover --keystore $keyloc --role $delicious --principal $chocolate_prin" \ |
---|
| 14 | 0 \ |
---|
| 15 | "very basic simple call" |
---|
[d6d44fe] | 16 | |
---|
| 17 | rm -rf IceCream*.pem |
---|
| 18 | echo "===good(no issuer)============ IceCream.delicious <- Chocolate" |
---|
[3c30b59] | 19 | runTest creddy_prover_test/ice_cream_rt0 test2 \ |
---|
| 20 | "$ploc/abac_prover --keystore $keyloc --role $delicious --principal $chocolate_prin" \ |
---|
| 21 | 0 \ |
---|
| 22 | "basic simple call without the issuer's principal id in local keystore" |
---|
| 23 | |
---|
[d6d44fe] | 24 | |
---|
| 25 | rm -rf Chocolate*.pem |
---|
| 26 | echo "===good(no issuer & no principal)============ IceCream.delicious <- Chocolate" |
---|
[3c30b59] | 27 | runTest creddy_prover_test/ice_cream_rt0 test1 \ |
---|
| 28 | "$ploc/abac_prover --keystore $keyloc --role $delicious --principal $chocolate_prin" \ |
---|
| 29 | 0 \ |
---|
| 30 | "basic simple call without the issuer's principal id nor principal id in local keystore" |
---|
[d6d44fe] | 31 | |
---|
Note: See
TracBrowser
for help on using the repository browser.