[libcxx-commits] [PATCH] D93971: Add freestanding parameter to libcxx lit
Ben Craig via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Jan 30 10:43:54 PST 2021
bcraig updated this revision to Diff 320314.
bcraig added a comment.
Removing the preprocessor defines, in order to divorce the tests from the library under test.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93971/new/
https://reviews.llvm.org/D93971
Files:
libcxx/utils/libcxx/test/params.py
Index: libcxx/utils/libcxx/test/params.py
===================================================================
--- libcxx/utils/libcxx/test/params.py
+++ libcxx/utils/libcxx/test/params.py
@@ -37,6 +37,19 @@
'-Wno-unused-local-typedef',
]
+_allFreestandingActions = [
+ AddFeature('libcpp-any-freestanding'),
+ AddFeature('libcpp-has-no-global-filesystem-namespace'),
+ AddFeature('libcpp-has-no-monotonic-clock'),
+ AddFeature('libcpp-has-no-stdin'),
+ AddFeature('libcpp-has-no-stdout'),
+ AddFeature('libcpp-has-no-thread-unsafe-c-functions'),
+ AddFeature('libcpp-has-no-threads'),
+ AddFeature('libcpp-no-vcruntime'),
+ AddFeature('libcpp-has-no-random-device'),
+ AddFeature('libcpp-has-no-localization'),
+]
+
DEFAULT_PARAMETERS = [
# Core parameters of the test suite
Parameter(name='std', choices=_allStandards, type=str,
@@ -110,4 +123,7 @@
actions=lambda enabled: [] if enabled else [
AddFeature('libcxx-no-debug-mode')
]),
+ Parameter(name='freestanding', choices=[True, False], type=bool, default=False,
+ help="Whether to disable tests only supported on hosted platforms.",
+ actions=lambda enabled: [] if not enabled else _allFreestandingActions),
]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93971.320314.patch
Type: text/x-patch
Size: 1252 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210130/7232bb2e/attachment.bin>
More information about the libcxx-commits
mailing list