[all-commits] [llvm/llvm-project] 196ced: [libc++][modules] Adds module testing.

Mark de Wever via All-commits all-commits at lists.llvm.org
Tue Jan 9 12:05:36 PST 2024


  Branch: refs/heads/users/mordante/adds_module_testing
  Home:   https://github.com/llvm/llvm-project
  Commit: 196cedd36534b02a7c55cf4a1746b34f87ead467
      https://github.com/llvm/llvm-project/commit/196cedd36534b02a7c55cf4a1746b34f87ead467
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2024-01-09 (Tue, 09 Jan 2024)

  Changed paths:
    M libcxx/test/libcxx/module_std.gen.py
    M libcxx/test/libcxx/module_std_compat.gen.py
    A libcxx/test/libcxx/selftest/modules/no-modules.sh.cpp
    A libcxx/test/libcxx/selftest/modules/std-and-std.compat-module.sh.cpp
    A libcxx/test/libcxx/selftest/modules/std-module.sh.cpp
    A libcxx/test/libcxx/selftest/modules/std.compat-module.sh.cpp
    A libcxx/test/libcxx/selftest/modules/unknown-module.compile.pass.cpp
    M libcxx/test/std/modules/std.compat.pass.cpp
    M libcxx/test/std/modules/std.pass.cpp
    M libcxx/utils/libcxx/test/features.py
    M libcxx/utils/libcxx/test/format.py
    M libcxx/utils/libcxx/test/modules.py

  Log Message:
  -----------
  [libc++][modules] Adds module testing.

This adds a new module test infrastructure. This requires tagging tests
using modules. The test runner uses this information to determine the
compiler flags needed to build and use the module.

Currently modules are build per test, which allows testing them for
tests with ADDITIONAL_COMPILE_FLAGS. At the moment only 4 tests use
modules. Therefore the performance penalty is not measurable. If in the
future more tests use modules it would be good to measure the overhead
and determine whether it's acceptable.


  Commit: a95db48a745c0b4bf9b764ff16290a23ecad240f
      https://github.com/llvm/llvm-project/commit/a95db48a745c0b4bf9b764ff16290a23ecad240f
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2024-01-09 (Tue, 09 Jan 2024)

  Changed paths:
    M libcxx/test/libcxx/module_std.gen.py
    M libcxx/test/libcxx/module_std_compat.gen.py
    M libcxx/test/libcxx/selftest/modules/no-modules.sh.cpp
    M libcxx/test/libcxx/selftest/modules/std-and-std.compat-module.sh.cpp
    M libcxx/test/libcxx/selftest/modules/std-module.sh.cpp
    M libcxx/test/libcxx/selftest/modules/std.compat-module.sh.cpp
    R libcxx/test/libcxx/selftest/modules/unknown-module.compile.pass.cpp
    M libcxx/test/std/modules/std.compat.pass.cpp
    M libcxx/test/std/modules/std.pass.cpp
    M libcxx/utils/libcxx/test/features.py
    M libcxx/utils/libcxx/test/format.py
    M libcxx/utils/libcxx/test/modules.py

  Log Message:
  -----------
  Address review comments


Compare: https://github.com/llvm/llvm-project/compare/35a9aa3f3ba8...a95db48a745c


More information about the All-commits mailing list