<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/102699>102699</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang][llvm-lit] Enable internal shell for clang test suite
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Harini0924
</td>
</tr>
</table>
<pre>
Testing in lit is currently inconsistent across different platforms, as many RUN line commands are written in a way that only works on POSIX-compliant shells. Lit has an internal shell implementation to ensure uniform execution of these commands that can be used regardless of platform. We should aim to turn on the internal shell for the clang test suite to eliminate reliance on external shells.
The internal shell has missing capabilities that need to be addressed before doing so. Here is a list of the issues that block us from turning on the internal shell for clang.
- [ ] [environment variable](https://github.com/llvm/llvm-project/issues/102395)
- [ ] [command substitution](https://github.com/llvm/llvm-project/issues/102384)
- [ ] [Unhashable Type](https://github.com/llvm/llvm-project/issues/102389)
- [ ] [Expected string not found in input](https://github.com/llvm/llvm-project/issues/102695)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysVMFu5DYM_Rr5QmTgle2Z8cGHTWcHW6BoizaL9ipL9JhdWTJEKsn8fSEnQYM2OTUXCzBFvvf4KBpmugTEQXW3qjtVJssc0_DVJApU97qtxuiuwx2yULgABfAkQAw2p4RB_BUo2BiYWDAIGJsiMziaJixxWL2RKaaFlf4BDMNiwhV--_YzeAoINi6LCY7BJISHRCIYCoiBB3MFmY1ADP4KDzF9Z4gBfv3l9x__vLFxWT2ZIMAzes87-IkEZsNgSrpgCsY_xYCW1eOCQYxQDCARMHBOCDlQIQb4iDZvsTiBzMivaG0MrAkwImRGBwkvJjmPzOX2i7gd_IHAc8zegaGlgEhOoRCWGf_NaIpp-229CRcQZAHOJLhx87RQMIKQsCi0WIrg4-sCvANVn1T9-el791-E0omFmItl1qxmJE9C-KwnILqCNSIY5xJyETbiFBOCiyWH4w6-YsJitAFPLM-9AWLOL3VGH-13yAxTissmuOS-r3nTu3tN_QZUdwuqO5UTwz2lGIpVcG8SmdGj6k5KH2eRlVXzWemz0ucLyZzHnY2L0mfv71-OmzXFv9CK0ucnlkqfP9W66Tule3gD8Nll4DyykGwz8BGAx1bp_g28b2E2PBdZcHddP0TbsX9H25fHFa2gA5ZUXAlRYIo5uPK6KKxZPgB-v7W2ckPj-qY3FQ6fDrrRbdscDtU8dK7uHe7todFj2_Wjsft6bDs3NZ2duravaNC1butj3Wvd9c1hZ4_tuLdYH2xbH7vDXrU1Lob8rpDYxXSpNvhhw-4rb0b0vK0urbfpUlqXLZaGjfWYL6zauswv_1NCSPy2754yupPqbrfrnkpT4EvYLHpvgF892ConP_zPDvbV_aD_DgAA__92aNf1">