1 ## Show that llvm-strings prints only strings with length of at least the
2 ## requested number of bytes.
9 RUN: not llvm-strings -n 0 2>&1 %t | FileCheck --check-prefix CHECK-0 %s
10 RUN: llvm-strings -n 1 %t | FileCheck --check-prefix CHECK-1 %s --implicit-check-not={{.}}
11 RUN: llvm-strings -n 2 %t | FileCheck --check-prefix CHECK-2 %s --implicit-check-not={{.}}
12 RUN: llvm-strings -n 4 %t | FileCheck --check-prefix CHECK-4 %s --implicit-check-not={{.}}
13 RUN: llvm-strings -n 5 %t | FileCheck --check-prefix CHECK-5 %s --implicit-check-not={{.}}
14 RUN: llvm-strings -n 6 %t | FileCheck %s --implicit-check-not={{.}} --allow-empty
16 ## Default is equivalent to -n 4.
17 RUN: llvm-strings %t | FileCheck --check-prefix CHECK-4 %s --implicit-check-not={{.}}
19 ## Show --bytes works too.
20 RUN: llvm-strings --bytes 2 %t | FileCheck --check-prefix CHECK-2 %s --implicit-check-not={{.}}
22 ## Show different syntaxes work.
23 RUN: llvm-strings --bytes=2 %t | FileCheck --check-prefix CHECK-2 %s --implicit-check-not={{.}}
24 RUN: llvm-strings -n=2 %t | FileCheck --check-prefix CHECK-2 %s --implicit-check-not={{.}}
26 CHECK-0: invalid minimum string length 0
44 ## Show that a non-numeric argument is rejected.
45 RUN: not llvm-strings -n foo %t 2>&1 | FileCheck %s --check-prefix=ERR
46 ERR: llvm-strings{{.*}}: for the --bytes option: 'foo' value invalid for integer argument!