Last change
on this file since 8200a9c was
831da18,
checked in by Mei <mei@…>, 11 years ago
|
1) getting ready to for 0.1.6
|
-
Property mode set to
100755
|
File size:
807 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 |
---|
[831da18] | 20 | env ABAC_CN=1 ./run_query 1>ralphs.tmp |
---|
[4f79997] | 21 | |
---|
[92d6cca] | 22 | s=`grep -c "GOOD" ralphs.tmp 2>/dev/null` |
---|
| 23 | f=`grep -c "BAD" ralphs.tmp 2>/dev/null ` |
---|
[4f79997] | 24 | |
---|
| 25 | if [ $s -ne 2 ] ; then |
---|
[92d6cca] | 26 | echo "BAD:scaling_tests/haystack/ralphs_prover:$noise:number of success is not right" |
---|
[4f79997] | 27 | exit 1 |
---|
| 28 | fi |
---|
| 29 | |
---|
| 30 | if [ $f -ne 0 ] ; then |
---|
[92d6cca] | 31 | echo "BAD:scaling_tests/haystack/ralphs_prover:$noise:there are unexpeced failure" |
---|
[4f79997] | 32 | exit 1 |
---|
| 33 | fi |
---|
| 34 | |
---|
| 35 | echo "GOOD:scaling_tests/haystack/ralphs_python:$noise:expected result" |
---|
| 36 | |
---|
| 37 | |
---|
| 38 | |
---|
Note: See
TracBrowser
for help on using the repository browser.