help-error-messages.test 1.07 KB
# RUN: llvm-lipo -h | FileCheck --check-prefix=LIPO-USAGE %s
# RUN: llvm-lipo --help | FileCheck --check-prefix=LIPO-USAGE %s

# RUN: llvm-lipo -version | FileCheck --check-prefix=LIPO-VERSION %s
# RUN: llvm-lipo --version | FileCheck --check-prefix=LIPO-VERSION %s

# RUN: not llvm-lipo 2>&1 | FileCheck --check-prefix=LIPO-USAGE %s
# RUN: not llvm-lipo -abcabc 2>&1 | FileCheck --check-prefix=LIPO-UNKNOWN-ARG %s
# RUN: not llvm-lipo --abcabc 2>&1 | FileCheck --check-prefix=LIPO-UNKNOWN-ARG %s

# RUN: not llvm-lipo %t -archs -verify_arch i386 2>&1 | FileCheck --check-prefix=MULTIPLE_FLAGS %s
# RUN: not llvm-lipo %t -archs -thin i386 2>&1 | FileCheck --check-prefix=MULTIPLE_FLAGS %s
# RUN: not llvm-lipo %t -thin i386 -verify_arch i386 2>&1 | FileCheck --check-prefix=MULTIPLE_FLAGS %s
# RUN: not llvm-lipo %t -archs -thin i386 -verify_arch i386 2>&1 | FileCheck --check-prefix=MULTIPLE_FLAGS %s
# MULTIPLE_FLAGS: only one of the following actions can be specified:

# LIPO-USAGE:    USAGE: llvm-lipo
# LIPO-UNKNOWN-ARG:    unknown argument '{{-+}}abcabc'
# LIPO-VERSION: {{ version }}