forked from faucetsdn/ryu
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathrun_all.sh
More file actions
executable file
·51 lines (46 loc) · 848 Bytes
/
Copy pathrun_all.sh
File metadata and controls
executable file
·51 lines (46 loc) · 848 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
declare -A ret_values
for f in *.py;
do
if [[ $f == *"__ryu.py"* ]]
then
continue
fi
if [ "$f" == "beba.py" ]
then
continue
fi
echo -e "\n\x1b[33m[Testing $f]\x1b[0m";
sudo python $f;
ret_values[$f]=$?;
done
for f in *__ryu.py;
do
echo -e "\n\x1b[33m[Testing $f]\x1b[0m";
sudo ryu-manager $f;
ret_values[$f]=$?;
done
echo -e "\n*******************************************************************\n\nSUMMARY:\n"
for f in *.py;
do
if [[ $f == *"__ryu.py"* ]]
then
continue
fi
if [ "$f" == "beba.py" ]
then
continue
fi
if [[ ${ret_values[$f]} -eq 1 ]]; then
echo -e "$f: \x1b[31mFAILED\x1b[0m";
else
echo -e "$f: \x1b[32mSUCCEEDED\x1b[0m";
fi
done
for f in *__ryu.py;
do
if [[ ${ret_values[$f]} -eq 137 ]]; then
echo -e "$f: \x1b[31mFAILED\x1b[0m";
else
echo -e "$f: \x1b[32mSUCCEEDED\x1b[0m";
fi
done