abac0-leak
Last change
on this file since 367e333 was
4f79997,
checked in by Mei <mei@…>, 11 years ago
|
1) add a new scaling test -haystack/ralphs
2) tweak some libabac code here and there
|
-
Property mode set to
100755
|
File size:
1.1 KB
|
Rev | Line | |
---|
[4f79997] | 1 | #!/usr/bin/env sh |
---|
[b7b2ca1] | 2 | |
---|
[3c30b59] | 3 | . ${TESTDIR}/test_util.sh |
---|
[4f79997] | 4 | if [ -z "${TESTDIR}" ] ; then |
---|
| 5 | TESTDIR=../.. |
---|
| 6 | fi |
---|
[3c30b59] | 7 | keyloc=`pwd` |
---|
[b7b2ca1] | 8 | |
---|
[3c30b59] | 9 | ice=`$eloc/creddy --keyid --cert $keyloc/IceCream_ID.pem` |
---|
| 10 | chocolate_prin=`$eloc/creddy --keyid --cert $keyloc/Chocolate_ID.pem` |
---|
[b7b2ca1] | 11 | |
---|
| 12 | delicious="$ice.delicious" |
---|
| 13 | |
---|
| 14 | echo "===good============ IceCream.delicious <- Chocolate" |
---|
[3c30b59] | 15 | runTest creddy_prover_test/ice_cream_rt0 test1 \ |
---|
| 16 | "$ploc/abac_prover --keystore $keyloc --role $delicious --principal $chocolate_prin" \ |
---|
| 17 | 0 \ |
---|
| 18 | "very basic simple call" |
---|
[d6d44fe] | 19 | |
---|
| 20 | rm -rf IceCream*.pem |
---|
| 21 | echo "===good(no issuer)============ IceCream.delicious <- Chocolate" |
---|
[3c30b59] | 22 | runTest creddy_prover_test/ice_cream_rt0 test2 \ |
---|
| 23 | "$ploc/abac_prover --keystore $keyloc --role $delicious --principal $chocolate_prin" \ |
---|
| 24 | 0 \ |
---|
| 25 | "basic simple call without the issuer's principal id in local keystore" |
---|
| 26 | |
---|
[d6d44fe] | 27 | |
---|
| 28 | rm -rf Chocolate*.pem |
---|
| 29 | echo "===good(no issuer & no principal)============ IceCream.delicious <- Chocolate" |
---|
[3c30b59] | 30 | runTest creddy_prover_test/ice_cream_rt0 test1 \ |
---|
| 31 | "$ploc/abac_prover --keystore $keyloc --role $delicious --principal $chocolate_prin" \ |
---|
| 32 | 0 \ |
---|
| 33 | "basic simple call without the issuer's principal id nor principal id in local keystore" |
---|
[d6d44fe] | 34 | |
---|
Note: See
TracBrowser
for help on using the repository browser.