[lit] Add --xfail-not/LIT_XFAIL_NOT
authorJoel E. Denny <jdenny.ornl@gmail.com>
Fri, 16 Jul 2021 23:13:34 +0000 (19:13 -0400)
committerJoel E. Denny <jdenny.ornl@gmail.com>
Fri, 16 Jul 2021 23:13:34 +0000 (19:13 -0400)
commitb8355b71260e762af4e125a2241817cffe40bf4e
treeef3276b4ef40e7711a2243e7a4e6d2c3f7b4d387
parent2bad8bd08924146b3c28513938cc9e7c325c620c
[lit] Add --xfail-not/LIT_XFAIL_NOT

For example, I need this lately in my CI config:

LIT_XFAIL_NOT='libomptarget :: nvptx64-nvidia-cuda :: unified_shared_memory/api.c'

That test specifies an XFAIL directive, but I get an XPASS result.

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D106022
llvm/docs/CommandGuide/lit.rst
llvm/utils/lit/lit/Test.py
llvm/utils/lit/lit/cl_arguments.py
llvm/utils/lit/lit/main.py
llvm/utils/lit/tests/Inputs/xfail-cl/a/test-xfail.txt [new file with mode: 0644]
llvm/utils/lit/tests/Inputs/xfail-cl/b/test-xfail.txt [new file with mode: 0644]
llvm/utils/lit/tests/Inputs/xfail-cl/true-xfail.txt [new file with mode: 0644]
llvm/utils/lit/tests/xfail-cl.py