mirror of
https://github.com/XTXMarkets/ternfs.git
synced 2026-01-05 18:40:16 -06:00
Also, produce fully static binaries. This means that `gethostname` does not work (doesn't work with static glibc unless you build it with `--enable-static-nss`, which no distro builds glibc with).
16 lines
612 B
Bash
Executable File
16 lines
612 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eu -o pipefail
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
echo "$(tput bold)C++ tests, sanitized$(tput sgr0)"
|
|
./build.py sanitized tests/tests
|
|
UBSAN_OPTIONS=print_stacktrace=1 ./build/sanitized/tests/tests
|
|
|
|
# valgrind doesn't support fnctl F_SET_RW_HINT (1036), and as far as I can
|
|
# tell there isn't a way to programmatically filter those.
|
|
|
|
echo "$(tput bold)C++ tests, valgrind$(tput sgr0)"
|
|
./build.py valgrind tests/tests
|
|
valgrind --exit-on-first-error=yes -q --suppressions=valgrind-suppressions --error-exitcode=1 ./build/valgrind/tests/tests 2> >(grep -v "Warning: unimplemented fcntl command: 1036")
|