mirror of https://github.com/CGAL/cgal
Merge pull request #5313 from maxGimeno/Surface_sweep-Fix_test_script-maxGimeno
Fix bash scripts for some tests
This commit is contained in:
commit
4e7c6ab208
|
|
@ -129,22 +129,36 @@ configure()
|
||||||
{
|
{
|
||||||
echo "Configuring... "
|
echo "Configuring... "
|
||||||
rm -rf CMakeCache.txt CMakeFiles/
|
rm -rf CMakeCache.txt CMakeFiles/
|
||||||
echo "cmake --no-warn-unused-cli ${INIT_FILE:+"-C${INIT_FILE}"} "$CMAKE_GENERATOR" -DRUNNING_CGAL_AUTO_TEST=TRUE \
|
if [ -f "$INIT_FILE" ]
|
||||||
-DCGAL_DIR=\"$CGAL_DIR\" \
|
then
|
||||||
-DCGAL_CXX_FLAGS:STRING=\"$TESTSUITE_CXXFLAGS -I../../include\" \
|
if eval 'cmake --no-warn-unused-cli ${INIT_FILE:+"-C${INIT_FILE}"} "$CMAKE_GENERATOR" -DRUNNING_CGAL_AUTO_TEST=TRUE \
|
||||||
-DCGAL_EXE_LINKER_FLAGS=\"$TESTSUITE_LDFLAGS\" \
|
-DCGAL_DIR="$CGAL_DIR" \
|
||||||
-DCMAKE_BUILD_TYPE=NOTFOUND \
|
-DCGAL_CXX_FLAGS:STRING="$CGAL_CXX_FLAGS $TESTSUITE_CXXFLAGS -I../../include" \
|
||||||
."
|
-DCGAL_EXE_LINKER_FLAGS="$CGAL_EXE_LINKER_FLAGS $TESTSUITE_LDFLAGS" \
|
||||||
if eval 'cmake --no-warn-unused-cli ${INIT_FILE:+"-C${INIT_FILE}"} "$CMAKE_GENERATOR" -DRUNNING_CGAL_AUTO_TEST=TRUE \
|
.' ; then
|
||||||
-DCGAL_DIR="$CGAL_DIR" \
|
|
||||||
-DCGAL_CXX_FLAGS:STRING="$TESTSUITE_CXXFLAGS -I../../include" \
|
|
||||||
-DCGAL_EXE_LINKER_FLAGS="$TESTSUITE_LDFLAGS" \
|
|
||||||
-DCMAKE_BUILD_TYPE=NOTFOUND \
|
|
||||||
.' ; then
|
|
||||||
|
|
||||||
echo " successful configuration" >> $ERRORFILE
|
echo " successful configuration" >> $ERRORFILE
|
||||||
|
else
|
||||||
|
echo " ERROR: configuration" >> $ERRORFILE
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo " ERROR: configuration" >> $ERRORFILE
|
echo "cmake --no-warn-unused-cli ${INIT_FILE:+"-C${INIT_FILE}"} "$CMAKE_GENERATOR" -DRUNNING_CGAL_AUTO_TEST=TRUE \
|
||||||
|
-DCGAL_DIR=\"$CGAL_DIR\" \
|
||||||
|
-DCGAL_CXX_FLAGS:STRING=\"$TESTSUITE_CXXFLAGS -I../../include\" \
|
||||||
|
-DCGAL_EXE_LINKER_FLAGS=\"$TESTSUITE_LDFLAGS\" \
|
||||||
|
-DCMAKE_BUILD_TYPE=NOTFOUND \
|
||||||
|
."
|
||||||
|
if eval 'cmake --no-warn-unused-cli ${INIT_FILE:+"-C${INIT_FILE}"} "$CMAKE_GENERATOR" -DRUNNING_CGAL_AUTO_TEST=TRUE \
|
||||||
|
-DCGAL_DIR="$CGAL_DIR" \
|
||||||
|
-DCGAL_CXX_FLAGS:STRING="$TESTSUITE_CXXFLAGS -I../../include" \
|
||||||
|
-DCGAL_EXE_LINKER_FLAGS="$TESTSUITE_LDFLAGS" \
|
||||||
|
-DCMAKE_BUILD_TYPE=NOTFOUND \
|
||||||
|
.' ; then
|
||||||
|
|
||||||
|
echo " successful configuration" >> $ERRORFILE
|
||||||
|
else
|
||||||
|
echo " ERROR: configuration" >> $ERRORFILE
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,21 +28,33 @@ fi
|
||||||
|
|
||||||
configure()
|
configure()
|
||||||
{
|
{
|
||||||
echo "Configuring... "
|
echo "Configuring... "
|
||||||
|
|
||||||
rm CMakeCache.txt
|
rm CMakeCache.txt
|
||||||
|
if [ -f "$INIT_FILE" ]
|
||||||
|
then
|
||||||
|
if eval 'cmake --no-warn-unused-cli ${INIT_FILE:+"-C${INIT_FILE}"} "$CMAKE_GENERATOR" -DRUNNING_CGAL_AUTO_TEST=TRUE \
|
||||||
|
-DCGAL_DIR="$CGAL_DIR" \
|
||||||
|
-DCGAL_CXX_FLAGS:STRING="$CGAL_CXX_FLAGS $TESTSUITE_CXXFLAGS" \
|
||||||
|
-DCGAL_EXE_LINKER_FLAGS="$CGAL_EXE_LINKER_FLAGS $TESTSUITE_LDFLAGS" \
|
||||||
|
.' ; then
|
||||||
|
echo " successful configuration" >> $ERRORFILE
|
||||||
|
else
|
||||||
|
echo " ERROR: configuration" >> $ERRORFILE
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
if eval 'cmake --no-warn-unused-cli ${INIT_FILE:+"-C${INIT_FILE}"} "$CMAKE_GENERATOR" -DRUNNING_CGAL_AUTO_TEST=TRUE \
|
||||||
|
-DCGAL_DIR="$CGAL_DIR" \
|
||||||
|
-DCGAL_CXX_FLAGS:STRING="$TESTSUITE_CXXFLAGS" \
|
||||||
|
-DCGAL_EXE_LINKER_FLAGS="$TESTSUITE_LDFLAGS" \
|
||||||
|
-DCMAKE_BUILD_TYPE=NOTFOUND \
|
||||||
|
.' ; then
|
||||||
|
|
||||||
if eval 'cmake --no-warn-unused-cli ${INIT_FILE:+"-C${INIT_FILE}"} "$CMAKE_GENERATOR" -DRUNNING_CGAL_AUTO_TEST=TRUE \
|
echo " successful configuration" >> $ERRORFILE
|
||||||
-DCGAL_DIR="$CGAL_DIR" \
|
else
|
||||||
-DCGAL_CXX_FLAGS:STRING="$TESTSUITE_CXXFLAGS" \
|
echo " ERROR: configuration" >> $ERRORFILE
|
||||||
-DCGAL_EXE_LINKER_FLAGS="$TESTSUITE_LDFLAGS" \
|
fi
|
||||||
-DCMAKE_BUILD_TYPE=NOTFOUND \
|
fi
|
||||||
.' ; then
|
|
||||||
|
|
||||||
echo " successful configuration" >> $ERRORFILE
|
|
||||||
else
|
|
||||||
echo " ERROR: configuration" >> $ERRORFILE
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
compile()
|
compile()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue