diff options
author | Gaius Mulley <gaius.mulley@southwales.ac.uk> | 2022-11-23 17:07:34 +0000 |
---|---|---|
committer | Gaius Mulley <gaius.mulley@southwales.ac.uk> | 2022-11-23 17:07:34 +0000 |
commit | 55ca43c9f2bb67ca6b1051d0ca0d7d1bc53fc549 (patch) | |
tree | 62d53cd71e26b60e2a9969176800596d9877742e /gcc | |
parent | fd4db553742f7acad03ca0b99bb521e52d7ff56b (diff) | |
download | gcc-55ca43c9f2bb67ca6b1051d0ca0d7d1bc53fc549.zip gcc-55ca43c9f2bb67ca6b1051d0ca0d7d1bc53fc549.tar.gz gcc-55ca43c9f2bb67ca6b1051d0ca0d7d1bc53fc549.tar.bz2 |
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>
Diffstat (limited to 'gcc')
5 files changed, 55 insertions, 0 deletions
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 c00021c..a519f83 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 d04dbcb..c60027f 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 848ddee..3c654ad 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 8efbeb85..84a3f37 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 22cbf16..238e5c8 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 } |