source: examples/python_tests/experiment_create_rt0/run_test @ 928b1b7

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

1) route debug printf to stderr
2) add some check for swig in configure.ac (also yap)

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