mei_rt2mei_rt2_fix_1
Last change
on this file since 519e487 was
373bf68,
checked in by Mei <mei@…>, 12 years ago
|
1) add the scaling test suite
|
-
Property mode set to
100755
|
File size:
936 bytes
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | noise=$1 |
---|
4 | |
---|
5 | rm -rf likes_$noise |
---|
6 | mkdir likes_$noise |
---|
7 | sed "s/#VAL#/$noise/" base/SETUP.py > likes_$noise/setup.py |
---|
8 | sed "s/#VAL#/$noise/" base/QUERY.py > likes_$noise/query.py |
---|
9 | sed "s/#VAL#/$noise/" base/BQUERY.py > likes_$noise/bquery.py |
---|
10 | sed "s/#VAL#/$noise/" base/ATTR.py > likes_$noise/attr.py |
---|
11 | |
---|
12 | cp base/RESULT likes_$noise/likes.save |
---|
13 | |
---|
14 | cd likes_$noise |
---|
15 | chmod +x setup.py attr.py query.py bquery.py |
---|
16 | ./setup.py 1>/dev/null 2>& 1 |
---|
17 | env keystore=`pwd` ./attr.py 1>/dev/null 2>& 1 |
---|
18 | |
---|
19 | echo " forward.." |
---|
20 | time env keystore=`pwd` ABAC_CN=1 ./query.py 1>likes.tmp 2> likes.time |
---|
21 | result=`grep "YAP query succeed" likes.tmp 2>/dev/null` |
---|
22 | if [ "$result" = "" ]; then |
---|
23 | echo " ERROR" |
---|
24 | else |
---|
25 | echo " PASSED" |
---|
26 | fi |
---|
27 | |
---|
28 | echo " backward.." |
---|
29 | time env keystore=`pwd` ABAC_CN=1 ./bquery.py 1>likes_b.tmp 2> likes_b.time |
---|
30 | result=`grep "YAP query failed" likes_b.tmp 2>/dev/null` |
---|
31 | if [ "$result" = "" ]; then |
---|
32 | echo " ERROR" |
---|
33 | else |
---|
34 | echo " PASSED" |
---|
35 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.