source: examples/scaling_tests/haystack/fruit_python/run_one @ 880e924

mei_rt2mei_rt2_fix_1
Last change on this file since 880e924 was 373bf68, checked in by Mei <mei@…>, 12 years ago

1) add the scaling test suite

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