From 88f00aef684ff84a6494e1f17d5466c5678f703d Mon Sep 17 00:00:00 2001 From: Alexander Shaposhnikov Date: Mon, 18 Nov 2019 15:44:58 -0800 Subject: Introduce llvm-install-name-tool This diff adds a new "driver" for llvm-objcopy which is supposed to emulate the behavior of install-name-tool. This is a recommit of b5913e6d2 with ubsan issues fixed. Differential revision: https://reviews.llvm.org/D69146 Test plan: make check-all --- .../llvm-objcopy/MachO/install-name-tool-help-message.test | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 llvm/test/tools/llvm-objcopy/MachO/install-name-tool-help-message.test (limited to 'llvm/test/tools/llvm-objcopy/MachO/install-name-tool-help-message.test') diff --git a/llvm/test/tools/llvm-objcopy/MachO/install-name-tool-help-message.test b/llvm/test/tools/llvm-objcopy/MachO/install-name-tool-help-message.test new file mode 100644 index 00000000000..43e5290c379 --- /dev/null +++ b/llvm/test/tools/llvm-objcopy/MachO/install-name-tool-help-message.test @@ -0,0 +1,10 @@ +# RUN: llvm-install-name-tool -h | FileCheck --check-prefix=INSTALL-NAME-TOOL-USAGE %s +# RUN: llvm-install-name-tool --help | FileCheck --check-prefix=INSTALL-NAME-TOOL-USAGE %s +# RUN: not llvm-install-name-tool 2>&1 | FileCheck --check-prefix=INSTALL-NAME-TOOL-USAGE %s +# RUN: not llvm-install-name-tool -abcabc 2>&1 | FileCheck --check-prefix=UNKNOWN-ARG %s +# RUN: not llvm-install-name-tool --abcabc 2>&1 | FileCheck --check-prefix=UNKNOWN-ARG %s + +# INSTALL-NAME-TOOL-USAGE: USAGE: llvm-install-name-tool +# INSTALL-NAME-TOOL-USAGE: @FILE + +# UNKNOWN-ARG: unknown argument '{{-+}}abcabc' -- cgit v1.2.3