Files
TheRock/compiler/amd-llvm/llvm/test/tools/llvm-readobj/ELF/file-summary-json.test
T
derek.holloway 7502bf64a4
CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

103 lines
3.5 KiB
Plaintext

## Test how we output JSON file summaries.
# RUN: rm -rf %t.dir
# RUN: mkdir -p %t.dir
# RUN: yaml2obj %s -o %t.dir/obj
## Test outputting file summary for a single file.
# RUN: llvm-readobj --elf-output-style=JSON --pretty-print %t.dir/obj | \
# RUN: FileCheck %s --check-prefix=SINGLE \
# RUN: --match-full-lines --strict-whitespace --implicit-check-not={{.}}
# SINGLE:[
# SINGLE-NEXT: {
# SINGLE-NEXT: "FileSummary": {
# SINGLE-NEXT: "File": "{{.*}}/obj",
# SINGLE-NEXT: "Format": "elf64-x86-64",
# SINGLE-NEXT: "Arch": "x86_64",
# SINGLE-NEXT: "AddressSize": "64bit",
# SINGLE-NEXT: "LoadName": "<Not found>"
# SINGLE-NEXT: }
# SINGLE-NEXT: }
# SINGLE-NEXT:]
## Test outputting file summary for multiple files.
# RUN: llvm-readobj --elf-output-style=JSON --pretty-print %t.dir/obj %t.dir/obj | \
# RUN: FileCheck %s --check-prefix=MULTI \
# RUN: --match-full-lines --strict-whitespace --implicit-check-not={{.}}
# MULTI:[
# MULTI-NEXT: {
# MULTI-NEXT: "FileSummary": {
# MULTI-NEXT: "File": "{{.*}}/obj",
# MULTI-NEXT: "Format": "elf64-x86-64",
# MULTI-NEXT: "Arch": "x86_64",
# MULTI-NEXT: "AddressSize": "64bit",
# MULTI-NEXT: "LoadName": "<Not found>"
# MULTI-NEXT: }
# MULTI-NEXT: },
# MULTI-NEXT: {
# MULTI-NEXT: "FileSummary": {
# MULTI-NEXT: "File": "{{.*}}/obj",
# MULTI-NEXT: "Format": "elf64-x86-64",
# MULTI-NEXT: "Arch": "x86_64",
# MULTI-NEXT: "AddressSize": "64bit",
# MULTI-NEXT: "LoadName": "<Not found>"
# MULTI-NEXT: }
# MULTI-NEXT: }
# MULTI-NEXT:]
## Test outputting file summary for an archive with a single file.
# RUN: rm -f %t.archive-single
# RUN: llvm-ar rc %t.archive-single %t.dir/obj
# RUN: llvm-readobj --elf-output-style=JSON --pretty-print %t.archive-single | \
# RUN: FileCheck %s --check-prefix=ARCH-SINGLE \
# RUN: --match-full-lines --strict-whitespace --implicit-check-not={{.}}
# ARCH-SINGLE:[
# ARCH-SINGLE-NEXT: {
# ARCH-SINGLE-NEXT: "FileSummary": {
# ARCH-SINGLE-NEXT: "File": "{{.*}}.archive-single(obj)",
# ARCH-SINGLE-NEXT: "Format": "elf64-x86-64",
# ARCH-SINGLE-NEXT: "Arch": "x86_64",
# ARCH-SINGLE-NEXT: "AddressSize": "64bit",
# ARCH-SINGLE-NEXT: "LoadName": "<Not found>"
# ARCH-SINGLE-NEXT: }
# ARCH-SINGLE-NEXT: }
# ARCH-SINGLE-NEXT:]
## Test outputting file summary for an archive with multiple files.
# RUN: rm -f %t.archive-multiple
# RUN: llvm-ar rc %t.archive-multiple %t.dir/obj %t.dir/obj
# RUN: llvm-readobj --elf-output-style=JSON --pretty-print %t.archive-multiple | \
# RUN: FileCheck %s --check-prefix=ARCH-MULTI \
# RUN: --match-full-lines --strict-whitespace --implicit-check-not={{.}}
# ARCH-MULTI:[
# ARCH-MULTI-NEXT: {
# ARCH-MULTI-NEXT: "FileSummary": {
# ARCH-MULTI-NEXT: "File": "{{.*}}.archive-multiple(obj)",
# ARCH-MULTI-NEXT: "Format": "elf64-x86-64",
# ARCH-MULTI-NEXT: "Arch": "x86_64",
# ARCH-MULTI-NEXT: "AddressSize": "64bit",
# ARCH-MULTI-NEXT: "LoadName": "<Not found>"
# ARCH-MULTI-NEXT: }
# ARCH-MULTI-NEXT: },
# ARCH-MULTI-NEXT: {
# ARCH-MULTI-NEXT: "FileSummary": {
# ARCH-MULTI-NEXT: "File": "{{.*}}.archive-multiple(obj)",
# ARCH-MULTI-NEXT: "Format": "elf64-x86-64",
# ARCH-MULTI-NEXT: "Arch": "x86_64",
# ARCH-MULTI-NEXT: "AddressSize": "64bit",
# ARCH-MULTI-NEXT: "LoadName": "<Not found>"
# ARCH-MULTI-NEXT: }
# ARCH-MULTI-NEXT: }
# ARCH-MULTI-NEXT:]
--- !ELF
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2LSB
Type: ET_REL
Machine: EM_X86_64