changed: generate a regtest.sh with the proper top dir instead of using eclipses
git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1687 e10b68d5-8a6e-419e-a041-bce267b0401d
This commit is contained in:
@@ -24,6 +24,9 @@ ENDIF(CMAKE_CXX_COMPILER MATCHES icpc)
|
||||
|
||||
ENABLE_TESTING()
|
||||
|
||||
CONFIGURE_FILE(${PROJECT_SOURCE_DIR}/scripts/regtest.sh.in
|
||||
${PROJECT_SOURCE_DIR}/scripts/regtest.sh)
|
||||
|
||||
# Add local modules
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}
|
||||
${CMAKE_SOURCE_DIR}/cmake/Modules)
|
||||
|
||||
@@ -31,16 +31,16 @@ do
|
||||
then
|
||||
if test $globres -eq 1
|
||||
then
|
||||
echo "-------- $2 --------" >> ../../../failed.log
|
||||
echo "-------- $2 --------" >> @PROJECT_SOURCE_DIR@/failed.log
|
||||
fi
|
||||
globres=0
|
||||
echo Failed to find output: $line >> ../../../failed.log
|
||||
echo Failed to find output: $line >> @PROJECT_SOURCE_DIR@/failed.log
|
||||
fi
|
||||
done
|
||||
|
||||
if test $globres -eq 0
|
||||
then
|
||||
cat templog >> ../../../failed.log
|
||||
cat templog >> @PROJECT_SOURCE_DIR@/failed.log
|
||||
rm templog
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user