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,
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,
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits