source: examples/python_tests/evaluator_rt1/run_test @ 669b481

mei_rt2mei_rt2_fix_1
Last change on this file since 669b481 was 669b481, checked in by Mei <mei@…>, 12 years ago

1) finish test conversion from creddy-prover to python
2) update the abac.hh/API doc more, adding more intermediate calls

to make abac.hh more uniform

3) found out why a very long attribute rule can not survive in/out of

ietf_attribute_t call (m64 en/decoding - abac_verifier, alice_rt1)

  • Property mode set to 100755
File size: 787 bytes
RevLine 
[5f551d3]1#!/bin/sh
2
3ABAC_PROVER_PATH="/home/mei/Deter/abac/libabac"
4export ABAC_PROVER_PATH
5
6
7echo '---setup principals'
8env keystore=`pwd` ./setup.py 1>/dev/null 2>& 1
9
10echo '---setup attributes'
[669b481]11env keystore=`pwd` ./attr.py 1>eveluator.log 2>& 1
[5f551d3]12
13echo '---run queries'
14
15# Make prover queries
16g_cmd_sha=`grep "cmd1:" query.py |sed "s/cmd1://g" `
17g_cmd_cn=`grep "cmd2:" query.py |sed "s/cmd2://g" `
18
19echo '...with sha'
20eval $g_cmd_sha 2>/dev/null 1 > evaluator.sha
21
22echo '...with cn'
23eval $g_cmd_cn 1>evaluator.cn 2>&1
24
25result=`diff evaluator.cn evaluator.save 2>/dev/null`
26if [ $? -eq 0 ]; then
27    if [ "$result" = "" ]; then
28       echo "   PASSED"
29    else
30       echo "   ERROR:evaluator_rt1 test result differs!!!"
31    fi
32else
33    echo "   ERROR:evaluator_rt1 test result differs!!!"
34fi
35
36
Note: See TracBrowser for help on using the repository browser.