From c098a72c2992fcb6a8ce1e9db7e1cd0ff464706f Mon Sep 17 00:00:00 2001 From: Monique Teillaud Date: Wed, 23 Jun 1999 12:22:45 +0000 Subject: [PATCH] - Removed cgal_test. - Renamed makefile to Makefile (not submitted). --- .../test/Triangulation_3/cgal_test | 74 ------------------- .../test/Triangulation_3/makefile | 62 ---------------- 2 files changed, 136 deletions(-) delete mode 100644 Packages/Triangulation_3/test/Triangulation_3/cgal_test delete mode 100644 Packages/Triangulation_3/test/Triangulation_3/makefile diff --git a/Packages/Triangulation_3/test/Triangulation_3/cgal_test b/Packages/Triangulation_3/test/Triangulation_3/cgal_test deleted file mode 100644 index 4a6a29aa753..00000000000 --- a/Packages/Triangulation_3/test/Triangulation_3/cgal_test +++ /dev/null @@ -1,74 +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 ... " - echo $CGAL_MAKEFILE - if eval 'make CGAL_MAKEFILE=$CGAL_MAKEFILE \ - TESTSUITE_CXXFLAGS="$TESTSUITE_CXXFLAGS" \ - TESTSUITE_LDFLAGS="$TESTSUITE_LDFLAGS" $1' ; then - echo " compilation of $1 succeeded" >> $ERRORFILE - else - echo " ERROR: compilation of $1 failed" >> $ERRORFILE - fi - - if [ -f $1 ] ; then - OUTPUTFILE=ProgramOutput.$1.$PLATFORM - rm -f $OUTPUTFILE - COMMAND="./$1" - if [ -f $1.cmd ] ; then - COMMAND="$COMMAND '`cat $1.cmd`'" - fi - if [ -f data/$1.cin ] ; then - COMMAND="echo '`cat data/$1.cin`' | $COMMAND" - fi - echo "Executing $1 ... " - echo - if eval 2>&1 $COMMAND > $OUTPUTFILE ; then - echo " execution of $1 succeeded" >> $ERRORFILE - else - echo " ERROR: execution of $1 failed" >> $ERRORFILE - fi - else - echo " ERROR: could not execute $1" >> $ERRORFILE - fi - - eval "2>&1 make CGAL_MAKEFILE=$CGAL_MAKEFILE clean > /dev/null " -} - -#---------------------------------------------------------------------# -# remove the previous error file -#---------------------------------------------------------------------# - -rm -f $ERRORFILE -touch $ERRORFILE - -#---------------------------------------------------------------------# -# compile and run the tests -#---------------------------------------------------------------------# - -compile_and_run test_triangulation_tds -compile_and_run test_triangulation_geom_traits -compile_and_run test_triangulation_3 -compile_and_run test_delaunay_3 - - - diff --git a/Packages/Triangulation_3/test/Triangulation_3/makefile b/Packages/Triangulation_3/test/Triangulation_3/makefile deleted file mode 100644 index 52a563f7ec5..00000000000 --- a/Packages/Triangulation_3/test/Triangulation_3/makefile +++ /dev/null @@ -1,62 +0,0 @@ -# This is the makefile for compiling a CGAL application. -#---------------------------------------------------------------------# -# include platform specific settings -#---------------------------------------------------------------------# -# Choose the right include file from the /make directory. - -#CGAL_MAKEFILE = /u/alcor/0/prisme_util/CGAL/CGAL-last/make/makefile_sparc_SunOS-5.6_g++-2.8.1_LEDA -#CGAL_MAKEFILE = $(UTIL)/CGAL/CGAL-last/make/makefile_sparc_SunOS-5.6_eg++-egcs-2.91.60_LEDA -#CGAL_MAKEFILE = /u/alcor/0/prisme_util/CGAL/CGAL-last/make/makefile_sparc_SunOS-5.6_CC-4.2_LEDA - -include $(CGAL_MAKEFILE) - -#---------------------------------------------------------------------# -# compiler flags -#---------------------------------------------------------------------# - -CXXFLAGS = \ - -I../include \ - -I../../include \ - -I./include \ - -Wall\ - $(CGAL_CXXFLAGS)\ - $(TESTSUITE_CXXFLAGS) \ - -g - - -#---------------------------------------------------------------------# -# linker flags -#---------------------------------------------------------------------# - -LDFLAGS = $(TESTSUITE_LDFLAGS) \ - $(CGAL_LDFLAGS) - -#---------------------------------------------------------------------# -# target entries -#---------------------------------------------------------------------# - -test_triangulation_3: test_triangulation_3.o - $(CGAL_CXX) -o test_triangulation_3 test_triangulation_3.o $(LDFLAGS) - -test_triangulation_geom_traits : test_triangulation_geom_traits.o - $(CGAL_CXX) -o test_triangulation_geom_traits test_triangulation_geom_traits.o $(LDFLAGS) - -test_triangulation_tds: test_triangulation_tds.o - $(CGAL_CXX) -o test_triangulation_tds test_triangulation_tds.o $(LDFLAGS) - -test_delaunay_3: test_delaunay_3.o - $(CGAL_CXX) -o test_delaunay_3 test_delaunay_3.o $(LDFLAGS) - -clean: - - rm -f *.o test_triangulation_3 test_triangulation_geom_traits test_triangulation_tds test_delaunay_3 - - -realclean: clean - - rm -f Program* Error* Compiler* error* Test*_triangulation_IO_3 - -#---------------------------------------------------------------------# -# suffix rules -#---------------------------------------------------------------------# - -.C.o: - $(CGAL_CXX) $(CXXFLAGS) -c $<