This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Compat testsuite improvement (part #2)
- From: Eric Botcazou <ebotcazou at libertysurf dot fr>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 31 Jan 2004 14:42:25 +0100
- Subject: Re: [PATCH] Compat testsuite improvement (part #2)
- References: <200401201545.44179.ebotcazou@libertysurf.fr>
> 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 ""