Skip to content

Commit

Permalink
Installing SI into a temp dir
Browse files Browse the repository at this point in the history
  • Loading branch information
bernedom committed Feb 11, 2025
1 parent daa1c60 commit d83cb4f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/compilation-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,20 @@

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
ROOT_DIR=$(realpath ${SCRIPT_DIR}/../)
INSTALL_PATH=$(realpath ~/SI-install)

# Set the install path
INSTALL_PATH=$(mktemp -d)/SI-install
#INSTALL_PATH=$(realpath ~/SI-install)

buildSingleTarget()
{
if [ "${2}" == "DEFAULTBUILD" ]; then
cmake ${ROOT_DIR}/test/src/compilation_tests/ -B${BUILD_DIR} -DCMAKE_PREFIX_PATH=${BUILD_DIR} -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PATH} -DCMAKE_BUILD_TYPE=Release -G Ninja > /dev/null
assertEquals "Configuration for defaultbuild successful" 0 $? ${3}
assertEquals "'${4}': Configuration for defaultbuild successful" 0 $?

else
cmake ${ROOT_DIR}/test/src/compilation_tests/ -B${BUILD_DIR} -DCMAKE_PREFIX_PATH=${BUILD_DIR} -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PATH} -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-DSI_DISABLE_IMPLICIT_RATIO_CONVERSION" -G Ninja > /dev/null
assertEquals "Configuration for build with disabled ration cinversion successful" 0 $? ${3}
assertEquals "'${4}': Configuration for build with disabled ration cinversion successful" 0 $?
fi

cmake --build ${BUILD_DIR} --config Release --target $1 > /dev/null
Expand Down

0 comments on commit d83cb4f

Please sign in to comment.