[PATCH] D77986: [lit] Move llvm-test-suite result codes into llvm/lit

Johannes Doerfert via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 12 18:10:26 PDT 2020


jdoerfert created this revision.
jdoerfert added reviewers: arichardson, cmatthews.
Herald added subscribers: delcypher, bollu.
Herald added a project: LLVM.

Without this `lnt runtest test-suite` instructed to use lit will fail
if tests result in the SKIPPED or NOEXE result codes. A patch to the
llvm-test-suite will remove the definitions there (from
litsupport/test.py) and reuse these ones instead.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D77986

Files:
  llvm/utils/lit/lit/Test.py
  llvm/utils/lit/lit/main.py


Index: llvm/utils/lit/lit/main.py
===================================================================
--- llvm/utils/lit/lit/main.py
+++ llvm/utils/lit/lit/main.py
@@ -252,7 +252,8 @@
     (lit.Test.UNRESOLVED,  'Unresolved Tests',    'Unresolved'),
     (lit.Test.TIMEOUT,     'Individual Timeouts', 'Timed Out'),
     (lit.Test.FAIL,        'Unexpected Failures', 'Failing'),
-    (lit.Test.XPASS,       'Unexpected Passes',   'Unexpected Passing')
+    (lit.Test.XPASS,       'Unexpected Passes',   'Unexpected Passing'),
+    (lit.Test.NOEXE,       'No Executable',       'No Executable'),
 ]
 
 all_codes = [
@@ -260,6 +261,7 @@
     (lit.Test.PASS,        'Expected Passes',   ''),
     (lit.Test.FLAKYPASS,   'Passes With Retry', ''),
     (lit.Test.XFAIL,       'Expected Failures', 'Expected Failing'),
+    (lit.Test.SKIPPED,     'Skipped',           'Skipped'),
 ] + failure_codes
 
 
Index: llvm/utils/lit/lit/Test.py
===================================================================
--- llvm/utils/lit/lit/Test.py
+++ llvm/utils/lit/lit/Test.py
@@ -36,6 +36,9 @@
 UNRESOLVED  = ResultCode('UNRESOLVED', True)
 UNSUPPORTED = ResultCode('UNSUPPORTED', False)
 TIMEOUT     = ResultCode('TIMEOUT', True)
+SKIPPED     = ResultCode('SKIPPED', False)
+NOEXE       = ResultCode('NOEXE', True)
+
 
 # Test metric values.
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77986.256898.patch
Type: text/x-patch
Size: 1329 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200413/96f60c96/attachment.bin>


More information about the llvm-commits mailing list