brintos

brintos / llvm-project-archived public Read only

0
0
Text · 951 B · 63f7194 Raw
25 lines · plain
1# XFAIL: system-aix2 3## Show that llvm-strings can handle stdin input properly.4 5## Case 1: output with single string.6RUN: echo -n "abcdefg" | llvm-strings - | FileCheck %s --check-prefix=CASE1 --implicit-check-not={{.}}7CASE1: abcdefg8 9## Case 2: output too short for string.10RUN: echo -n "abc" | llvm-strings - | FileCheck %s --implicit-check-not={{.}} --allow-empty11 12## Case 3: output with new line.13RUN: printf "abcd\nefgh" | llvm-strings - | FileCheck %s --check-prefix=CASE3 --implicit-check-not={{.}}14CASE3:      abcd15CASE3-NEXT: efgh16 17## Case 4: output containing unprintable characters.18RUN: printf "abcd\000ef\037ghij\177klmn" | llvm-strings - | FileCheck %s --check-prefix=CASE4 --implicit-check-not={{.}}19CASE4:      abcd20CASE4-NEXT: ghij21CASE4-NEXT: klmn22 23## Case 5: no file name specified is equivalent to explicitly requesting stdin.24RUN: echo -n "abcdefg" | llvm-strings | FileCheck %s --check-prefix=CASE1 --implicit-check-not={{.}}25