source: examples/scaling_tests/haystack/fruit_python/run_one @ db99d8d

mei_rt2mei_rt2_fix_1
Last change on this file since db99d8d was 2b4e740, checked in by Mei <mei@…>, 12 years ago

1) test out the performance plotting build

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