Remove the copy of src/* as test/src_* since it's buggy right now

(hard to emulate the right makefiles anyway).  And hopefully we will
have the install.log file provide the information in the test-suite
soon...
This commit is contained in:
Sylvain Pion 2006-05-21 21:35:53 +00:00
parent cb0f309615
commit b71b0e2e98
1 changed files with 0 additions and 102 deletions

View File

@ -399,105 +399,6 @@ sub CreateConfigurationTestdir(){
}
#---------------------------------------------------------------#
# CreateSrcQtTestDir
#---------------------------------------------------------------#
sub CreateSrcQtTestDir()
{
print "Creating $VERSION/test/src_Qt directory ...\n";
chdir "$RELEASEDIR/$VERSION/" or die;
system('cp', '-r', 'src/CGALQt', 'test/src_Qt');
# Must be called after CreateSrcTestDir().
system('cp', 'test/src_CGAL/cgal_test', 'test/src_Qt');
}
#---------------------------------------------------------------#
# CreateSrcCoreTestDir
#---------------------------------------------------------------#
sub CreateSrcCoreTestDir()
{
print "Creating $VERSION/test/src_Core directory ...\n";
chdir "$RELEASEDIR/$VERSION/" or die;
system('cp', '-r', 'src/Core', 'test/src_Core');
# Must be called after CreateSrcTestDir().
system('cp', 'test/src_CGAL/cgal_test', 'test/src_Core');
}
#---------------------------------------------------------------#
# CreateSrcTestDir
#---------------------------------------------------------------#
sub CreateSrcTestDir()
{
print "Creating $VERSION/test/src_CGAL directory ...\n";
chdir "$RELEASEDIR/$VERSION" or die;
system('cp', '-r', 'src/CGAL', 'test/src_CGAL');
open(CGAL_TEST,">test/src_CGAL/cgal_test");
print CGAL_TEST <<'EOF';
#! /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 <target>
#---------------------------------------------------------------------#
compile()
{
echo "Compiling $1 ... "
SUCCES="y"
if eval 'make CGAL_MAKEFILE=$CGAL_MAKEFILE \
TESTSUITE_CXXFLAGS="$TESTSUITE_CXXFLAGS" \
TESTSUITE_LDFLAGS="$TESTSUITE_LDFLAGS" -k $1' ; then
echo " compilation of $1 succeeded" >> $ERRORFILE
else
echo " ERROR: compilation of $1 failed" >> $ERRORFILE
SUCCES=""
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
#---------------------------------------------------------------------#
if [ $# -ne 0 ] ; then
for file in $* ; do
compile $file
done
else
compile lib_no_install
fi
EOF
close(CGAL_TEST);
chmod 0755, 'test/src_CGAL/cgal_test';
}
#---------------------------------------------------------------#
# create cgal_test script in tests
#---------------------------------------------------------------#
@ -826,9 +727,6 @@ create_version_file();
create_version_tex_file();
make_testscripts();
set_file_headers();
CreateSrcTestDir();
CreateSrcCoreTestDir(); # Must be called after CreateSrcTestDir()
CreateSrcQtTestDir(); # Must be called after CreateSrcTestDir()
create_global_makefile();
unlock;