source: examples/python_tests/basic_id/run_test @ adc0815

mei_rt2mei_rt2_fix_1
Last change on this file since adc0815 was d9c3886, checked in by Mei <mei@…>, 13 years ago

1) add 2 more query calls in abac.hh that take Role and Oset instead of

strings. Add supporting code in libabac that will take abac_aspect_t
and make query term directly instead of doing stringify the structure
and do string->yyparse->abac_aspect_t again.

2) start on inline doc into abac.hh
3) tweaked some scripts in examples directory

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