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