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:
akva
2012-05-14 10:20:23 +00:00
committed by Knut Morten Okstad
parent 6f83bd0ca4
commit 98c19574fb
2 changed files with 6 additions and 3 deletions

View File

@@ -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)

View File

@@ -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