xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.


Ticket #1827: runtctests.sh

File runtctests.sh, 5.3 KB (added by J. Max Mena, 3 years ago)
Line 
1#!/bin/bash
2#Init variables
3export PATH=/usr/bin:/usr/sbin:/bin:/sbin
4export DISPLAY=:0
5date="$(date +%Y%m%d%k%M)"
6
7#Turn on light TC
8sudo tc qdisc add dev lo root netem delay 25ms 10ms 25%
9
10#Run the tests
11~/tests/xpra/test_measure_perf.py config_just_av ~/tests/xpra/data/automated/av_${date}_2_1_lighttc.csv 1 2 2>&1 | tee ~/tests/xpra/data/automated/logs/av_${date}_2_1_lighttc.log
12~/tests/xpra/test_measure_perf.py config_just_glx ~/tests/xpra/data/automated/glx_${date}_2_1_lighttc.csv 1 2 2>&1 | tee  ~/tests/xpra/data/automated/logs/glx_${date}_2_1_lighttc.log
13~/tests/xpra/test_measure_perf.py config_just_x11 ~/tests/xpra/data/automated/x11_${date}_2_1_lighttc.csv 1 2 2>&1 | tee  ~/tests/xpra/data/automated/logs/x11_${date}_2_1_lighttc.log
14
15#Second Repetition
16~/tests/xpra/test_measure_perf.py config_just_av ~/tests/xpra/data/automated/av_${date}_2_2_lighttc.csv 2 2 2>&1 | tee ~/tests/xpra/data/automated/logs/av_${date}_2_2_lighttc.log
17~/tests/xpra/test_measure_perf.py config_just_glx ~/tests/xpra/data/automated/glx_${date}_2_2_lighttc.csv 2 2 2>&1 | tee  ~/tests/xpra/data/automated/logs/glx_${date}_2_2_lighttc.log
18~/tests/xpra/test_measure_perf.py config_just_x11 ~/tests/xpra/data/automated/x11_${date}_2_2_lighttc.csv 2 2 2>&1 | tee  ~/tests/xpra/data/automated/logs/x11_${date}_2_2_lighttc.log
19
20#Run Xpra Stop just in case
21xpra stop
22
23#Remove the TC
24sudo tc qdisc del dev lo root netem
25#Turn on light TC
26sudo tc qdisc add dev lo root netem delay 70 25 25% loss 1%
27#Run the test
28~/tests/xpra/test_measure_perf.py config_just_av ~/tests/xpra/data/automated/av_${date}_2_1_heavytc.csv 1 2 2>&1 | tee ~/tests/xpra/data/automated/logs/av_${date}_2_1_heavytc.log
29~/tests/xpra/test_measure_perf.py config_just_glx ~/tests/xpra/data/automated/glx_${date}_2_1_heavytc.csv 1 2 2>&1 | tee  ~/tests/xpra/data/automated/logs/glx_${date}_2_1_heavytc.log
30~/tests/xpra/test_measure_perf.py config_just_x11 ~/tests/xpra/data/automated/x11_${date}_2_1_heavytc.csv 1 2 2>&1 | tee  ~/tests/xpra/data/automated/logs/x11_${date}_2_1_heavytc.log
31
32#Second Repetition
33~/tests/xpra/test_measure_perf.py config_just_av ~/tests/xpra/data/automated/av_${date}_2_2_heavytc.csv 2 2 2>&1 | tee ~/tests/xpra/data/automated/logs/av_${date}_2_2_heavytc.log
34~/tests/xpra/test_measure_perf.py config_just_glx ~/tests/xpra/data/automated/glx_${date}_2_2_heavytc.csv 2 2 2>&1 | tee  ~/tests/xpra/data/automated/logs/glx_${date}_2_2_heavytc.log
35~/tests/xpra/test_measure_perf.py config_just_x11 ~/tests/xpra/data/automated/x11_${date}_2_2_heavytc.csv 2 2 2>&1 | tee  ~/tests/xpra/data/automated/logs/x11_${date}_2_2_heavytc.log
36
37#Run Xpra Stop just in case
38xpra stop
39
40#remove the TC
41sudo tc qdisc del dev lo root netem
42#Turn on the heavy TC
43sudo tc qdisc add dev lo root netem delay 25 25 25% loss 10%
44#Run the test
45~/tests/xpra/test_measure_perf.py config_just_av ~/tests/xpra/data/automated/av_${date}_2_1_edgeofwifi.csv 1 2 2>&1 | tee ~/tests/xpra/data/automated/logs/av_${date}_2_1_edgeofwifi.log
46~/tests/xpra/test_measure_perf.py config_just_glx ~/tests/xpra/data/automated/glx_${date}_2_1_edgeofwifi.csv 1 2 2>&1 | tee  ~/tests/xpra/data/automated/logs/glx_${date}_2_1_edgeofwifi.log
47~/tests/xpra/test_measure_perf.py config_just_x11 ~/tests/xpra/data/automated/x11_${date}_2_1_edgeofwifi.csv 1 2 2>&1 | tee  ~/tests/xpra/data/automated/logs/x11_${date}_2_1_edgeofwifi.log
48
49#Second Repetition
50~/tests/xpra/test_measure_perf.py config_just_av ~/tests/xpra/data/automated/av_${date}_2_2_edgeofwifi.csv 2 2 2>&1 | tee ~/tests/xpra/data/automated/logs/av_${date}_2_2_edgeofwifi.log
51~/tests/xpra/test_measure_perf.py config_just_glx ~/tests/xpra/data/automated/glx_${date}_2_2_edgeofwifi.csv 2 2 2>&1 | tee  ~/tests/xpra/data/automated/logs/glx_${date}_2_2_edgeofwifi.log
52~/tests/xpra/test_measure_perf.py config_just_x11 ~/tests/xpra/data/automated/x11_${date}_2_2_edgeofwifi.csv 2 2 2>&1 | tee  ~/tests/xpra/data/automated/logs/x11_${date}_2_2_edgeofwifi.log
53
54#Run Xpra Stop just in case
55xpra stop
56
57#Remove the TC
58sudo tc qdisc del dev lo root netem
59#Turn on insane TC - Talos help us.
60sudo tc qdisc add dev lo root netem delay 50 25 25% loss 10%
61
62#Run the test
63~/tests/xpra/test_measure_perf.py config_just_av ~/tests/xpra/data/automated/av_${date}_2_1_bareedgeofwifi.csv 1 2 2>&1 | tee ~/tests/xpra/data/automated/logs/av_${date}_2_1_bareedgeofwifi.log
64~/tests/xpra/test_measure_perf.py config_just_glx ~/tests/xpra/data/automated/glx_${date}_2_1_bareedgeofwifi.csv 1 2 2>&1 | tee  ~/tests/xpra/data/automated/logs/glx_${date}_2_1_bareedgeofwifi.log
65~/tests/xpra/test_measure_perf.py config_just_x11 ~/tests/xpra/data/automated/x11_${date}_2_1_bareedgeofwifi.csv 1 2 2>&1 | tee  ~/tests/xpra/data/automated/logs/x11_${date}_2_1_bareedgeofwifi.log
66
67#Second Repetition
68~/tests/xpra/test_measure_perf.py config_just_av ~/tests/xpra/data/automated/av_${date}_2_2_bareedgeofwifi.csv 2 2 2>&1 | tee ~/tests/xpra/data/automated/logs/av_${date}_2_2_bareedgeofwifi.log
69~/tests/xpra/test_measure_perf.py config_just_glx ~/tests/xpra/data/automated/glx_${date}_2_2_bareedgeofwifi.csv 2 2 2>&1 | tee  ~/tests/xpra/data/automated/logs/glx_${date}_2_2_bareedgeofwifi.log
70~/tests/xpra/test_measure_perf.py config_just_x11 ~/tests/xpra/data/automated/x11_${date}_2_2_bareedgeofwifi.csv 2 2 2>&1 | tee  ~/tests/xpra/data/automated/logs/x11_${date}_2_2_bareedgeofwifi.log
71
72
73#Critical: Disable the insane TC
74sudo tc qdisc del dev lo root netem
75
76#Run Xpra Stop just in case
77xpra stop
78