source: tests/creddy_prover_tests/ice_cream_rt0/run_query @ 3c30b59

abac0-leakabac0-mei
Last change on this file since 3c30b59 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
Line 
1#!/bin/sh
2
3. ${TESTDIR}/test_util.sh
4keyloc=`pwd`
5
6ice=`$eloc/creddy --keyid --cert $keyloc/IceCream_ID.pem`
7chocolate_prin=`$eloc/creddy --keyid --cert $keyloc/Chocolate_ID.pem`
8
9delicious="$ice.delicious"
10
11echo "===good============ IceCream.delicious <- Chocolate"
12runTest 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"
16
17rm -rf IceCream*.pem
18echo "===good(no issuer)============ IceCream.delicious <- Chocolate"
19runTest 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
24
25rm -rf Chocolate*.pem
26echo "===good(no issuer & no principal)============ IceCream.delicious <- Chocolate"
27runTest 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"
31
Note: See TracBrowser for help on using the repository browser.