source: examples/scaling_tests/haystack/fruit_prover/run_one @ 94d1dae

abac0-leakabac0-meimei-idmei-rt0-nmei_rt0tvf-new-xml
Last change on this file since 94d1dae was 7e3f5e2, checked in by Mei <mei@…>, 12 years ago

1) converted daisychain scaling tests

  • Property mode set to 100755
File size: 563 bytes
Line 
1#!/bin/sh
2
3
4noise=$1
5
6if [ -z "$noise" ]; then
7    exit
8fi 
9
10echo "---running haystack fruit_prover $noise scaling"
11
12rm -rf fruit_$noise
13mkdir fruit_$noise
14
15sed "s/#VAL#/$noise/" base/README > fruit_$noise/README
16sed "s/#VAL#/$noise/" base/QUERY > fruit_$noise/run_query
17cp base/RESULT fruit_$noise/fruit.save
18cd fruit_$noise
19chmod +x README run_query
20./README 1>/dev/null 2>&1
21time env ABAC_CN=1 ./run_query 1>fruit.tmp 2> fruit.time
22result=`diff fruit.tmp fruit.save 2>/dev/null`
23if [ "$result" = "" ]; then
24   echo "   PASSED"
25else   
26   echo "   ERROR"
27fi
28
29
Note: See TracBrowser for help on using the repository browser.