OSDN Git Service

* lib/old-dejagnu.exp (old-dejagnu): Copy extra source files
authorgeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 Nov 2001 07:35:21 +0000 (07:35 +0000)
committergeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 Nov 2001 07:35:21 +0000 (07:35 +0000)
to the host if it is remote.  Let tests specify extra headers
they use.
* g++.old-deja/g++.abi/vtable3a.C: This uses 'vtable3.h'.
* g++.old-deja/g++.abi/vtable3b.C: This uses 'vtable3.h'.
* g++.old-deja/g++.abi/vtable3c.C: This uses 'vtable3.h'.
* g++.old-deja/g++.abi/vtable3d.C: This uses 'vtable3.h'.
* g++.old-deja/g++.abi/vtable3e.C: This uses 'vtable3.h'.
* g++.old-deja/g++.abi/vtable3f.C: This uses 'vtable3.h'.
* g++.old-deja/g++.abi/vtable3g.C: This uses 'vtable3.h'.
* g++.old-deja/g++.abi/vtable3h.C: This uses 'vtable3.h'.
* g++.old-deja/g++.abi/vtable3i.C: This uses 'vtable3.h'.
* g++.old-deja/g++.abi/vtable3j.C: This uses 'vtable3.h'.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47281 138bc75d-0d04-0410-961f-82ee72b054a4

12 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.abi/vtable3a.C
gcc/testsuite/g++.old-deja/g++.abi/vtable3b.C
gcc/testsuite/g++.old-deja/g++.abi/vtable3c.C
gcc/testsuite/g++.old-deja/g++.abi/vtable3d.C
gcc/testsuite/g++.old-deja/g++.abi/vtable3e.C
gcc/testsuite/g++.old-deja/g++.abi/vtable3f.C
gcc/testsuite/g++.old-deja/g++.abi/vtable3g.C
gcc/testsuite/g++.old-deja/g++.abi/vtable3h.C
gcc/testsuite/g++.old-deja/g++.abi/vtable3i.C
gcc/testsuite/g++.old-deja/g++.abi/vtable3j.C
gcc/testsuite/lib/old-dejagnu.exp

index 26e1e77..ac3dfc0 100644 (file)
@@ -1,3 +1,19 @@
+2001-11-22  Geoffrey Keating  <geoffk@redhat.com>
+
+       * lib/old-dejagnu.exp (old-dejagnu): Copy extra source files
+       to the host if it is remote.  Let tests specify extra headers
+       they use.
+       * g++.old-deja/g++.abi/vtable3a.C: This uses 'vtable3.h'.
+       * g++.old-deja/g++.abi/vtable3b.C: This uses 'vtable3.h'.
+       * g++.old-deja/g++.abi/vtable3c.C: This uses 'vtable3.h'.
+       * g++.old-deja/g++.abi/vtable3d.C: This uses 'vtable3.h'.
+       * g++.old-deja/g++.abi/vtable3e.C: This uses 'vtable3.h'.
+       * g++.old-deja/g++.abi/vtable3f.C: This uses 'vtable3.h'.
+       * g++.old-deja/g++.abi/vtable3g.C: This uses 'vtable3.h'.
+       * g++.old-deja/g++.abi/vtable3h.C: This uses 'vtable3.h'.
+       * g++.old-deja/g++.abi/vtable3i.C: This uses 'vtable3.h'.
+       * g++.old-deja/g++.abi/vtable3j.C: This uses 'vtable3.h'.
+
 2001-11-22  Nick Clifton  <nickc@cambridge.redhat.com>
 
        * gcc.c-torture/execute/ieee/20000320-1.c: Fix patterns to work
index c2c7bbf..8dc912b 100644 (file)
@@ -2,6 +2,7 @@
 // Contributed by Nathan Sidwell 4 February 2001 <nathan@codesourcery.com>
 
 // Check constructor vtables work.
+// Additional files: vtable3.h
 
 #define A_EMPTY
 #define B1_EMPTY
index 4d4bd99..903eab8 100644 (file)
@@ -2,6 +2,7 @@
 // Contributed by Nathan Sidwell 4 February 2001 <nathan@codesourcery.com>
 
 // Check constructor vtables work.
+// Additional files: vtable3.h
 
 #define B1_EMPTY
 #define B2_EMPTY
index 2863ca5..45b891a 100644 (file)
@@ -2,6 +2,7 @@
 // Contributed by Nathan Sidwell 4 February 2001 <nathan@codesourcery.com>
 
 // Check constructor vtables work.
+// Additional files: vtable3.h
 
 #define A_EMPTY
 #define B2_EMPTY
index a3a2cbc..5511c23 100644 (file)
@@ -2,6 +2,7 @@
 // Contributed by Nathan Sidwell 4 February 2001 <nathan@codesourcery.com>
 
 // Check constructor vtables work.
+// Additional files: vtable3.h
 
 #define A_EMPTY
 #define B1_EMPTY
index a1c8a9d..0e71fac 100644 (file)
@@ -2,6 +2,7 @@
 // Contributed by Nathan Sidwell 4 February 2001 <nathan@codesourcery.com>
 
 // Check constructor vtables work.
+// Additional files: vtable3.h
 
 #define A_EMPTY
 #define B1_EMPTY
index 7bcf40c..8af79db 100644 (file)
@@ -2,6 +2,7 @@
 // Contributed by Nathan Sidwell 4 February 2001 <nathan@codesourcery.com>
 
 // Check constructor vtables work.
+// Additional files: vtable3.h
 
 #define A_EMPTY
 #define B1_EMPTY
index 1ad70bc..c97804f 100644 (file)
@@ -2,6 +2,7 @@
 // Contributed by Nathan Sidwell 4 February 2001 <nathan@codesourcery.com>
 
 // Check constructor vtables work.
+// Additional files: vtable3.h
 
 #define A_EMPTY
 #define B1_EMPTY
index 074bda4..0b0a843 100644 (file)
@@ -2,6 +2,7 @@
 // Contributed by Nathan Sidwell 4 February 2001 <nathan@codesourcery.com>
 
 // Check constructor vtables work.
+// Additional files: vtable3.h
 
 #define A_EMPTY
 #define B1_EMPTY
index d6fc3a3..6c48244 100644 (file)
@@ -2,6 +2,7 @@
 // Contributed by Nathan Sidwell 4 February 2001 <nathan@codesourcery.com>
 
 // Check constructor vtables work.
+// Additional files: vtable3.h
 
 #define B1_EMPTY
 #define B2_EMPTY
index 1af5225..0b8925c 100644 (file)
@@ -2,6 +2,7 @@
 // Contributed by Nathan Sidwell 4 February 2001 <nathan@codesourcery.com>
 
 // Check constructor vtables work.
+// Additional files: vtable3.h
 
 #define B1_EMPTY
 #define B2_EMPTY
index 8384e83..105c37d 100644 (file)
@@ -205,6 +205,7 @@ proc old-dejagnu { compiler prog name cflagsx default_cflags libs } {
 
     set tmp [lindex [grep $prog "Special.*Options:.*"] 0]
     set cflags ""
+    set to_download ""
 
     regsub -all "\n\[^\n\]+(\n|$)" $tmp "\n" tmp
     set tmp [string trim $tmp]
@@ -225,11 +226,27 @@ proc old-dejagnu { compiler prog name cflagsx default_cflags libs } {
     set tmp [string trim $tmp]
     if ![string match "" $tmp] then {
        regsub "^.*Additional.*sources:" $tmp "" tmp
+       if [is_remote host] {
+           lappend cflags "additional_flags=$tmp"
+       }
        regsub -all " " $tmp " [file dirname $prog]/" tmp
-       lappend cflags "additional_flags=$tmp"
+       if ![is_remote host] {
+           lappend cflags "additional_flags=$tmp"
+       }
+       set to_download [concat $to_download $tmp]
        verbose "Adding sources $tmp"
     }
 
+    set tmp [lindex [grep $prog "Additional files: .*"] 0]
+    regsub -all "\n\[^\n\]+(\n|$)" $tmp "\n" tmp
+    set tmp [string trim $tmp]
+    if ![string match "" $tmp] then {
+       regsub "^.*Additional.*files:" $tmp "" tmp
+       regsub -all " " $tmp " [file dirname $prog]/" tmp
+       set to_download [concat $to_download $tmp]
+       verbose "Downloading files $tmp"
+    }
+
     lappend cflags "compiler=$compiler"
 
     regsub -all "\[./\]" "$name" "-" output;
@@ -408,6 +425,12 @@ proc old-dejagnu { compiler prog name cflagsx default_cflags libs } {
 #
 #  run the compiler and analyze the results
 #
+    # Download any source or header files we might need.
+    if [is_remote host] {
+       foreach file $to_download {
+           remote_download host $file
+       }
+    }
 
     # Since we don't check return status of the compiler, make sure
     # we can't run a.out when the compilation fails.