[PATCH] D24087: [lit] Allow more file extensions for test cases.
Logan Chien via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 31 09:16:51 PDT 2016
logan created this revision.
logan added reviewers: mclow.lists, EricWF.
logan added a subscriber: cfe-commits.
This commit splits the file extensions before determining the test
format. This allows libc++abi to add assembly-based test cases.
https://reviews.llvm.org/D24087
Files:
test/libcxx/test/format.py
Index: test/libcxx/test/format.py
===================================================================
--- test/libcxx/test/format.py
+++ test/libcxx/test/format.py
@@ -65,9 +65,10 @@
def _execute(self, test, lit_config):
name = test.path_in_suite[-1]
- is_sh_test = name.endswith('.sh.cpp')
- is_pass_test = name.endswith('.pass.cpp')
- is_fail_test = name.endswith('.fail.cpp')
+ name_root, name_ext = os.path.splitext(name)
+ is_sh_test = name_root.endswith('.sh')
+ is_pass_test = name_root.endswith('.pass')
+ is_fail_test = name_root.endswith('.fail')
if test.config.unsupported:
return (lit.Test.UNSUPPORTED,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24087.69868.patch
Type: text/x-patch
Size: 704 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160831/b0da83a9/attachment-0001.bin>
More information about the cfe-commits
mailing list