From 26af4e253e9456e4e8e91619fbb9ec84dde3b7c5 Mon Sep 17 00:00:00 2001 From: Sylvain Pion Date: Sat, 27 Jan 2007 19:41:43 +0000 Subject: [PATCH] This cgal_test does not bring anything compared to the default generated. --- .gitattributes | 1 - Timer/test/Timer/cgal_test | 76 -------------------------------------- 2 files changed, 77 deletions(-) delete mode 100755 Timer/test/Timer/cgal_test diff --git a/.gitattributes b/.gitattributes index bf5024c6442..09cb1d9efbe 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2188,7 +2188,6 @@ Surface_mesher/examples/Surface_mesher/mesh_a_3d_gray_image.vcproj eol=crlf Surface_mesher/find_debug_macros -text Surface_mesher/find_non_debug_macros -text Testsuite/test/run_testsuite eol=lf -Timer/test/Timer/cgal_test eol=lf Triangulation_2/demo/Triangulation_2/constrained_delaunay_triangulation_2.vcproj eol=crlf Triangulation_2/demo/Triangulation_2/delaunay_triangulation_2.vcproj eol=crlf Triangulation_2/demo/Triangulation_2/help/cindex.html svneol=native#text/html diff --git a/Timer/test/Timer/cgal_test b/Timer/test/Timer/cgal_test deleted file mode 100755 index eeae9649938..00000000000 --- a/Timer/test/Timer/cgal_test +++ /dev/null @@ -1,76 +0,0 @@ -#! /bin/sh - -# This is a script for the CGAL test suite. Such a script must obey -# the following rules: -# -# - the name of the script is cgal_test -# - for every target two one line messages are written to the file 'error.txt' -# the first one indicates if the compilation was successful -# the second one indicates if the execution was successful -# if one of the two was not successful, the line should start with 'ERROR:' -# - running the script should not require any user interaction -# - the script should clean up object files and executables - -ERRORFILE=error.txt - -#---------------------------------------------------------------------# -# compile_and_run -#---------------------------------------------------------------------# - -compile_and_run() -{ - echo "Compiling $1 ... " - SUCCES="y" - if eval 'make CGAL_MAKEFILE=$CGAL_MAKEFILE \ - TESTSUITE_CXXFLAGS="$TESTSUITE_CXXFLAGS" \ - TESTSUITE_LDFLAGS="$TESTSUITE_LDFLAGS" $1' ; then - echo " succesful compilation of $1" >> $ERRORFILE - else - echo " ERROR: compilation of $1" >> $ERRORFILE - SUCCES="" - fi - - if [ -n "${SUCCES}" ] ; then - OUTPUTFILE=ProgramOutput.$1.$PLATFORM - rm -f $OUTPUTFILE - COMMAND="./$1" - if [ -f $1.cmd ] ; then - COMMAND="$COMMAND `cat $1.cmd`" - fi - if [ -f $1.cin ] ; then - COMMAND="cat $1.cin | $COMMAND" - fi - echo "Executing $1 ... " - echo - if eval $COMMAND > $OUTPUTFILE 2>&1 ; then - echo " succesful execution of $1" >> $ERRORFILE - else - echo " ERROR: execution of $1" >> $ERRORFILE - fi - else - echo " ERROR: not executed $1" >> $ERRORFILE - fi - - eval "make CGAL_MAKEFILE=$CGAL_MAKEFILE clean > /dev/null 2>&1 " -} - -#---------------------------------------------------------------------# -# remove the previous error file -#---------------------------------------------------------------------# - -rm -f $ERRORFILE -touch $ERRORFILE - -#---------------------------------------------------------------------# -# compile and run the tests -#---------------------------------------------------------------------# - -if [ $# -ne 0 ] ; then - for file in $* ; do - compile_and_run $file - done -else - compile_and_run test_memory_sizer - compile_and_run test_timer -fi -