source: tests/creddy_tests/attribute_rule.sh @ 831da18

abac0-leakabac0-mei
Last change on this file since 831da18 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: 716 bytes
Line 
1#!/usr/bin/env sh
2#attribute_rule.sh
3
4if [ -z "${TESTDIR}" ] ; then
5    TESTDIR=..
6fi
7. ${TESTDIR}/test_util.sh
8
9bigbird=`$eloc/creddy --keyid --cert Bigbird_ID.pem`
10coyote=`$eloc/creddy --keyid --cert Coyote_ID.pem`
11
12rule="$coyote.sneaky_friend<-$bigbird"
13
14runTest "creddy_tests/attribute_rule.sh" "test1"  \
15"$eloc/creddy --attribute \
16       --issuer Coyote_ID.pem --key Coyote_private.pem \
17       --attrrule "$rule" \
18       --out Coyote_sneakyFriend__Bigbird_attr.xml"  \
190  "trying making attribute using attrrule option"
20
21runTest "creddy_tests/attribute_rule.sh" "test2"  \
22"$eloc/creddy --roles --cert Coyote_sneakyFriend__Bigbird_attr.xml"  \
230  "double check on the attribute made with atttrrule option"
24
Note: See TracBrowser for help on using the repository browser.