diff options
| author | Greg Parker <gparker@apple.com> | 2017-01-25 02:26:03 +0000 |
|---|---|---|
| committer | Greg Parker <gparker@apple.com> | 2017-01-25 02:26:03 +0000 |
| commit | 17db7704cd10243be74cec3512a9ccf734631297 (patch) | |
| tree | 85847c3c1c4c40cb1d90318f56643caabafc6227 /llvm/utils/lit/tests/Inputs/shtest-format | |
| parent | df3d71a7a9b4976c1aecf9eaf40c9ada55bf7879 (diff) | |
| download | bcm5719-llvm-17db7704cd10243be74cec3512a9ccf734631297.tar.gz bcm5719-llvm-17db7704cd10243be74cec3512a9ccf734631297.zip | |
Reinstate "r292904 - [lit] Allow boolean expressions in REQUIRES and XFAIL
and UNSUPPORTED"
This reverts the revert in r292942.
llvm-svn: 293007
Diffstat (limited to 'llvm/utils/lit/tests/Inputs/shtest-format')
9 files changed, 37 insertions, 3 deletions
diff --git a/llvm/utils/lit/tests/Inputs/shtest-format/requires-missing.txt b/llvm/utils/lit/tests/Inputs/shtest-format/requires-missing.txt index 9e6648d8b8f..d643e57edca 100644 --- a/llvm/utils/lit/tests/Inputs/shtest-format/requires-missing.txt +++ b/llvm/utils/lit/tests/Inputs/shtest-format/requires-missing.txt @@ -1,2 +1,5 @@ -RUN: true -REQUIRES: a-missing-feature +# REQUIRES with a false clause. Test should not run. +REQUIRES: true +REQUIRES: a-missing-feature, true +REQUIRES: true +RUN: false diff --git a/llvm/utils/lit/tests/Inputs/shtest-format/requires-present.txt b/llvm/utils/lit/tests/Inputs/shtest-format/requires-present.txt index 064f7074a76..9fcbdca69be 100644 --- a/llvm/utils/lit/tests/Inputs/shtest-format/requires-present.txt +++ b/llvm/utils/lit/tests/Inputs/shtest-format/requires-present.txt @@ -1,2 +1,4 @@ +# REQUIRES with only true clauses. Test should run. +REQUIRES: a-present-feature, true, !not-true +REQUIRES: true RUN: true -REQUIRES: a-present-feature diff --git a/llvm/utils/lit/tests/Inputs/shtest-format/requires-star.txt b/llvm/utils/lit/tests/Inputs/shtest-format/requires-star.txt new file mode 100644 index 00000000000..5566d8b15b0 --- /dev/null +++ b/llvm/utils/lit/tests/Inputs/shtest-format/requires-star.txt @@ -0,0 +1,3 @@ +# '*' only works in XFAIL +REQUIRES: * +RUN: false diff --git a/llvm/utils/lit/tests/Inputs/shtest-format/requires-triple.txt b/llvm/utils/lit/tests/Inputs/shtest-format/requires-triple.txt new file mode 100644 index 00000000000..6470bf40414 --- /dev/null +++ b/llvm/utils/lit/tests/Inputs/shtest-format/requires-triple.txt @@ -0,0 +1,3 @@ +# REQUIRES line that uses target triple, which doesn't work. Test should not run +REQUIRES: x86_64 +RUN: false diff --git a/llvm/utils/lit/tests/Inputs/shtest-format/unsupported-expr-false.txt b/llvm/utils/lit/tests/Inputs/shtest-format/unsupported-expr-false.txt new file mode 100644 index 00000000000..00c6160a367 --- /dev/null +++ b/llvm/utils/lit/tests/Inputs/shtest-format/unsupported-expr-false.txt @@ -0,0 +1,9 @@ +# UNSUPPORTED with only false clauses. Test should run. +UNSUPPORTED: false +UNSUPPORTED: false, not-true +UNSUPPORTED: false +UNSUPPORTED: still-not-true +UNSUPPORTED: false +UNSUPPORTED: false +UNSUPPORTED: false +RUN: true diff --git a/llvm/utils/lit/tests/Inputs/shtest-format/unsupported-expr-true.txt b/llvm/utils/lit/tests/Inputs/shtest-format/unsupported-expr-true.txt new file mode 100644 index 00000000000..f48ba7b2c2d --- /dev/null +++ b/llvm/utils/lit/tests/Inputs/shtest-format/unsupported-expr-true.txt @@ -0,0 +1,4 @@ +# UNSUPPORTED with a true clause. Test should not run. +UNSUPPORTED: false +UNSUPPORTED: false, false, false, _64-unk && a-present-feature, false +RUN: false diff --git a/llvm/utils/lit/tests/Inputs/shtest-format/unsupported-star.txt b/llvm/utils/lit/tests/Inputs/shtest-format/unsupported-star.txt new file mode 100644 index 00000000000..16630207dac --- /dev/null +++ b/llvm/utils/lit/tests/Inputs/shtest-format/unsupported-star.txt @@ -0,0 +1,3 @@ +# '*' only works in XFAIL +UNSUPPORTED: * +RUN: false diff --git a/llvm/utils/lit/tests/Inputs/shtest-format/xfail-expr-false.txt b/llvm/utils/lit/tests/Inputs/shtest-format/xfail-expr-false.txt new file mode 100644 index 00000000000..83b0de1621d --- /dev/null +++ b/llvm/utils/lit/tests/Inputs/shtest-format/xfail-expr-false.txt @@ -0,0 +1,3 @@ +# XFAIL with only false clauses. Test should run. +XFAIL: false, a-missing-feature || ! a-present-feature || ! x86_64, false +RUN: true diff --git a/llvm/utils/lit/tests/Inputs/shtest-format/xfail-expr-true.txt b/llvm/utils/lit/tests/Inputs/shtest-format/xfail-expr-true.txt new file mode 100644 index 00000000000..3c197484897 --- /dev/null +++ b/llvm/utils/lit/tests/Inputs/shtest-format/xfail-expr-true.txt @@ -0,0 +1,4 @@ +# XFAIL with a true clause. Test should not run. +XFAIL: false +XFAIL: false, a-present-feature && ! a-missing-feature && x86_64 +RUN: false |

