source: tests/scaling_tests/haystack/ralphs_prover/run_one @ 2be12d2

abac0-leakabac0-mei
Last change on this file since 2be12d2 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: 833 bytes
Line 
1#!/usr/bin/env sh
2noise=$1
3
4if [ -z "$noise" ]; then
5    exit
6fi 
7
8echo "---running haystack ralphs_prover $noise scaling"
9
10rm -rf ralphs_$noise
11mkdir ralphs_$noise
12
13sed "s/#VAL#/$noise/" base/README > ralphs_$noise/README
14sed "s/#VAL#/$noise/" base/QUERY > ralphs_$noise/run_query
15
16cd ralphs_$noise
17
18chmod +x README run_query
19./README 1>/dev/null 2>&1
20time env ABAC_CN=1 ./run_query 1>ralphs.tmp 2> ralphs.time
21
22
23s=`grep -c "success" ralphs.tmp 2>/dev/null`
24f=`grep -c "failure" likes.tmp 2>/dev/null `
25
26if [ $s -ne 2 ] ; then
27    echo "BAD:scaling_tests/haystack/ralphs_python:$noise:number of success is not right"
28    exit 1
29fi
30
31if [ $f -ne 0 ] ; then
32    echo "BAD:scaling_tests/haystack/ralphs_python:$noise:there are unexpeced failure"
33    exit 1
34fi
35
36echo "GOOD:scaling_tests/haystack/ralphs_python:$noise:expected result"
37
38
39
Note: See TracBrowser for help on using the repository browser.