1 | #!/bin/bash |
---|
2 | #Init variables |
---|
3 | export PATH=/usr/bin:/usr/sbin:/bin:/sbin |
---|
4 | export DISPLAY=:0 |
---|
5 | #export PYTHONPATH=/usr/lib/python2.7 |
---|
6 | date="$(date +%Y%m%d%k%M)" |
---|
7 | |
---|
8 | #Turn on mild bandwidth limits - start with 50mbits |
---|
9 | sudo tc qdisc add dev lo root netem rate 50mbit |
---|
10 | |
---|
11 | #Run the test |
---|
12 | ~/tests/xpra/test_measure_perf.py config_just_av ~/tests/xpra/data/automated/av_${date}_2_1_50mbit.csv 1 2 2>&1 | tee ~/tests/xpra/data/automated/logs/av_${date}_2_1_50mbit.log |
---|
13 | ~/tests/xpra/test_measure_perf.py config_just_glx ~/tests/xpra/data/automated/glx_${date}_2_1_50mbit.csv 1 2 2>&1 | tee ~/tests/xpra/data/automated/logs/glx_${date}_2_1_50mbit.log |
---|
14 | ~/tests/xpra/test_measure_perf.py config_just_x11 ~/tests/xpra/data/automated/x11_${date}_2_1_50mbit.csv 1 2 2>&1 | tee ~/tests/xpra/data/automated/logs/x11_${date}_2_1_50mbit.log |
---|
15 | |
---|
16 | #Second Repetition |
---|
17 | ~/tests/xpra/test_measure_perf.py config_just_av ~/tests/xpra/data/automated/av_${date}_2_2_50mbit.csv 2 2 2>&1 | tee ~/tests/xpra/data/automated/logs/av_${date}_2_2_50mbit.log |
---|
18 | ~/tests/xpra/test_measure_perf.py config_just_glx ~/tests/xpra/data/automated/glx_${date}_2_2_50mbit.csv 2 2 2>&1 | tee ~/tests/xpra/data/automated/logs/glx_${date}_2_2_50mbit.log |
---|
19 | ~/tests/xpra/test_measure_perf.py config_just_x11 ~/tests/xpra/data/automated/x11_${date}_2_2_50mbit.csv 2 2 2>&1 | tee ~/tests/xpra/data/automated/logs/x11_${date}_2_2_50mbit.log |
---|
20 | |
---|
21 | #Run Xpra Stop just in case |
---|
22 | xpra stop |
---|
23 | |
---|
24 | #Turn off TC |
---|
25 | sudo tc qdisc del dev lo root netem |
---|
26 | |
---|
27 | #Turn on medium bandwidth limits - 25mbits |
---|
28 | sudo tc qdisc add dev lo root netem rate 25mbit |
---|
29 | |
---|
30 | #Run the test |
---|
31 | ~/tests/xpra/test_measure_perf.py config_just_av ~/tests/xpra/data/automated/av_${date}_2_1_25mbit.csv 1 2 2>&1 | tee ~/tests/xpra/data/automated/logs/av_${date}_2_1_25mbit.log |
---|
32 | ~/tests/xpra/test_measure_perf.py config_just_glx ~/tests/xpra/data/automated/glx_${date}_2_1_25mbit.csv 1 2 2>&1 | tee ~/tests/xpra/data/automated/logs/glx_${date}_2_1_25mbit.log |
---|
33 | ~/tests/xpra/test_measure_perf.py config_just_x11 ~/tests/xpra/data/automated/x11_${date}_2_1_25mbit.csv 1 2 2>&1 | tee ~/tests/xpra/data/automated/logs/x11_${date}_2_1_25mbit.log |
---|
34 | |
---|
35 | #Second Repetition |
---|
36 | ~/tests/xpra/test_measure_perf.py config_just_av ~/tests/xpra/data/automated/av_${date}_2_2_25mbit.csv 2 2 2>&1 | tee ~/tests/xpra/data/automated/logs/av_${date}_2_2_25mbit.log |
---|
37 | ~/tests/xpra/test_measure_perf.py config_just_glx ~/tests/xpra/data/automated/glx_${date}_2_2_25mbit.csv 2 2 2>&1 | tee ~/tests/xpra/data/automated/logs/glx_${date}_2_2_25mbit.log |
---|
38 | ~/tests/xpra/test_measure_perf.py config_just_x11 ~/tests/xpra/data/automated/x11_${date}_2_2_25mbit.csv 2 2 2>&1 | tee ~/tests/xpra/data/automated/logs/x11_${date}_2_2_25mbit.log |
---|
39 | |
---|
40 | #Run Xpra Stop just in case |
---|
41 | xpra stop |
---|
42 | |
---|
43 | #Turn off TC |
---|
44 | sudo tc qdisc del dev lo root netem |
---|
45 | |
---|
46 | |
---|
47 | #Turn on limited bandwidth - 8mbit |
---|
48 | sudo tc qdisc add dev lo root netem rate 8mbit |
---|
49 | |
---|
50 | |
---|
51 | #Run the tests |
---|
52 | ~/tests/xpra/test_measure_perf.py config_just_av ~/tests/xpra/data/automated/av_${date}_2_1_8mbit.csv 1 2 2>&1 | tee ~/tests/xpra/data/automated/logs/av_${date}_2_1_8mbit.log |
---|
53 | ~/tests/xpra/test_measure_perf.py config_just_glx ~/tests/xpra/data/automated/glx_${date}_2_1_8mbit.csv 1 2 2>&1 | tee ~/tests/xpra/data/automated/logs/glx_${date}_2_1_8mbit.log |
---|
54 | ~/tests/xpra/test_measure_perf.py config_just_x11 ~/tests/xpra/data/automated/x11_${date}_2_1_8mbit.csv 1 2 2>&1 | tee ~/tests/xpra/data/automated/logs/x11_${date}_2_1_8mbit.log |
---|
55 | |
---|
56 | #Second Repetition |
---|
57 | ~/tests/xpra/test_measure_perf.py config_just_av ~/tests/xpra/data/automated/av_${date}_2_2_8mbit.csv 2 2 2>&1 | tee ~/tests/xpra/data/automated/logs/av_${date}_2_2_8mbit.log |
---|
58 | ~/tests/xpra/test_measure_perf.py config_just_glx ~/tests/xpra/data/automated/glx_${date}_2_2_8mbit.csv 2 2 2>&1 | tee ~/tests/xpra/data/automated/logs/glx_${date}_2_2_8mbit.log |
---|
59 | ~/tests/xpra/test_measure_perf.py config_just_x11 ~/tests/xpra/data/automated/x11_${date}_2_2_8mbit.csv 2 2 2>&1 | tee ~/tests/xpra/data/automated/logs/x11_${date}_2_2_8mbit.log |
---|
60 | |
---|
61 | #Run Xpra Stop just in case |
---|
62 | xpra stop |
---|
63 | |
---|
64 | #Turn off TC |
---|
65 | sudo tc qdisc del dev lo root netem |
---|
66 | |
---|