blob: e7f8c3f82b1a094c6ec8d3c10384027657da021d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/bash
set -e
echo Build...
make -j3 &> /dev/null
times() {
set +e
SPICE_DEBUG_LEVEL=3 ./server/tests/spice-server-replay -p 1235 -c 'remote-viewer spice://localhost:1235' -w win7-boot-record2 -C $1 2>&1 | grep display_channel_compress_stats_print | sed 's/.*display_channel_compress_stats_print: //' >> $2
set -e
}
out=times.txt
if grep '^CFLAGS =' server/Makefile | grep -qe '-ftest-coverage\|-fsanitize\|-fprofile-arcs\|-O0'; then
echo "Debugging compile, not collecting times!" >&2
out=/dev/null
fi
#for comp in {4..7}; do
for comp in {5..5}; do
for n in {1..10}; do
times $comp $out
done
done
|