Skip to content
Snippets Groups Projects
Commit 260743ef authored by Santiago Ospina De Los Ríos's avatar Santiago Ospina De Los Ríos
Browse files

Split tests builddir

parent b7adf87c
No related branches found
No related tags found
1 merge request!49Resolve "Finish installation and usage instruction on the documentation"
Pipeline #33625 failed
......@@ -22,7 +22,7 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
source $SCRIPT_DIR/util
SOURCEDIR=${SCRIPT_DIR}/../test
BUILD_PATH=/tmp/build-tests
print_opts_file() {
cat "${DUNE_OPTIONS_FILE}"
......@@ -45,11 +45,12 @@ ONFAILURE_CMD="ls print_cmake_error cleanup"
trap onfailure EXIT
echo $GREEN "============================ Unit Tests ============================" $RESET
BUILD_PATH=/tmp/build-unit-tests
[[ -d ${BUILD_PATH} ]] && ONFAILURE_MESSAGE+="the folder '${BUILD_PATH}' should not exist prior running this script\n" && exit 1
mkdir $BUILD_PATH && cd $BUILD_PATH
echo $GREEN "============================ Unit Tests ============================" $RESET
CMAKE_BUILD_TYPE="Debug"
if [[ -n "$DUNE_OPTIONS_FILE" ]]; then
DEBUG_CMAKE_FLAGS="$(. $DUNE_OPTIONS_FILE; eval echo \$CMAKE_FLAGS)"
......@@ -62,6 +63,10 @@ ctest -j4 -L "unit" --output-on-failure
echo $GREEN "============================ System Tests ============================" $RESET
BUILD_PATH=/tmp/build-system-tests
[[ -d ${BUILD_PATH} ]] && ONFAILURE_MESSAGE+="the folder '${BUILD_PATH}' should not exist prior running this script\n" && exit 1
mkdir $BUILD_PATH && cd $BUILD_PATH
CMAKE_BUILD_TYPE="Release"
if [[ -n "$DUNE_OPTIONS_FILE" ]]; then
RELEASE_CMAKE_FLAGS="$(. $DUNE_OPTIONS_FILE; eval echo \$CMAKE_FLAGS)"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment