This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] update contrib/test_installed


contrib/test_installed currently fails, because uninitialized
variables are referenced (rootme, CFLAGS, CXXFLAGS). CFLAGS and
CXXFLAGS are set to the empty string, rootme to the current (empty)
directory. rootme is used to set the LD_LIBRARY_PATH, so a directory
with no shared library inside does no harm.

Add support for objc as well. Adding support for the libraries
(libstdc++-v3 and libjava is on my todo list).

Ok to checkin for 3.3 and HEAD?

	Matthias

2003-04-12  Matthias Klose  <doko at debian dot org>

	* test_installed: Add options to run objc tests.
	In generated site.exp, initialize rootme, CFLAGS, CXXFLAGS.


--- contrib/test_installed~	2002-05-23 22:03:09.000000000 +0200
+++ contrib/test_installed	2003-04-12 17:12:36.000000000 +0200
@@ -54,11 +54,12 @@
   --without-gcc) GCC_UNDER_TEST=no; shift;;
   --without-g++) GXX_UNDER_TEST=no; shift;;
   --without-g77) G77_UNDER_TEST=no; shift;;
+  --without-objc) OBJC_UNDER_TEST=no; shift;;
 
   --tmpdir=*) tmpdir=`echo "$1" | sed 's/[^=]*=//'`; shift;;
 
   --help) cat <<\EOF
-Runs the testsuite for an installed version of gcc/g++/g77
+Runs the testsuite for an installed version of gcc/g++/g77/objc
 Copyright (C) 1998  Free Software Foundation
 by Alexandre Oliva <oliva at dcc dot unicamp dot br>
 
@@ -77,6 +78,7 @@
 --without-gcc                 do not run gcc testsuite
 --without-g++                 do not run g++ testsuite
 --without-g77                 do not run g77 testsuite
+--without-objc                do not run objc testsuite
 
 --tmpdir=/some/dir            create temporaries and leave failed programs
                               at specified directory [.]
@@ -100,15 +102,20 @@
 fi
 
 cat >site.exp <<EOF
+set rootme "."
 set tmpdir "${tmpdir-`${PWDCMD-pwd}`}"
 set srcdir "${testsuite-${srcdir}/gcc/testsuite}"
+set CFLAGS ""
+set CXXFLAGS ""
 set GCC_UNDER_TEST "${GCC_UNDER_TEST-${prefix}${prefix+/bin/}gcc}"
 set GXX_UNDER_TEST "${GXX_UNDER_TEST-${prefix}${prefix+/bin/}g++}"
 set G77_UNDER_TEST "${G77_UNDER_TEST-${prefix}${prefix+/bin/}g77}"
+set OBJC_UNDER_TEST "${OBJC_UNDER_TEST-${prefix}${prefix+/bin/}gcc}"
 EOF
 
 test x"${GCC_UNDER_TEST}" = x"no" || runtest --tool gcc ${1+"$@"}
 test x"${GXX_UNDER_TEST}" = x"no" || runtest --tool g++ ${1+"$@"}
 test x"${G77_UNDER_TEST}" = x"no" || runtest --tool g77 ${1+"$@"}
+test x"${OBJC_UNDER_TEST}" = x"no" || runtest --tool objc ${1+"$@"}
 
 exit 0


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]