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