source: tests/creddy_prover_tests/ice_cream_rt0/run_query

Last change on this file 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
Line 
1#!/usr/bin/env sh
2
3. ${TESTDIR}/test_util.sh
4if [ -z "${TESTDIR}" ] ; then
5    TESTDIR=../..
6fi
7keyloc=`pwd`
8
9ice=`$eloc/creddy --keyid --cert $keyloc/IceCream_ID.pem`
10chocolate_prin=`$eloc/creddy --keyid --cert $keyloc/Chocolate_ID.pem`
11
12delicious="$ice.delicious"
13
14echo "===good============ IceCream.delicious <- Chocolate"
15runTest 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"
19
20rm -rf IceCream*.pem
21echo "===good(no issuer)============ IceCream.delicious <- Chocolate"
22runTest 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
27
28rm -rf Chocolate*.pem
29echo "===good(no issuer & no principal)============ IceCream.delicious <- Chocolate"
30runTest 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"
34
Note: See TracBrowser for help on using the repository browser.