This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Compat testsuite improvement (part #2)
- From: Eric Botcazou <ebotcazou at libertysurf dot fr>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 20 Jan 2004 15:47:57 +0100
- Subject: [PATCH] Compat testsuite improvement (part #2)
Hi,
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 <ebotcazou@libertysurf.fr>
* 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 ""