This commit splits the file extensions before determining the test
format. This allows libc++abi to add assembly-based test cases.
Details
- Reviewers
mclow.lists EricWF
Diff Detail
Event Timeline
I don't think assembly based .pass and .fail tests will work quite yet. The CXXCompiler object used by the test format explicitly passes -xc++ %s in some cases.
I'm assuming you already have a libc++abi assembly test? Could you put it up for review?
Woops I see the test case now. LGTM.
test/libcxx/test/format.py | ||
---|---|---|
69 | Since we only support .sh.XXX tests let's only loosen the restriction there for now. |
test/libcxx/test/format.py | ||
---|---|---|
69 | Do you mean that it is preferred to revert following two lines back? For example: is_sh_test = name_root.endswith('.sh') is_pass_test = name.endswith('.pass.cpp') is_fail_test = name.endswith('.fail.cpp') assert is_sh_test or name_ext == '.cpp' |
test/libcxx/test/format.py | ||
---|---|---|
69 | Yeah. Leave a FIXME about CXXCompiler not supporting assembly if you want. |
Thanks for reviewing. Committed as rL283118 with the suggested change regarding to is_sh_test assertion.
Since we only support .sh.XXX tests let's only loosen the restriction there for now.