forked from linuxwacom/libwacom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run-full-test.sh
executable file
·30 lines (22 loc) · 830 Bytes
/
run-full-test.sh
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
#!/usr/bin/env bash
set -e
date=`date +"%Y-%m-%d-%H.%M.%S"`
builddir="build.$date"
echo "####################################### running test suite"
meson $builddir
ninja -C $builddir test
echo "####################################### running valgrind"
pushd $builddir > /dev/null
meson test --setup=valgrind --suite=valgrind
popd > /dev/null
echo "####################################### running ubsan"
meson configure $builddir -Db_sanitize=undefined
ninja -C $builddir test
echo "####################################### running asan"
meson configure $builddir -Db_sanitize=address
ninja -C $builddir test
echo "####################################### running scan-build"
meson configure $builddir -Db_sanitize=none
ninja -C $builddir scan-build
echo "######## Success. Removing builddir #########"
rm -rf "$buildir"