mei_rt2mei_rt2_fix_1
Last change
on this file since 41d99fb was
08b8da7,
checked in by Mei <mei@…>, 12 years ago
|
1) rework examples directory with Makefile
2) update scaling with plotting scripts
3) add more doc in there
|
-
Property mode set to
100755
|
File size:
997 bytes
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | noise=$1 |
---|
4 | |
---|
5 | if [ -z "$noise" ]; then |
---|
6 | exit |
---|
7 | fi |
---|
8 | |
---|
9 | echo "---running daisychain likes_python $noise scaling" |
---|
10 | |
---|
11 | rm -rf likes_$noise |
---|
12 | mkdir likes_$noise |
---|
13 | sed "s/#VAL#/$noise/" base/SETUP.py > likes_$noise/setup.py |
---|
14 | sed "s/#VAL#/$noise/" base/QUERY.py > likes_$noise/query.py |
---|
15 | sed "s/#VAL#/$noise/" base/ATTR.py > likes_$noise/attr.py |
---|
16 | |
---|
17 | cd likes_$noise |
---|
18 | chmod +x setup.py attr.py query.py |
---|
19 | ./setup.py 1>/dev/null 2>& 1 |
---|
20 | env keystore=`pwd` ./attr.py 1>/dev/null 2>& 1 |
---|
21 | |
---|
22 | env keystore=`pwd` ABAC_CN=1 ./query.py 1>likes.tmp 2> likes.time |
---|
23 | |
---|
24 | if [ $noise -eq 0 ] ; then |
---|
25 | result=`egrep -c "YAP query succeed" likes.tmp 2>/dev/null` |
---|
26 | if [ $result -eq 22 ]; then |
---|
27 | echo " PASSED" |
---|
28 | exit 0 |
---|
29 | else |
---|
30 | echo " ERROR" |
---|
31 | exit 1 |
---|
32 | fi |
---|
33 | fi |
---|
34 | |
---|
35 | s=`grep -c "YAP query succeed" likes.tmp 2>/dev/null` |
---|
36 | f=`grep -c "YAP query failed" likes.tmp 2>/dev/null ` |
---|
37 | if [ $s -ne 11 ] ; then |
---|
38 | echo " ERROR" |
---|
39 | exit 1 |
---|
40 | fi |
---|
41 | |
---|
42 | if [ $f -ne 11 ] ; then |
---|
43 | echo " ERROR" |
---|
44 | exit 1 |
---|
45 | fi |
---|
46 | |
---|
47 | echo " PASSED" |
---|
48 | |
---|
Note: See
TracBrowser
for help on using the repository browser.