xaizek / uncov (License: AGPLv3+) (since 2018-12-07)
Uncov(er) is a tool that collects and processes code coverage reports.
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 Lines added Lines deleted
scripts/appveyor/config.yml 3 0
scripts/appveyor/ubuntu-prepare.sh 0 3
scripts/appveyor/ubuntu.sh 1 9
scripts/appveyor/valgrind.sh 20 0
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
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/uncov

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/uncov

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master