[llvm] ce49b7d - [llvm-install-name-tool] Add a test with multiple input files

Alexander Shaposhnikov via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 8 11:31:52 PDT 2020


Author: Alexander Shaposhnikov
Date: 2020-09-08T11:31:28-07:00
New Revision: ce49b7d9ca01f4abbba1e5a00339d539b0ea563e

URL: https://github.com/llvm/llvm-project/commit/ce49b7d9ca01f4abbba1e5a00339d539b0ea563e
DIFF: https://github.com/llvm/llvm-project/commit/ce49b7d9ca01f4abbba1e5a00339d539b0ea563e.diff

LOG: [llvm-install-name-tool] Add a test with multiple input files

This diff adds a test which checks the error-message when multiple input files
are passed to llvm-install-name-tool.

Test plan: make check-all

Differential revision: https://reviews.llvm.org/D87268

Added: 
    

Modified: 
    llvm/test/tools/llvm-objcopy/tool-help-message.test

Removed: 
    


################################################################################
diff  --git a/llvm/test/tools/llvm-objcopy/tool-help-message.test b/llvm/test/tools/llvm-objcopy/tool-help-message.test
index 1a0712b7a7ce..3f99d910ee97 100644
--- a/llvm/test/tools/llvm-objcopy/tool-help-message.test
+++ b/llvm/test/tools/llvm-objcopy/tool-help-message.test
@@ -18,6 +18,7 @@
 # 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
 # RUN: not llvm-install-name-tool -add_rpath @executable 2>&1 | FileCheck %s --check-prefix=NO-INPUT-FILES
+# RUN: not llvm-install-name-tool -add_rpath @executable f1 f2 2>&1 | FileCheck %s --check-prefix=MULTIPLE-INPUT-FILES
 
 # OBJCOPY-USAGE:  USAGE: llvm-objcopy [options] input [output]
 # OBJCOPY-USAGE:  Pass @FILE as argument to read options from FILE.
@@ -30,3 +31,4 @@
 
 # UNKNOWN-ARG:    unknown argument '{{-+}}abcabc'
 # NO-INPUT-FILES: no input file specified
+# MULTIPLE-INPUT-FILES: expects a single input file


        


More information about the llvm-commits mailing list