Siva Chandra Reddy
1e8960c7a5
[libc] Add rule named add_libc_hermetic_test which adds a hermetic test.
...
A convenience wrapper name `add_libc_test` is also added which adds both
a unit test and a hermetic test. The ctype tests have been switched over
to use add_libc_test.
Reviewed By: jhuber6
Differential Revision: https://reviews.llvm.org/D148756
2023-04-24 22:43:59 +00:00
Siva Chandra Reddy
e3645eadb8
[libc][NFC] Move ExecuteFunction test util to test/UnitTest.
...
Reviewed By: lntue
Differential Revision: https://reviews.llvm.org/D148611
2023-04-18 16:17:42 +00:00
Siva Chandra Reddy
dcf296b541
[libc][NFC] Remove the StreamWrapper class and use the new test logger.
...
Reviewed By: lntue
Differential Revision: https://reviews.llvm.org/D148452
2023-04-17 15:48:18 +00:00
Guillaume Chatelet
f5dcab0d89
[re-reland][libc] Adds string and TestLogger classes, use them in LibcTest
...
This is an implementation of https://discourse.llvm.org/t/rfc-running-libc-unit-tests-as-integration-tests/69461 .
Differential Revision: https://reviews.llvm.org/D147231
2023-04-03 13:10:30 +00:00
Guillaume Chatelet
5a55dfb80c
Revert D147231 "[reland][libc] Adds string and TestLogger classes, use them in LibcTest"
...
Build bot detected a memory leak.
This reverts commit b82d04ea4b4f26037be369f101ae7011975df486.
2023-04-03 07:47:15 +00:00
Guillaume Chatelet
b82d04ea4b
[reland][libc] Adds string and TestLogger classes, use them in LibcTest
...
This is an implementation of https://discourse.llvm.org/t/rfc-running-libc-unit-tests-as-integration-tests/69461 .
Differential Revision: https://reviews.llvm.org/D147231
2023-04-03 07:35:37 +00:00
Guillaume Chatelet
ebb41f7e3d
Revert D147231 "[libc] Adds string and TestLogger classes, use them in LibcTest"
...
Does not build with gcc.
This reverts commit fc5ae0a7a45bdb5251f3dad3fc07047f987ca447.
2023-04-02 16:02:00 +00:00
Guillaume Chatelet
fc5ae0a7a4
[libc] Adds string and TestLogger classes, use them in LibcTest
...
This is an implementation of https://discourse.llvm.org/t/rfc-running-libc-unit-tests-as-integration-tests/69461 .
Differential Revision: https://reviews.llvm.org/D147231
2023-04-02 15:33:23 +00:00
Siva Chandra Reddy
af1315c28f
[libc][NFC] Move UnitTest and IntegrationTest to the 'test' directory.
...
This part of the effort to make all test related pieces into the `test`
directory. This helps is excluding test related pieces in a straight
forward manner if LLVM_INCLUDE_TESTS is OFF. Future patches will also move
the MPFR wrapper and testutils into the 'test' directory.
2023-02-07 19:45:51 +00:00