source: tests/scaling_tests/haystack/ralphs_prover/run_one @ 92d6cca

abac0-leakabac0-mei
Last change on this file since 92d6cca was 92d6cca, checked in by Mei <mei@…>, 11 years ago

1) tweak result of the new test

  • Property mode set to 100755
File size: 827 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 "GOOD" ralphs.tmp 2>/dev/null`
24f=`grep -c "BAD" ralphs.tmp 2>/dev/null `
25
26if [ $s -ne 2 ] ; then
27    echo "BAD:scaling_tests/haystack/ralphs_prover:$noise:number of success is not right"
28    exit 1
29fi
30
31if [ $f -ne 0 ] ; then
32    echo "BAD:scaling_tests/haystack/ralphs_prover:$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.