From: Justin Bogner Date: Mon, 23 Jul 2018 18:08:36 +0000 (+0000) Subject: [lit] Move the shtest-xunit-output check lines into shtest-format X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7550101af9bd6d974584533673ef469bc8ca3296;p=llvm [lit] Move the shtest-xunit-output check lines into shtest-format These two tests are operating on the same test suite, which causes them to be racy about writing temporary files and can cause spurious failures. Merge them into one test to avoid the issue. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337718 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/lit/tests/shtest-format.py b/utils/lit/tests/shtest-format.py index 33ed2fe44d6..8c318697195 100644 --- a/utils/lit/tests/shtest-format.py +++ b/utils/lit/tests/shtest-format.py @@ -1,8 +1,10 @@ # Check the various features of the ShTest format. # -# RUN: not %{lit} -j 1 -v %{inputs}/shtest-format > %t.out +# RUN: rm -f %t.xml +# RUN: not %{lit} -j 1 -v %{inputs}/shtest-format --xunit-xml-output %t.xml > %t.out # RUN: FileCheck < %t.out %s -# +# RUN: FileCheck --check-prefix=XUNIT < %t.xml %s + # END. # CHECK: -- Testing: @@ -84,3 +86,85 @@ # CHECK: Unresolved Tests : 3 # CHECK: Unexpected Passes : 1 # CHECK: Unexpected Failures: 3 + + +# XUNIT: +# XUNIT-NEXT: +# XUNIT-NEXT: + +# XUNIT: + +# XUNIT: +# XUNIT-NEXT: +# XUNIT: +# XUNIT-NEXT: + + +# XUNIT: +# XUNIT-NEXT: +# XUNIT: +# XUNIT-NEXT: + +# XUNIT: + +# XUNIT: +# XUNIT-NEXT: +# XUNIT: +# XUNIT-NEXT: + +# XUNIT: +# XUNIT-NEXT: +# XUNIT: +# XUNIT-NEXT: + +# XUNIT: + +# XUNIT: +# XUNIT-NEXT: + +# XUNIT: + +# XUNIT: +# XUNIT-NEXT: + +# XUNIT: + +# XUNIT: +# XUNIT-NEXT: +# XUNIT: +# XUNIT-NEXT: + + +# XUNIT: +# XUNIT-NEXT: + +# XUNIT: + +# XUNIT: +# XUNIT-NEXT: + +# XUNIT: +# XUNIT-NEXT: +# XUNIT: +# XUNIT-NEXT: + +# XUNIT: +# XUNIT-NEXT: + +# XUNIT: + +# XUNIT: + +# XUNIT: + +# XUNIT: + +# XUNIT: + +# XUNIT: +# XUNIT-NEXT: +# XUNIT: +# XUNIT-NEXT: + +# XUNIT: +# XUNIT-NEXT: diff --git a/utils/lit/tests/shtest-xunit-output.py b/utils/lit/tests/shtest-xunit-output.py deleted file mode 100644 index c724cfa128d..00000000000 --- a/utils/lit/tests/shtest-xunit-output.py +++ /dev/null @@ -1,84 +0,0 @@ -# RUN: rm -f %t.xml -# RUN: not %{lit} -j 1 -v %{inputs}/shtest-format --xunit-xml-output %t.xml -# RUN: FileCheck < %t.xml %s - -# CHECK: -# CHECK-NEXT: -# CHECK-NEXT: - -# CHECK: - -# CHECK: -# CHECK-NEXT: -# CHECK: -# CHECK-NEXT: - - -# CHECK: -# CHECK-NEXT: -# CHECK: -# CHECK-NEXT: - -# CHECK: - -# CHECK: -# CHECK-NEXT: -# CHECK: -# CHECK-NEXT: - -# CHECK: -# CHECK-NEXT: -# CHECK: -# CHECK-NEXT: - -# CHECK: - -# CHECK: -# CHECK-NEXT: - -# CHECK: - -# CHECK: -# CHECK-NEXT: - -# CHECK: - -# CHECK: -# CHECK-NEXT: -# CHECK: -# CHECK-NEXT: - - -# CHECK: -# CHECK-NEXT: - -# CHECK: - -# CHECK: -# CHECK-NEXT: - -# CHECK: -# CHECK-NEXT: -# CHECK: -# CHECK-NEXT: - -# CHECK: -# CHECK-NEXT: - -# CHECK: - -# CHECK: - -# CHECK: - -# CHECK: - -# CHECK: - -# CHECK: -# CHECK-NEXT: -# CHECK: -# CHECK-NEXT: - -# CHECK: -# CHECK-NEXT: