From 5e61260a99a81fa06429e58e0482d03bbd74bba7 Mon Sep 17 00:00:00 2001 From: Laurent Saboret Date: Wed, 20 Aug 2008 14:31:55 +0000 Subject: [PATCH] test_all.sh create now a log file --- .../Surface_mesh_parameterization/test_all.bat | 5 +---- .../Surface_mesh_parameterization/test_all.sh | 10 +++++++++- .../test/Surface_mesh_parameterization/test_all.bat | 2 +- .../test/Surface_mesh_parameterization/test_all.sh | 11 ++++++++++- 4 files changed, 21 insertions(+), 7 deletions(-) diff --git a/Surface_mesh_parameterization/examples/Surface_mesh_parameterization/test_all.bat b/Surface_mesh_parameterization/examples/Surface_mesh_parameterization/test_all.bat index 4f62387cc9f..4cd8e8e8a2a 100644 --- a/Surface_mesh_parameterization/examples/Surface_mesh_parameterization/test_all.bat +++ b/Surface_mesh_parameterization/examples/Surface_mesh_parameterization/test_all.bat @@ -5,8 +5,5 @@ rem Double-clickable version of test_all.sh on Windows/Cygwin rem Path to Cygwin is hard-coded PATH=%PATH%;c:\Applis\cygwin\bin -rem Create test folder (if needed) -mkdir test - -sh ./test_all.sh 2>&1 | tee test/test_all.log +sh ./test_all.sh pause diff --git a/Surface_mesh_parameterization/examples/Surface_mesh_parameterization/test_all.sh b/Surface_mesh_parameterization/examples/Surface_mesh_parameterization/test_all.sh index fdbcf8478de..342a606df4b 100755 --- a/Surface_mesh_parameterization/examples/Surface_mesh_parameterization/test_all.sh +++ b/Surface_mesh_parameterization/examples/Surface_mesh_parameterization/test_all.sh @@ -8,6 +8,7 @@ ERRORFILE=error.txt # Find executable name (different on Windows and Unix) +# ---------------------------------------------------- find_executable() { PARAM_APPLICATION="" @@ -20,6 +21,7 @@ find_executable() } # run 1 test +# ---------- run() { # Find exe @@ -43,13 +45,18 @@ run() echo "------------------------------------------------------------------" echo if eval $COMMAND 2>&1 ; then - echo " succesful execution of $1" >> $ERRORFILE + echo " successful execution of $1" >> $ERRORFILE else echo " ERROR: execution of $1" >> $ERRORFILE fi echo } +# main +# ---- + +( + # remove the previous error file rm -f $ERRORFILE touch $ERRORFILE @@ -78,4 +85,5 @@ cat $ERRORFILE echo rm -f $ERRORFILE +) 2>&1 | tee test_all.log diff --git a/Surface_mesh_parameterization/test/Surface_mesh_parameterization/test_all.bat b/Surface_mesh_parameterization/test/Surface_mesh_parameterization/test_all.bat index fd1a24fd2cf..4cd8e8e8a2a 100644 --- a/Surface_mesh_parameterization/test/Surface_mesh_parameterization/test_all.bat +++ b/Surface_mesh_parameterization/test/Surface_mesh_parameterization/test_all.bat @@ -5,5 +5,5 @@ rem Double-clickable version of test_all.sh on Windows/Cygwin rem Path to Cygwin is hard-coded PATH=%PATH%;c:\Applis\cygwin\bin -sh ./test_all.sh 2>&1 | tee test_all.log +sh ./test_all.sh pause diff --git a/Surface_mesh_parameterization/test/Surface_mesh_parameterization/test_all.sh b/Surface_mesh_parameterization/test/Surface_mesh_parameterization/test_all.sh index 47bc74deaff..ee3212d8bfb 100755 --- a/Surface_mesh_parameterization/test/Surface_mesh_parameterization/test_all.sh +++ b/Surface_mesh_parameterization/test/Surface_mesh_parameterization/test_all.sh @@ -8,6 +8,7 @@ ERRORFILE=error.txt # Find executable name (different on Windows and Unix) +# ---------------------------------------------------- find_executable() { PARAM_APPLICATION="" @@ -20,6 +21,7 @@ find_executable() } # run 1 test +# ---------- run() { # Find exe @@ -43,13 +45,18 @@ run() echo "------------------------------------------------------------------" echo if eval $COMMAND 2>&1 ; then - echo " succesful execution of $1" >> $ERRORFILE + echo " successful execution of $1" >> $ERRORFILE else echo " ERROR: execution of $1" >> $ERRORFILE fi echo } +# main +# ---- + +( + # remove the previous error file rm -f $ERRORFILE touch $ERRORFILE @@ -72,3 +79,5 @@ cat $ERRORFILE echo rm -f $ERRORFILE +) 2>&1 | tee test_all.log +