Skip to content

RFC Oe-selftest for Clang, LLVM, LLD

[email protected] openembedded-core 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4clang-tools-extra: disable testsmeta/recipes-devtools/clang/clang/0042-guard-clang-tools-extra-test.patch meta/recipes-devtools/clang/common.inc+75 -00 replies
2/4clang: Enable tests for llvm, clang, lldmeta/recipes-devtools/clang/clang_git.bb meta/recipes-devtools/clang/lld_git.bb meta/recipes-devtools/clang/llvm_git.bb+10 -62 replies
3/4oeqa/selftest/clang: Add selftest for Clang/LLVM/LLDmeta/lib/oeqa/selftest/cases/clang.py+301 -00 replies
4/4rust: Fix rust build failuremeta/recipes-devtools/rust/rust_1.92.0.bb+3 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 0/4] Oe-selftest for Clang, LLVM, LLD

From: Deepesh Varatharajan <[email protected]>

This patch series introduces a test framework to run selftests for both native and target builds of Clang, LLVM, and LLD.

Summary of changes:
-Patch 1: Disable clang-tools-extra tests because Clang's CMake cannot
see the llvm-bcanalyzer target.
-Patch 2: Enabled the required CMake flags for clang, llvm & lld tests -Patch 3: Selftest script for Clang, LLVM, and LLD including exclude list -Patch 4: Fix rust build failure by replacing target llvm-config with native

Testing:
1. The test suite has been successfully validated on x86-64, arm64, riscv64, and arm32 for all three components.
2. Clang, LLVM & LLD all together ~80K tests are there and we currently ~200 tests to exclude list which are failing (0.25%).

WIP:
LLVM target tests are currently failing on x86. This is under investigation and will be addressed

Deepesh Varatharajan (4):
clang-tools-extra: disable tests
clang: Enable tests for llvm, clang, lld oeqa/selftest/clang: Add selftest for Clang/LLVM/LLD
rust: Fix rust build failure

 meta/lib/oeqa/selftest/cases/clang.py         | 301 ++++++++++++++++++
 .../0042-guard-clang-tools-extra-test.patch   |  74 +++++
 meta/recipes-devtools/clang/clang_git.bb      |   3 +-
 meta/recipes-devtools/clang/common.inc        |   1 +
 meta/recipes-devtools/clang/lld_git.bb        |   2 +-
 meta/recipes-devtools/clang/llvm_git.bb       |  11 +-
 meta/recipes-devtools/rust/rust_1.92.0.bb     |   5 +-
 7 files changed, 389 insertions(+), 8 deletions(-)
 create mode 100644 meta/lib/oeqa/selftest/cases/clang.py
 create mode 100644 meta/recipes-devtools/clang/clang/0042-guard-clang-tools-extra-test.patch
Signature · 1 line
2.49.0