Separate memory testing script and only generate Cmake dir if necessary.
This commit is contained in:
parent
5f1053cf17
commit
1b18739403
|
@ -0,0 +1,16 @@
|
|||
#! /bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
pushd "$DIR/.."
|
||||
if [[ ! -e test-bin ]]; then
|
||||
cmake -B test-bin/ -G Ninja -D enable_testing=on
|
||||
fi
|
||||
pushd test-bin/
|
||||
ninja build_test
|
||||
ctest --output-on-failure -T memcheck
|
||||
popd
|
||||
popd
|
||||
|
|
@ -5,10 +5,12 @@ set -e
|
|||
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
pushd "$DIR/.."
|
||||
cmake -B test-bin/ -G Ninja -D enable_testing=on
|
||||
if [[ ! -e test-bin ]]; then
|
||||
cmake -B test-bin/ -G Ninja -D enable_testing=on
|
||||
fi
|
||||
pushd test-bin/
|
||||
ninja build_test
|
||||
ctest --output-on-failure -T memcheck
|
||||
ctest --output-on-failure
|
||||
popd
|
||||
popd
|
||||
|
||||
|
|
Loading…
Reference in New Issue