diff options
author | janis <janis@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-05 19:06:11 +0000 |
---|---|---|
committer | janis <janis@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-05 19:06:11 +0000 |
commit | 61f2cdacfd517d6297b7287eae93573680f6035b (patch) | |
tree | 571b65b09f05606180281f7736da5f185e5507ce /gcc/testsuite/gcc.test-framework | |
parent | 1453965473da288089842f82ca42c9430b4ca0c8 (diff) | |
download | gcc-61f2cdacfd517d6297b7287eae93573680f6035b.tar.gz |
PR testsuite/25247
* lib/target-supports-dg.exp (dg-skip-if): Fix target selector for
use in selector expressions.
(dg-xfail-if): Ditto.
* gcc.test-framework/dg-dot-run-sif-exp-P.c: New test.
* gcc.test-framework/dg-dot-run-sif-exp-U.c: New test.
* gcc.test-framework/dg-dot-run-xif-exp-P.c: New test.
* gcc.test-framework/dg-dot-run-xif-exp-XP.c: New test.
* gcc.test-framework/test-framework.exp: Skip generated tests if
CHECK_TEST_FRAMEWORK is not 1.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108069 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.test-framework')
5 files changed, 38 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.test-framework/dg-dot-run-sif-exp-P.c b/gcc/testsuite/gcc.test-framework/dg-dot-run-sif-exp-P.c new file mode 100644 index 00000000000..bf473616abb --- /dev/null +++ b/gcc/testsuite/gcc.test-framework/dg-dot-run-sif-exp-P.c @@ -0,0 +1,8 @@ +/* { dg-do run { target { *-*-* && yes } } } */ +/* { dg-skip-if "comment" { no && yes } { "*" } { "" } } */ + +int +main () +{ + return 0; +} diff --git a/gcc/testsuite/gcc.test-framework/dg-dot-run-sif-exp-U.c b/gcc/testsuite/gcc.test-framework/dg-dot-run-sif-exp-U.c new file mode 100644 index 00000000000..65008c8ab28 --- /dev/null +++ b/gcc/testsuite/gcc.test-framework/dg-dot-run-sif-exp-U.c @@ -0,0 +1,8 @@ +/* { dg-do run { target { *-*-* || no } } } */ +/* { dg-skip-if "comment" { *-*-* && yes } { "*" } { "" } } */ + +int +main () +{ + return 0; +} diff --git a/gcc/testsuite/gcc.test-framework/dg-dot-run-xif-exp-P.c b/gcc/testsuite/gcc.test-framework/dg-dot-run-xif-exp-P.c new file mode 100644 index 00000000000..eb2af26081f --- /dev/null +++ b/gcc/testsuite/gcc.test-framework/dg-dot-run-xif-exp-P.c @@ -0,0 +1,8 @@ +/* { dg-do run { target { *-*-* && yes } } } */ +/* { dg-xfail-if "comment" { empty-*-* && yes } { "*" } { "" } } */ + +int +main () +{ + return 0; +} diff --git a/gcc/testsuite/gcc.test-framework/dg-dot-run-xif-exp-XP.c b/gcc/testsuite/gcc.test-framework/dg-dot-run-xif-exp-XP.c new file mode 100644 index 00000000000..59cb7689401 --- /dev/null +++ b/gcc/testsuite/gcc.test-framework/dg-dot-run-xif-exp-XP.c @@ -0,0 +1,8 @@ +/* { dg-do compile { target { *-*-* empty-*-* } } } */ +/* { dg-xfail-if "comment" { *-*-* && yes } { "*" } { "" } } */ + +int +main () +{ + return 0; +} diff --git a/gcc/testsuite/gcc.test-framework/test-framework.exp b/gcc/testsuite/gcc.test-framework/test-framework.exp index 2e4236a584b..495ffe2cb99 100644 --- a/gcc/testsuite/gcc.test-framework/test-framework.exp +++ b/gcc/testsuite/gcc.test-framework/test-framework.exp @@ -51,6 +51,12 @@ dg-init # Run tests from the source directory. dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/dg-*.c]] "" "" +# Skip generated tests unless CHECK_TEST_FRAMEWORK is 1. +if { $env(CHECK_TEST_FRAMEWORK) != 1 } { + verbose "skipping generated test framework tests, CHECK_TEST_FRAMEWORK is not 1" 0 + return +} + # Generate additional tests. set tstobjdir "$tmpdir/gcc.test-framework" set generator "$srcdir/$subdir/gen_directive_tests" |