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]

[v3] testsuite build/install hooks



More help from Angela.

tested x86/linux

2001-05-18  Angela Marie Thomas <angela@cygnus.com>

        * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Set flags
        appropriately for remote testing and testing installed files without
        a build dir.


Index: testsuite/lib/libstdc++-v3-dg.exp
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/lib/libstdc++-v3-dg.exp,v
retrieving revision 1.3
diff -c -p -r1.3 libstdc++-v3-dg.exp
*** libstdc++-v3-dg.exp	2001/05/18 05:37:43	1.3
--- libstdc++-v3-dg.exp	2001/05/18 18:52:56
*************** proc libstdc++-v3-init { args } {
*** 30,38 ****
      global gluefile wrap_flags
  
      set blddir   [lookfor_file $outdir libstdc++-v3]
!     set cxx 	 [exec sh ${blddir}/testsuite_flags --build-cxx]
!     set cxxflags [exec sh ${blddir}/testsuite_flags --cxxflags]
!     set includes [exec sh ${blddir}/testsuite_flags --build-includes]
  
      # By default, we assume we want to run program images.
      global dg-do-what-default
--- 30,58 ----
      global gluefile wrap_flags
  
      set blddir   [lookfor_file $outdir libstdc++-v3]
! 
!     if [is_remote host] {
!         set header [remote_download host ${srcdir}/debug_assert.h]
!         if { $header == "" } {
!             verbose -log "Unable to download ${srcdir}/debug_assert.h to host."
!             return "untested"
!         }
!       set cxx [transform "g++"]
!       set cxxflags "-ggdb3 -DDEBUG_ASSERT"
!         set includes "-I./"
!     } else {
!         # If we find a testsuite_flags file, we're testing in the build dir.
!         set flags_file "${blddir}/testsuite_flags"
!         if { [file exists $flags_file] } {
!             set cxx [exec sh $flags_file --build-cxx]
!             set cxxflags [exec sh $flags_file --cxxflags]
!             set includes [exec sh $flags_file --build-includes]
!         } else {
!             set cxx [transform "g++"]
!             set cxxflags "-ggdb3 -DDEBUG_ASSERT"
!             set includes "-I${srcdir}"
!         }
!     }
  
      # By default, we assume we want to run program images.
      global dg-do-what-default





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