This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] plugin directory / common location for plugins
- From: Matthias Klose <doko at ubuntu dot com>
- To: Steve Ellcey <sje at cup dot hp dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 28 Apr 2010 17:48:27 +0200
- Subject: Re: [patch] plugin directory / common location for plugins
- References: <201004141758.o3EHw6M29771@lucas.cup.hp.com>
On 14.04.2010 19:58, Steve Ellcey wrote:
gcc/testsuite/
2010-04-07 Matthias Klose<doko@ubuntu.com>
* gcc.dg/plugindir1.c: New testcase.
* gcc.dg/plugindir2.c: New testcase.
* gcc.dg/plugindir3.c: New testcase.
* gcc.dg/plugindir4.c: New testcase.
Matthias,
These tests are failing for me on a platform that does not support
plugins. Since we support --disable-plugins as a configure option there
should be some way to not run these tests if plugins are not supported
(dg-require-plugins?). Or perhaps they should be moved to the
gcc.dg/plugin directory as those tests already seem to get skipped when
plugins are not supported.
Moved the four tests to the plugin directory, and appended gcc.dg to plugin.dg
(is this ok?).
Matthias
PS: Left out the moved files in the diff.
gcc/testsuite/
2010-04-28 Matthias Klose <doko@ubuntu.com>
* gcc.dg/plugin/plugin.exp: Run the plugindir tests.
* gcc.dg/plugindir1.c: Move to gcc.dg/plugin/plugindir1.c.
* gcc.dg/plugindir2.c: Move to gcc.dg/plugin/plugindir2.c.
* gcc.dg/plugindir3.c: Move to gcc.dg/plugin/plugindir3.c.
* gcc.dg/plugindir4.c: Move to gcc.dg/plugin/plugindir4.c.
Index: gcc/testsuite/gcc.dg/plugin/plugin.exp
===================================================================
--- gcc/testsuite/gcc.dg/plugin/plugin.exp (revision 158826)
+++ gcc/testsuite/gcc.dg/plugin/plugin.exp (working copy)
@@ -68,3 +68,15 @@
set plugin_input_tests [lreplace $plugin_test 0 0]
plugin-test-execute $plugin_src $plugin_input_tests
}
+
+# run the plugindir tests
+
+# Initialize `dg'.
+dg-init
+
+# Main loop.
+dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/plugindir*.\[cSi\]]] \
+ "" $DEFAULT_CFLAGS
+
+# All done.
+dg-finish