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