brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · fc23985 Raw
39 lines · python
1# ===----------------------------------------------------------------------===##2#3# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4# See https://llvm.org/LICENSE.txt for license information.5# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6#7# ===----------------------------------------------------------------------===##8 9# Test that all named declarations with external linkage match the10# exported declarations in their associated module partition.11# Then it tests the sum of the exported declarations in the module12# partitions matches the export of the std module.13 14# Note the test of the std module requires all partitions to be tested15# first. Since lit tests have no dependencies, this means the test needs16# to be one monolitic test. Since the test doesn't take very long it's17# not a huge issue.18 19# RUN: %{python} %s %{libcxx-dir}/utils20 21import sys22 23sys.path.append(sys.argv[1])24from libcxx.test.modules import module_test_generator25 26generator = module_test_generator(27    "%t",28    "%{module-dir}",29    "%{clang-tidy}",30    "%{test-tools-dir}/clang_tidy_checks/libcxx-tidy.plugin",31    "%{cxx}",32    "%{flags} %{compile_flags}",33    "std",34)35 36 37print("//--- module_std.sh.cpp")38generator.write_test("std")39