TMPDIR controls the behavior of mktemp

This commit is contained in:
Martin Diehl 2023-09-28 11:52:34 +02:00
parent 9cf37c4939
commit baf04ad5eb
1 changed files with 12 additions and 12 deletions

View File

@ -89,10 +89,10 @@ unittest_GNU_DEBUG:
stage: compile stage: compile
script: script:
- module load ${COMPILER_GNU} ${MPI_GNU} ${PETSC_GNU} - module load ${COMPILER_GNU} ${MPI_GNU} ${PETSC_GNU}
- TMPDIR=$(mktemp -d) - TEMPDIR=$(mktemp -d)
- cmake -B ${TMPDIR} -DDAMASK_SOLVER=test -DCMAKE_INSTALL_PREFIX=${TMPDIR} -DCMAKE_BUILD_TYPE=RELEASE -DBUILDCMD_POST=-coverage - cmake -B ${TEMPDIR} -DDAMASK_SOLVER=test -DCMAKE_INSTALL_PREFIX=${TEMPDIR} -DCMAKE_BUILD_TYPE=RELEASE -DBUILDCMD_POST=-coverage
- cmake --build ${TMPDIR} --target install - cmake --build ${TEMPDIR} --target install
- cd ${TMPDIR} - cd ${TEMPDIR}
- ./bin/DAMASK_test - ./bin/DAMASK_test
- find -name \*.gcda -not -path "**/test/*" | xargs gcov - find -name \*.gcda -not -path "**/test/*" | xargs gcov
@ -100,10 +100,10 @@ unittest_GNU_RELEASE:
stage: compile stage: compile
script: script:
- module load ${COMPILER_GNU} ${MPI_GNU} ${PETSC_GNU} - module load ${COMPILER_GNU} ${MPI_GNU} ${PETSC_GNU}
- TMPDIR=$(mktemp -d) - TEMPDIR=$(mktemp -d)
- cmake -B ${TMPDIR} -DDAMASK_SOLVER=test -DCMAKE_INSTALL_PREFIX=${TMPDIR} -DCMAKE_BUILD_TYPE=RELEASE -DBUILDCMD_POST=-coverage - cmake -B ${TEMPDIR} -DDAMASK_SOLVER=test -DCMAKE_INSTALL_PREFIX=${TEMPDIR} -DCMAKE_BUILD_TYPE=RELEASE -DBUILDCMD_POST=-coverage
- cmake --build ${TMPDIR} --target install - cmake --build ${TEMPDIR} --target install
- cd ${TMPDIR} - cd ${TEMPDIR}
- ./bin/DAMASK_test - ./bin/DAMASK_test
- find -name \*.gcda -not -path "**/test/*" | xargs gcov - find -name \*.gcda -not -path "**/test/*" | xargs gcov
@ -111,10 +111,10 @@ unittest_GNU_PERFORMANCE:
stage: compile stage: compile
script: script:
- module load ${COMPILER_GNU} ${MPI_GNU} ${PETSC_GNU} - module load ${COMPILER_GNU} ${MPI_GNU} ${PETSC_GNU}
- TMPDIR=$(mktemp -d) - TEMPDIR=$(mktemp -d)
- cmake -B ${TMPDIR} -DDAMASK_SOLVER=test -DCMAKE_INSTALL_PREFIX=${TMPDIR} -DCMAKE_BUILD_TYPE=PERFORMANCE -DBUILDCMD_POST=-coverage - cmake -B ${TEMPDIR} -DDAMASK_SOLVER=test -DCMAKE_INSTALL_PREFIX=${TEMPDIR} -DCMAKE_BUILD_TYPE=PERFORMANCE -DBUILDCMD_POST=-coverage
- cmake --build ${TMPDIR} --target install - cmake --build ${TEMPDIR} --target install
- cd ${TMPDIR} - cd ${TEMPDIR}
- ./bin/DAMASK_test - ./bin/DAMASK_test
- find -name \*.gcda -not -path "**/test/*" | xargs gcov - find -name \*.gcda -not -path "**/test/*" | xargs gcov