1 ## Test the JSON pretty-print flag.
3 # RUN: yaml2obj %s -o %t.pretty
5 ## Test JSON with pretty-print off.
6 # RUN: llvm-readobj --elf-output-style=JSON %t.pretty | \
7 # RUN: FileCheck %s --check-prefix=NO-PRETTY \
8 # RUN: --strict-whitespace --implicit-check-not={{.}}
12 # NO-PRETTY-SAME:"FileSummary":{
13 # NO-PRETTY-SAME:"File":"{{.*}}.pretty",
14 # NO-PRETTY-SAME:"Format":"elf64-x86-64",
15 # NO-PRETTY-SAME:"Arch":"x86_64",
16 # NO-PRETTY-SAME:"AddressSize":"64bit",
17 # NO-PRETTY-SAME:"LoadName":"<Not found>"
22 ## Test JSON with pretty-print on.
23 # RUN: llvm-readobj --elf-output-style=JSON --pretty-print %t.pretty | \
24 # RUN: FileCheck %s --check-prefix=PRETTY \
25 # RUN: --match-full-lines --strict-whitespace --implicit-check-not={{.}}
29 # PRETTY-NEXT: "FileSummary": {
30 # PRETTY-NEXT: "File": "{{.*}}.pretty",
31 # PRETTY-NEXT: "Format": "elf64-x86-64",
32 # PRETTY-NEXT: "Arch": "x86_64",
33 # PRETTY-NEXT: "AddressSize": "64bit",
34 # PRETTY-NEXT: "LoadName": "<Not found>"