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]

Re: [PATCH] Compat testsuite improvement (part #2)


> Here's the dejagnu part.  We talked about using a header file to pass the
> options with Janis, but this solution might be deemed sufficient.

Slightly better, same Chanlog entry.

-- 
Eric Botcazou
Index: lib/compat.exp
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/lib/compat.exp,v
retrieving revision 1.7
diff -u -r1.7 compat.exp
--- lib/compat.exp	27 Nov 2003 10:43:00 -0000	1.7
+++ lib/compat.exp	31 Jan 2004 13:17:40 -0000
@@ -49,6 +49,21 @@
 
 set option_list $COMPAT_OPTIONS
 
+# Subsets of tests can be selectively disabled by members of this list:
+#  - ATTRIBUTE: disable all tests using the __attribute__ extension,
+#  - COMPLEX_INT: disable all tests using the complex integral types extension,
+#  - VA: disable all tests using the variable number of arguments feature,
+#  - ZERO_ARRAY: disable all tests using the zero-sized arrays extension.
+# The default skip lists can be overriden by
+# COMPAT_SKIPS="[list {skip_1}...{skip_n}]"
+# where skip_i are skip identifiers.  You can put this in the environment
+# before site.exp is written or add it to site.exp directly.
+if ![info exists COMPAT_SKIPS] {
+    set COMPAT_SKIPS [list {}]
+}
+
+set skip_list $COMPAT_SKIPS
+
 load_lib dg.exp
 load_lib gcc-dg.exp
 
@@ -66,6 +81,14 @@
     global testcase
     global tool
     global compiler_conditional_xfail_data
+    global skip_list
+
+    # Add the skip specifiers.
+    foreach skip $skip_list {
+	if { ![string match $skip ""] } {
+	    lappend optall "-DSKIP_$skip"
+	}
+    }
 
     # Set up the options for compiling this file.
     set options ""

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