Skip to content

[libcxxabi][test] Check that all copied files are synced between llvm and libcxxabi #142262

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 31, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions libcxxabi/test/itanium_demangle_matches_llvm.sh.test
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
# This test diffs the ItaniumDemangle.h header in libcxxabi and LLVM to ensure
# that they are the same.
# This test diffs the various headers synced by cp-to-llvm.sh
# between libcxxabi and LLVM to ensure that they are the same.

# RUN: tail -n +3 %{libcxxabi}/src/demangle/ItaniumDemangle.h > %t.libcxxabi_demangle
# RUN: tail -n +3 %{llvm}/include/llvm/Demangle/ItaniumDemangle.h > %t.llvm_demangle
# RUN: diff %t.libcxxabi_demangle %t.llvm_demangle

# RUN: tail -n +3 %{libcxxabi}/src/demangle/ItaniumNodes.def > %t.libcxxabi_nodes
# RUN: tail -n +3 %{llvm}/include/llvm/Demangle/ItaniumNodes.def > %t.llvm_nodes
# RUN: diff %t.libcxxabi_nodes %t.llvm_nodes

# RUN: tail -n +3 %{libcxxabi}/src/demangle/StringViewExtras.h > %t.libcxxabi_extras
# RUN: tail -n +3 %{llvm}/include/llvm/Demangle/StringViewExtras.h > %t.llvm_extras
# RUN: diff %t.libcxxabi_extras %t.llvm_extras

# RUN: tail -n +3 %{libcxxabi}/src/demangle/Utility.h > %t.libcxxabi_utility
# RUN: tail -n +3 %{llvm}/include/llvm/Demangle/Utility.h > %t.llvm_utility
# RUN: diff %t.libcxxabi_utility %t.llvm_utility

# RUN: diff %{libcxxabi}/test/DemangleTestCases.inc %{llvm}/include/llvm/Testing/Demangle/DemangleTestCases.inc
Loading