From: Gaius Mulley Date: Wed, 23 Nov 2022 17:07:34 +0000 (+0000) Subject: Disable regression tests which depend upon plugins (if ENABLE_PLUGINs) is false. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55ca43c9f2bb67ca6b1051d0ca0d7d1bc53fc549;p=thirdparty%2Fgcc.git 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 --git a/gcc/testsuite/gm2/iso/check/fail/iso-check-fail.exp b/gcc/testsuite/gm2/iso/check/fail/iso-check-fail.exp index c00021ccfc64..a519f839f90a 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 d04dbcbe9738..c60027ff7516 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 848ddeea17c7..3c654ad0b73c 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 8efbeb850f67..84a3f37e2bbb 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 22cbf160946b..238e5c8af907 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 }