<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/61756>61756</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Add a new libc rule add_libc_test
</td>
</tr>
<tr>
<th>Labels</th>
<td>
test-suite,
libc
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
sivachandra
</td>
</tr>
</table>
<pre>
This is required to address #61751. See https://discourse.llvm.org/t/rfc-running-libc-unit-tests-as-integration-tests/69461 for more information.
The new rule should add an test target of the kind `libc.test.src.string.strlen_test`. This target by itself does not run any tests but depends on `libc.src.string.strlen_test.__unit__` and `libc.src.string.strlen_test.__hermetic__`. The `*.__unit__` target runs the test as a unit test whereas the `*.__hermetic__` target runs the test as a hermetic tests.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8ksGO2yAQhp8GX0a2bOzg-OBD2lVeoHuPMExsWgLbGdjVvn2Fs426UtuL0cDMz8_vTzO7NSDO4vBFHJ4qndMWaWb3qs2mgyVdLdG-z8-bY3AMhD-zI7SQImhrCZlByF5146Fr4BsibCm9sOhPQp6FPFvHJmZibLx_vTWRViHPScgzXU1NOQQX1tq7xdQ5uFQn5MS15tqFhCvp5GK4bwp5VtOgOrhGglskBBeukW57SyPaJ9Ge7t_nDSHgG1D2CLzF7G2xCjpAUYKkacUE8QppQ_jhggWh2uKhKecNk2k4kQtrWTyGS9kWqm1gT-FjfnkHlxj9FWxEhhATUA6gw_t-DcOSE1h8wWAZYnjc8Xf55nIpAVwuQrWg_7D0z_YN6YbJmX2kWMMyI-Tpk9SHWcqB9-fuCWgGDaXnXr5tSKjv5w-JT_L_kfndd390U9m5t1M_6QrnTo3TdDwOaqy2GXE0CtXUHe00Hg5S9sNiOnu0ZjSt1bpys2xl3_by2I5yHMYGh67rjlOrzHWZ1NKLocWbdv5BUuWYM86FPVV5vaDnHWMpi5eas0sopBTyq5CyhFmKw1NFc1Gol7yyGFrviu-HZnLJ43wqvOwUlbk7StraS6n2H1Bl8vNn1FeXtrw0Jt6EPBe9j6V-ofgdTYF-N7yjXDz_CgAA__-3Syw9">