From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1499) id 8F10D385221D; Wed, 23 Nov 2022 17:09:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8F10D385221D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669223374; bh=G/Vy02eP6ViGP+L04hIN4xIhYVa/kwHSnysSaXRx8dU=; h=From:To:Subject:Date:From; b=B0ezx0WRFyfxpQCCMGsP1xvKe0sZSB7JiDQtdOWJLFMO60jI2W1qur2dzH5MSCXjy H4AHmpCFGO3Em6sYuqTqi1Y6R1lXuIc5QZqc3hVQfFqYw+YgdbSSIxAwPqk8ixsrfI o9Ps32yFFmRIRYagS8Cx9hsdf2OUh+OX6n849+Mw= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Gaius Mulley To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/modula-2] Disable regression tests which depend upon plugins (if ENABLE_PLUGINs) is false. X-Act-Checkin: gcc X-Git-Author: Gaius Mulley X-Git-Refname: refs/heads/devel/modula-2 X-Git-Oldrev: fd4db553742f7acad03ca0b99bb521e52d7ff56b X-Git-Newrev: 55ca43c9f2bb67ca6b1051d0ca0d7d1bc53fc549 Message-Id: <20221123170934.8F10D385221D@sourceware.org> Date: Wed, 23 Nov 2022 17:09:34 +0000 (GMT) List-Id: https://gcc.gnu.org/g:55ca43c9f2bb67ca6b1051d0ca0d7d1bc53fc549 commit 55ca43c9f2bb67ca6b1051d0ca0d7d1bc53fc549 Author: Gaius Mulley 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 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 }