source: tests/scaling_tests/haystack/ralphs_prover/base/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# number of credentials, 9 + 4 x #VAL#
4
5if [ -z "${TESTDIR}" ] ; then
6    TESTDIR=../../../..
7fi
8. ${TESTDIR}/test_util.sh
9keyloc=`pwd`
10
11ralphs=`$eloc/creddy --keyid --cert $keyloc/Ralphs_ID.pem`
12apple=`$eloc/creddy --keyid --cert $keyloc/Apple_ID.pem`
13computer=`$eloc/creddy --keyid --cert $keyloc/Computer_ID.pem`
14Alice=`$eloc/creddy --keyid --cert $keyloc/Alice_ID.pem`
15
16
17# [keyid:ralphs].role:order <-?- [keyid:apple] (yes)
18# [keyid:ralphs].role:order <-?- [keyid:computer] (no)
19
20ralphs_order="$ralphs.order"
21apple_prin="$apple"
22computer_prin="$computer"
23
24`$ploc/abac_prover  --keystore $keyloc --dump dump.file`
25
26
27echo "===good=============== Ralphs.order <- Apple"
28runTest scaling_tests/haystack/ralphs_prover test1 \
29"$ploc/abac_prover  --keystore $keyloc --role $ralphs_order --principal $apple_prin" \
300 \
31"simple good query"
32
33echo "===bad=============== Ralphs.order <- Computer"
34runTest scaling_tests/haystack/ralphs_prover test1 \
35"$ploc/abac_prover  --keystore $keyloc --role $ralphs_order --principal $computer_prin" \
361 \
37"simple bad query"
38
Note: See TracBrowser for help on using the repository browser.