This is the mail archive of the 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] 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.

Same testing as part #1.

OK for mainline?

2004-01-20  Eric Botcazou  <>

	* lib/compat.exp (skip_list): New global variable.
	Use it to hold the user defined COMPAT_SKIPS list if any.
	(compat-obj): Add the members of skip_list to optall.

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	20 Jan 2004 13:09:02 -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,12 @@
     global testcase
     global tool
     global compiler_conditional_xfail_data
+    global skip_list
+    # Add the skip specifiers.
+    foreach skip $skip_list {
+        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]