public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/modula-2] Disable regression tests which depend upon plugins (if ENABLE_PLUGINs) is false.
@ 2022-11-23 17:09 Gaius Mulley
  0 siblings, 0 replies; only message in thread
From: Gaius Mulley @ 2022-11-23 17:09 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:55ca43c9f2bb67ca6b1051d0ca0d7d1bc53fc549

commit 55ca43c9f2bb67ca6b1051d0ca0d7d1bc53fc549
Author: Gaius Mulley <gaius.mulley@southwales.ac.uk>
Date:   Wed Nov 23 17:07:34 2022 +0000

    Disable regression tests which depend upon plugins (if ENABLE_PLUGINs) is false.
    
    gcc/testsuite/gm2/ChangeLog:
    
            * testsuite/gm2/iso/check/fail/iso-check-fail.exp: Disable test if
            plugins have not been built.
            * testsuite/gm2/switches/auto-init/fail/switches-auto-init-fail.exp:
            Disable test if plugins have not been built.
            * testsuite/gm2/switches/check-all/pim2/fail/switches-check-all-pim2-fail.exp:
            Disable test if plugins have not been built.
            * testsuite/gm2/switches/check-all/plugin/iso/fail/switches-check-all-plugin-iso-fail.exp:
            Disable test if plugins have not been built.
            * testsuite/gm2/switches/check-all/plugin/pim2/fail/switches-check-all-plugin-pim2-fail.exp:
            Disable test if plugins have not been built.
    
    Signed-off-by: Gaius Mulley <gaius.mulley@southwales.ac.uk>

Diff:
---
 gcc/testsuite/gm2/iso/check/fail/iso-check-fail.exp           | 11 +++++++++++
 .../gm2/switches/auto-init/fail/switches-auto-init-fail.exp   | 11 +++++++++++
 .../check-all/pim2/fail/switches-check-all-pim2-fail.exp      | 11 +++++++++++
 .../plugin/iso/fail/switches-check-all-plugin-iso-fail.exp    | 11 +++++++++++
 .../plugin/pim2/fail/switches-check-all-plugin-pim2-fail.exp  | 11 +++++++++++
 5 files changed, 55 insertions(+)

diff --git a/gcc/testsuite/gm2/iso/check/fail/iso-check-fail.exp b/gcc/testsuite/gm2/iso/check/fail/iso-check-fail.exp
index c00021ccfc6..a519f839f90 100644
--- a/gcc/testsuite/gm2/iso/check/fail/iso-check-fail.exp
+++ b/gcc/testsuite/gm2/iso/check/fail/iso-check-fail.exp
@@ -17,6 +17,17 @@
 # This file was written by Gaius Mulley (gaius.mulley@southwales.ac.uk)
 # for GNU Modula-2.
 
+load_lib target-supports.exp
+
+global TESTING_IN_BUILD_TREE
+global ENABLE_PLUGIN
+
+# The plugin testcases currently only work when the build tree is available.
+# Also check whether the host supports plugins.
+if { ![info exists TESTING_IN_BUILD_TREE] || ![info exists ENABLE_PLUGIN] } {
+    return
+}
+
 if $tracelevel then {
     strace $tracelevel
 }
diff --git a/gcc/testsuite/gm2/switches/auto-init/fail/switches-auto-init-fail.exp b/gcc/testsuite/gm2/switches/auto-init/fail/switches-auto-init-fail.exp
index d04dbcbe973..c60027ff751 100644
--- a/gcc/testsuite/gm2/switches/auto-init/fail/switches-auto-init-fail.exp
+++ b/gcc/testsuite/gm2/switches/auto-init/fail/switches-auto-init-fail.exp
@@ -18,6 +18,17 @@
 # This file was written by Gaius Mulley (gaius.mulley@southwales.ac.uk)
 # for GNU Modula-2.
 
+load_lib target-supports.exp
+
+global TESTING_IN_BUILD_TREE
+global ENABLE_PLUGIN
+
+# The plugin testcases currently only work when the build tree is available.
+# Also check whether the host supports plugins.
+if { ![info exists TESTING_IN_BUILD_TREE] || ![info exists ENABLE_PLUGIN] } {
+    return
+}
+
 if $tracelevel then {
     strace $tracelevel
 }
diff --git a/gcc/testsuite/gm2/switches/check-all/pim2/fail/switches-check-all-pim2-fail.exp b/gcc/testsuite/gm2/switches/check-all/pim2/fail/switches-check-all-pim2-fail.exp
index 848ddeea17c..3c654ad0b73 100644
--- a/gcc/testsuite/gm2/switches/check-all/pim2/fail/switches-check-all-pim2-fail.exp
+++ b/gcc/testsuite/gm2/switches/check-all/pim2/fail/switches-check-all-pim2-fail.exp
@@ -18,6 +18,17 @@
 # This file was written by Gaius Mulley (gaius.mulley@southwales.ac.uk)
 # for GNU Modula-2.
 
+load_lib target-supports.exp
+
+global TESTING_IN_BUILD_TREE
+global ENABLE_PLUGIN
+
+# The plugin testcases currently only work when the build tree is available.
+# Also check whether the host supports plugins.
+if { ![info exists TESTING_IN_BUILD_TREE] || ![info exists ENABLE_PLUGIN] } {
+    return
+}
+
 if $tracelevel then {
     strace $tracelevel
 }
diff --git a/gcc/testsuite/gm2/switches/check-all/plugin/iso/fail/switches-check-all-plugin-iso-fail.exp b/gcc/testsuite/gm2/switches/check-all/plugin/iso/fail/switches-check-all-plugin-iso-fail.exp
index 8efbeb850f6..84a3f37e2bb 100644
--- a/gcc/testsuite/gm2/switches/check-all/plugin/iso/fail/switches-check-all-plugin-iso-fail.exp
+++ b/gcc/testsuite/gm2/switches/check-all/plugin/iso/fail/switches-check-all-plugin-iso-fail.exp
@@ -18,6 +18,17 @@
 # This file was written by Gaius Mulley (gaius.mulley@southwales.ac.uk)
 # for GNU Modula-2.
 
+load_lib target-supports.exp
+
+global TESTING_IN_BUILD_TREE
+global ENABLE_PLUGIN
+
+# The plugin testcases currently only work when the build tree is available.
+# Also check whether the host supports plugins.
+if { ![info exists TESTING_IN_BUILD_TREE] || ![info exists ENABLE_PLUGIN] } {
+    return
+}
+
 if $tracelevel then {
     strace $tracelevel
 }
diff --git a/gcc/testsuite/gm2/switches/check-all/plugin/pim2/fail/switches-check-all-plugin-pim2-fail.exp b/gcc/testsuite/gm2/switches/check-all/plugin/pim2/fail/switches-check-all-plugin-pim2-fail.exp
index 22cbf160946..238e5c8af90 100644
--- a/gcc/testsuite/gm2/switches/check-all/plugin/pim2/fail/switches-check-all-plugin-pim2-fail.exp
+++ b/gcc/testsuite/gm2/switches/check-all/plugin/pim2/fail/switches-check-all-plugin-pim2-fail.exp
@@ -18,6 +18,17 @@
 # This file was written by Gaius Mulley (gaius.mulley@southwales.ac.uk)
 # for GNU Modula-2.
 
+load_lib target-supports.exp
+
+global TESTING_IN_BUILD_TREE
+global ENABLE_PLUGIN
+
+# The plugin testcases currently only work when the build tree is available.
+# Also check whether the host supports plugins.
+if { ![info exists TESTING_IN_BUILD_TREE] || ![info exists ENABLE_PLUGIN] } {
+    return
+}
+
 if $tracelevel then {
     strace $tracelevel
 }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-11-23 17:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-23 17:09 [gcc/devel/modula-2] Disable regression tests which depend upon plugins (if ENABLE_PLUGINs) is false Gaius Mulley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).