forked from linuxwacom/libwacom
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun-full-test.sh
More file actions
executable file
·30 lines (22 loc) · 816 Bytes
/
Copy pathrun-full-test.sh
File metadata and controls
executable file
·30 lines (22 loc) · 816 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
#!/usr/bin/env bash
set -e
date=$(date +"%Y-%m-%d-%H.%M.%S")
builddir="build.$date"
echo "####################################### running test suite"
meson setup $builddir
ninja -C $builddir test
echo "####################################### running valgrind"
pushd $builddir >/dev/null
meson test --setup=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 clang-tidy"
meson configure $builddir -Db_sanitize=none
ninja -C $builddir clang-tidy
echo "######## Success. Removing builddir #########"
rm -rf "$builddir"