
These cause test build failures on Windows. This reverts the following commits: 57ca74843586c9a93c425036c5538aae0a2cfa60 d06ae33ec32122bb526fb35025c1f0cf979f1090
63 lines
1.6 KiB
Python
63 lines
1.6 KiB
Python
# ===----------------------------------------------------------------------===##
|
|
#
|
|
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
# See https://llvm.org/LICENSE.txt for license information.
|
|
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
#
|
|
# ===----------------------------------------------------------------------===##
|
|
|
|
# Test that all named declarations with external linkage match the
|
|
# exported declarations in their associated module partition.
|
|
# Then it tests the sum of the exported declarations in the module
|
|
# partitions matches the export of the std.compat module.
|
|
|
|
# Note the test of the std.compat module requires all partitions to be tested
|
|
# first. Since lit tests have no dependencies, this means the test needs
|
|
# to be one monolitic test. Since the test doesn't take very long it's
|
|
# not a huge issue.
|
|
|
|
# RUN: %{python} %s %{libcxx}/utils
|
|
|
|
import sys
|
|
|
|
sys.path.append(sys.argv[1])
|
|
from libcxx.test.modules import module_test_generator
|
|
|
|
generator = module_test_generator(
|
|
"%t",
|
|
"%{module}",
|
|
"%{clang-tidy}",
|
|
"%{test-tools}/clang_tidy_checks/libcxx-tidy.plugin",
|
|
"%{cxx}",
|
|
"%{flags} %{compile_flags}",
|
|
)
|
|
|
|
|
|
print("//--- module_std_compat.sh.cpp")
|
|
generator.write_test(
|
|
"std.compat",
|
|
[
|
|
"cassert",
|
|
"cctype",
|
|
"cerrno",
|
|
"cfenv",
|
|
"cfloat",
|
|
"cinttypes",
|
|
"climits",
|
|
"clocale",
|
|
"cmath",
|
|
"csetjmp",
|
|
"csignal",
|
|
"cstdarg",
|
|
"cstddef",
|
|
"cstdint",
|
|
"cstdio",
|
|
"cstdlib",
|
|
"cstring",
|
|
"ctime",
|
|
"cuchar",
|
|
"cwchar",
|
|
"cwctype",
|
|
],
|
|
)
|