xref: /llvm-project/llvm/test/tools/llvm-ar/tool-name.test (revision 0c8c05064d57fe3bbbb1edd4c6e67f909c720578)
1## Don't make symlinks on Windows.
2# UNSUPPORTED: system-windows
3
4# RUN: rm -rf %t
5# RUN: mkdir %t
6# RUN: ln -s llvm-ar %t/llvm-ar-9
7# RUN: ln -s llvm-ar %t/ar.exe
8# RUN: ln -s llvm-ar %t/arm-pokymllib32-linux-gnueabi-llvm-ar-9
9
10# RUN: llvm-ar h | FileCheck %s --check-prefix=DEFAULT
11# RUN: %t/llvm-ar-9 h | FileCheck %s --check-prefix=VERSION
12# RUN: %t/ar.exe h | FileCheck %s --check-prefix=SUFFIX
13## Ensure that the "lib" substring does not result in misidentification as the
14## llvm-lib tool.
15# RUN: %t/arm-pokymllib32-linux-gnueabi-llvm-ar-9 h | FileCheck %s --check-prefix=ARM
16
17# DEFAULT: USAGE: llvm-ar{{ }}
18# VERSION: USAGE: llvm-ar-9{{ }}
19# SUFFIX: USAGE: ar{{ }}
20# ARM: USAGE: arm-pokymllib32-linux-gnueabi-llvm-ar-9{{ }}
21