Skip to content

Commit 061ef3c

Browse files
authored
[libcxxabi][test] Check that all copied files are synced between llvm and libcxxabi (#142262)
This patch expands the list of files we check to all the ones that are copied via `cp-to-llvm.sh`.
1 parent c7b421d commit 061ef3c

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed
Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
1-
# This test diffs the ItaniumDemangle.h header in libcxxabi and LLVM to ensure
2-
# that they are the same.
1+
# This test diffs the various headers synced by cp-to-llvm.sh
2+
# between libcxxabi and LLVM to ensure that they are the same.
33

44
# RUN: tail -n +3 %{libcxxabi}/src/demangle/ItaniumDemangle.h > %t.libcxxabi_demangle
55
# RUN: tail -n +3 %{llvm}/include/llvm/Demangle/ItaniumDemangle.h > %t.llvm_demangle
66
# RUN: diff %t.libcxxabi_demangle %t.llvm_demangle
7+
8+
# RUN: tail -n +3 %{libcxxabi}/src/demangle/ItaniumNodes.def > %t.libcxxabi_nodes
9+
# RUN: tail -n +3 %{llvm}/include/llvm/Demangle/ItaniumNodes.def > %t.llvm_nodes
10+
# RUN: diff %t.libcxxabi_nodes %t.llvm_nodes
11+
12+
# RUN: tail -n +3 %{libcxxabi}/src/demangle/StringViewExtras.h > %t.libcxxabi_extras
13+
# RUN: tail -n +3 %{llvm}/include/llvm/Demangle/StringViewExtras.h > %t.llvm_extras
14+
# RUN: diff %t.libcxxabi_extras %t.llvm_extras
15+
16+
# RUN: tail -n +3 %{libcxxabi}/src/demangle/Utility.h > %t.libcxxabi_utility
17+
# RUN: tail -n +3 %{llvm}/include/llvm/Demangle/Utility.h > %t.llvm_utility
18+
# RUN: diff %t.libcxxabi_utility %t.llvm_utility
19+
20+
# RUN: diff %{libcxxabi}/test/DemangleTestCases.inc %{llvm}/include/llvm/Testing/Demangle/DemangleTestCases.inc

0 commit comments

Comments
 (0)