-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.sh
More file actions
executable file
·38 lines (33 loc) · 795 Bytes
/
test.sh
File metadata and controls
executable file
·38 lines (33 loc) · 795 Bytes
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
#!/bin/bash
# run static analyzer
./waf clean
scan-build ./waf configure || exit $?
./waf || exit $?
san=(address,undefined thread)
# can't use clang with recent glibc (https://bugs.archlinux.org/task/50366)
./waf clean
./waf configure
./waf
rtests() {
for t in ./build/test*; do
[ -x $t -a -f $t ] || continue
echo "=============================="
echo "Running $(basename $t) with $*"
$t || exit $?
echo "=============================="
sleep 0.5
done
}
while true; do
for s in ${san[@]}; do
./waf --san=$s --mode=debug || exit $?
rtests $s
done
./waf --mode=debug || exit $?
rtests $s
./waf || exit $?
rtests $s
./waf --lto || exit $?
rtests $s
[ "x$1" = "xonce" ] && break
done