]> git.sur5r.net Git - i3/i3/blob - travis/run-tests.sh
7bf4b03999d1820cbf93dd0ac23e3dccac12280d
[i3/i3] / travis / run-tests.sh
1 #!/bin/sh
2
3 set -e
4 set -x
5
6 cd testcases
7
8 # TODO: remove this workaround once https://bugs.debian.org/836723 is fixed
9 # Found at https://llvm.org/bugs/show_bug.cgi?id=27310#c8:
10 cat >fixasan.c <<EOT
11 void __isoc99_printf() {}
12 void __isoc99_sprintf() {}
13 void __isoc99_snprintf() {}
14 void __isoc99_fprintf() {}
15 void __isoc99_vprintf() {}
16 void __isoc99_vsprintf() {}
17 void __isoc99_vsnprintf() {}
18 void __isoc99_vfprintf() {}
19 void __cxa_throw() {} // NEW
20 EOT
21 gcc fixasan.c -o fixasan.so -fPIC -shared -nostdlib
22 export LD_PRELOAD=$PWD/fixasan.so
23
24 # Try running the tests in parallel so that the common case (tests pass) is
25 # quick, but fall back to running them in sequence to make debugging easier.
26 if ! xvfb-run ./complete-run.pl
27 then
28         xvfb-run ./complete-run.pl --parallel=1 || (cat latest/complete-run.log; false)
29 fi