-
Notifications
You must be signed in to change notification settings - Fork 6
/
iperf3_plot.robot
104 lines (84 loc) · 5.26 KB
/
iperf3_plot.robot
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
*** Settings ***
Documentation Suite description
Library iperf3_plot_library.py
Library Collections
*** Test Cases ***
Test Parse Parameters -f, -o from cmd
[Tags] DEBUG
Set Test Variable ${foldername} ./testTarball
Set Test Variable ${plotFiles} []
Set Test Variable ${noPlotFiles} []
Set Test Variable ${output} graph/all.png
Set Test Variable ${upperLimit} 0
Set Test Variable ${lowerLimit} 0
Set Test Variable ${bound} []
parse_option_from_cmd -f ${foldername} -o ${output}
print_message foldername ${foldername}\n plotFiles ${plotFiles}\n noPlotFiles ${noPlotFiles}\n output ${output}\n upperLimit ${upperLimit}\n lowerLimit ${lowerLimit}\n bound ${bound}
Test Parameters -f, -o
[Tags] DEBUG
Set Test Variable ${foldername} ./testTarball
Set Test Variable ${plotFiles} []
Set Test Variable ${noPlotFiles} []
Set Test Variable ${output} graph/all.png
Set Test Variable ${upperLimit} 0
Set Test Variable ${lowerLimit} 0
Set Test Variable ${bound} []
parse_options -f ${foldername} -o ${output}
Result should be ${foldername} ${plotFiles} ${noPlotFiles} ${output} ${upperLimit} ${lowerLimit} ${bound}
print_message foldername ${foldername}\n plotFiles ${plotFiles}\n noPlotFiles ${noPlotFiles}\n output ${output}\n upperLimit ${upperLimit}\n lowerLimit ${lowerLimit}\n bound ${bound}
Test Parameters -f, -o, -b, -u, -l
[Tags] DEBUG
Set Test Variable ${foldername} ./testTarball
Set Test Variable ${plotFiles} []
Set Test Variable ${noPlotFiles} []
Set Test Variable ${output} graph/all.png
Set Test Variable ${upperLimit} 0.5
Set Test Variable ${lowerLimit} 0.45
Set Test Variable ${bound} [0.42,0.42,0.42M],[0.46,0.46,0.46M]
Set Test Variable ${expbound} [[0.42, 0.42, '0.42M'], [0.46, 0.46, '0.46M']]
parse_options -f ${foldername} -o ${output} -b ${bound} -u ${upperLimit} -l ${lowerLimit}
Result should be ${foldername} ${plotFiles} ${noPlotFiles} ${output} ${upperLimit} ${lowerLimit} ${expbound}
print_message foldername ${foldername}\n plotFiles ${plotFiles}\n noPlotFiles ${noPlotFiles}\n output ${output}\n upperLimit ${upperLimit}\n lowerLimit ${lowerLimit}\n bound ${expbound}
Test Parameters -f, -o, -p
[Tags] DEBUG
Set Test Variable ${foldername} ./testTarball
Set Test Variable ${plotFiles} tg_server_00004,tg_server_00009
Set Test Variable ${expplotFiles} ['tg_server_00004', 'tg_server_00009']
Set Test Variable ${noPlotFiles} []
Set Test Variable ${output} graph/s49_bound.png
Set Test Variable ${upperLimit} 0
Set Test Variable ${lowerLimit} 0
Set Test Variable ${bound} []
Set Test Variable ${expbound} []
parse_options -f ${foldername} -o ${output} -p ${plotFiles}
Result should be ${foldername} ${expplotFiles} ${noplotFiles} ${output} ${upperLimit} ${lowerLimit} ${expbound}
print_message foldername ${foldername}\n plotFiles ${expplotFiles}\n noPlotFiles ${noPlotFiles}\n output ${output}\n upperLimit ${upperLimit}\n lowerLimit ${lowerLimit}\n bound ${expbound}
Test Parameters -f, -o, -p, -u, -l
[Tags] DEBUG
Set Test Variable ${foldername} ./testTarball
Set Test Variable ${plotFiles} tg_server_00004,tg_server_00009
Set Test Variable ${expplotFiles} ['tg_server_00004', 'tg_server_00009']
Set Test Variable ${noPlotFiles} []
Set Test Variable ${output} graph/s49_bound.png
Set Test Variable ${upperLimit} 0.5
Set Test Variable ${lowerLimit} 0.45
Set Test Variable ${bound} []
Set Test Variable ${expbound} []
parse_options -f ${foldername} -o ${output} -p ${plotFiles} -u ${upperLimit} -l ${lowerLimit}
Result should be ${foldername} ${expplotFiles} ${noplotFiles} ${output} ${upperLimit} ${lowerLimit} ${expbound}
print_message foldername ${foldername}\n plotFiles ${expplotFiles}\n noPlotFiles ${noPlotFiles}\n output ${output}\n upperLimit ${upperLimit}\n lowerLimit ${lowerLimit}\n bound ${expbound}
Test Parameters -f, -o, -n
[Tags] DEBUG
Set Test Variable ${foldername} ./testTarball
Set Test Variable ${plotFiles} []
Set Test Variable ${expplotFiles} []
Set Test Variable ${noPlotFiles} tg_server_00004,tg_server_00009
Set Test Variable ${expNoPlotFiles} ['tg_server_00004', 'tg_server_00009']
Set Test Variable ${output} graph/s49_bound.png
Set Test Variable ${upperLimit} 0
Set Test Variable ${lowerLimit} 0
Set Test Variable ${bound} []
Set Test Variable ${expbound} []
parse_options -f ${foldername} -o ${output} -n ${noPlotFiles}
Result should be ${foldername} ${expplotFiles} ${expNoplotFiles} ${output} ${upperLimit} ${lowerLimit} ${expbound}
print_message foldername ${foldername}\n plotFiles ${expplotFiles}\n noPlotFiles ${expNoPlotFiles}\n output ${output}\n upperLimit ${upperLimit}\n lowerLimit ${lowerLimit}\n bound ${expbound}