libpmemobj-cpp/tests/run_test.sh
Bryan Gurney 1a73cbd967 Add patch to fix undefined behavior on realloc
Also refine the gating test to only run non-Valgrind, short-running
tests.

Related: rhbz#2034641

Signed-off-by: Bryan Gurney <bgurney@redhat.com>
2022-01-24 11:34:44 -05:00

17 lines
288 B
Bash

#!/bin/bash
set -e
NRCPUS=$(getconf _NPROCESSORS_ONLN)
patchfile="$PWD/libpmemobj-test-installed-libs.patch"
cd source
patch -p1 < $patchfile
mkdir build
cd build
cmake .. -DTESTS_USE_VALGRIND=OFF -DTESTS_LONG=OFF -DTESTS_USE_FORCED_PMEM=ON
make -j $NRCPUS
ctest --output-on-failure