Commit 019fd569c504280e6ec44f0ae06bc59b6de62428
Run tests under valgrind on CI
Author: xaizek
Author date (UTC): 2022-11-13 18:42
Committer name: xaizek
Committer date (UTC): 2022-11-14 18:26
Parent(s): 8dbcb66b497859d19fc620b2815452300053f5f8
Signing key: 99DC5E4DB05F6BE2
Tree: 8114309fa00391bb50252da263c59f22581f6336
File scripts/appveyor/config.yml changed (mode: 100644) (index 7ead8d4..3bf94c5) |
... |
... |
environment: |
26 |
26 |
- BUILDENV: macos |
- BUILDENV: macos |
27 |
27 |
CC: ccache clang |
CC: ccache clang |
28 |
28 |
APPVEYOR_BUILD_WORKER_IMAGE: macOS |
APPVEYOR_BUILD_WORKER_IMAGE: macOS |
|
29 |
|
- BUILDENV: valgrind |
|
30 |
|
CC: ccache gcc |
|
31 |
|
APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu2004 |
29 |
32 |
|
|
30 |
33 |
cache: |
cache: |
31 |
34 |
- $HOME/.ccache |
- $HOME/.ccache |
File scripts/appveyor/ubuntu-prepare.sh copied from file scripts/appveyor/ubuntu.sh (similarity 93%) (mode: 100755) (index 539851d..9f9e7b8) |
... |
... |
sudo apt install -y libboost-filesystem-dev \ |
11 |
11 |
libsqlite3-dev \ |
libsqlite3-dev \ |
12 |
12 |
libtntnet-dev \ |
libtntnet-dev \ |
13 |
13 |
ccache |
ccache |
14 |
|
|
|
15 |
|
make -j4 |
|
16 |
|
make -j4 check |
|
File scripts/appveyor/ubuntu.sh changed (mode: 100755) (index 539851d..467c8a6) |
2 |
2 |
|
|
3 |
3 |
set -xe |
set -xe |
4 |
4 |
|
|
5 |
|
sudo apt install -y libboost-filesystem-dev \ |
|
6 |
|
libboost-iostreams-dev \ |
|
7 |
|
libboost-program-options-dev \ |
|
8 |
|
libboost-system-dev \ |
|
9 |
|
libgit2-dev \ |
|
10 |
|
libsource-highlight-dev \ |
|
11 |
|
libsqlite3-dev \ |
|
12 |
|
libtntnet-dev \ |
|
13 |
|
ccache |
|
|
5 |
|
scripts/appveyor/ubuntu-prepare.sh |
14 |
6 |
|
|
15 |
7 |
make -j4 |
make -j4 |
16 |
8 |
make -j4 check |
make -j4 check |
File scripts/appveyor/valgrind.sh added (mode: 100755) (index 0000000..39deffe) |
|
1 |
|
#!/bin/bash |
|
2 |
|
|
|
3 |
|
set -xe |
|
4 |
|
|
|
5 |
|
scripts/appveyor/ubuntu-prepare.sh |
|
6 |
|
sudo apt install -y valgrind |
|
7 |
|
|
|
8 |
|
make -j4 debug debug/tests/tests |
|
9 |
|
|
|
10 |
|
valgrind --fullpath-after=$PWD/ \ |
|
11 |
|
--log-file=valgrind-report \ |
|
12 |
|
--track-origins=yes \ |
|
13 |
|
--track-fds=yes \ |
|
14 |
|
--leak-check=full \ |
|
15 |
|
debug/tests/tests || true |
|
16 |
|
|
|
17 |
|
if ! awk '/ERROR SUMMARY:/ { if ($4 != 0) exit 99 }' valgrind-report; then |
|
18 |
|
cat valgrind-report |
|
19 |
|
exit 99 |
|
20 |
|
fi |