Files
TheRock/compiler/amd-llvm/llvm/test/tools/dsymutil/AArch64/allow-disallow.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

150 lines
6.0 KiB
Plaintext

# Test --allow to include one object file (1.o).
RUN: dsymutil --linker classic --dump-debug-map \
RUN: %p/../Inputs/allow-disallow/a.out.arm64 \
RUN: --oso-prepend-path=%p/../Inputs \
RUN: --allow=%p/../Inputs/allow-disallow/one.yaml \
RUN: | FileCheck %s --check-prefix=ALLOW-ONE
RUN: dsymutil --linker parallel --dump-debug-map \
RUN: %p/../Inputs/allow-disallow/a.out.arm64 \
RUN: --oso-prepend-path=%p/../Inputs \
RUN: --allow=%p/../Inputs/allow-disallow/one.yaml \
RUN: | FileCheck %s --check-prefix=ALLOW-ONE
# Test --allow to include two object files (1.o and 3.o).
RUN: dsymutil --linker classic --dump-debug-map \
RUN: %p/../Inputs/allow-disallow/a.out.arm64 \
RUN: --oso-prepend-path=%p/../Inputs \
RUN: --allow=%p/../Inputs/allow-disallow/two.yaml \
RUN: | FileCheck %s --check-prefix=ALLOW-TWO
RUN: dsymutil --linker parallel --dump-debug-map \
RUN: %p/../Inputs/allow-disallow/a.out.arm64 \
RUN: --oso-prepend-path=%p/../Inputs \
RUN: --allow=%p/../Inputs/allow-disallow/two.yaml \
RUN: | FileCheck %s --check-prefix=ALLOW-TWO
# Test --allow to include no object files (empty allow list).
RUN: dsymutil --linker classic --dump-debug-map \
RUN: %p/../Inputs/allow-disallow/a.out.arm64 \
RUN: --oso-prepend-path=%p/../Inputs \
RUN: --allow=%p/../Inputs/allow-disallow/empty.yaml \
RUN: | FileCheck %s --check-prefix=ALLOW-NONE
RUN: dsymutil --linker parallel --dump-debug-map \
RUN: %p/../Inputs/allow-disallow/a.out.arm64 \
RUN: --oso-prepend-path=%p/../Inputs \
RUN: --allow=%p/../Inputs/allow-disallow/empty.yaml \
RUN: | FileCheck %s --check-prefix=ALLOW-NONE
# Test --disallow to exclude one object file (1.o).
RUN: dsymutil --linker classic --dump-debug-map \
RUN: %p/../Inputs/allow-disallow/a.out.arm64 \
RUN: --oso-prepend-path=%p/../Inputs \
RUN: --disallow=%p/../Inputs/allow-disallow/one.yaml \
RUN: | FileCheck %s --check-prefix=DISALLOW-ONE
RUN: dsymutil --linker parallel --dump-debug-map \
RUN: %p/../Inputs/allow-disallow/a.out.arm64 \
RUN: --oso-prepend-path=%p/../Inputs \
RUN: --disallow=%p/../Inputs/allow-disallow/one.yaml \
RUN: | FileCheck %s --check-prefix=DISALLOW-ONE
# Test --disallow to exclude two object files (1.o and 3.o).
RUN: dsymutil --linker classic --dump-debug-map \
RUN: %p/../Inputs/allow-disallow/a.out.arm64 \
RUN: --oso-prepend-path=%p/../Inputs \
RUN: --disallow=%p/../Inputs/allow-disallow/two.yaml \
RUN: | FileCheck %s --check-prefix=DISALLOW-TWO
RUN: dsymutil --linker parallel --dump-debug-map \
RUN: %p/../Inputs/allow-disallow/a.out.arm64 \
RUN: --oso-prepend-path=%p/../Inputs \
RUN: --disallow=%p/../Inputs/allow-disallow/two.yaml \
RUN: | FileCheck %s --check-prefix=DISALLOW-TWO
# Test --disallow to exclude no object files (empty allow list).
RUN: dsymutil --linker classic --dump-debug-map \
RUN: %p/../Inputs/allow-disallow/a.out.arm64 \
RUN: --oso-prepend-path=%p/../Inputs \
RUN: --disallow=%p/../Inputs/allow-disallow/empty.yaml \
RUN: | FileCheck %s --check-prefix=DISALLOW-NONE
RUN: dsymutil --linker parallel --dump-debug-map \
RUN: %p/../Inputs/allow-disallow/a.out.arm64 \
RUN: --oso-prepend-path=%p/../Inputs \
RUN: --disallow=%p/../Inputs/allow-disallow/empty.yaml \
RUN: | FileCheck %s --check-prefix=DISALLOW-NONE
# Test error when allow-list file does not exist.
RUN: not dsymutil --linker classic --dump-debug-map \
RUN: %p/../Inputs/allow-disallow/a.out.arm64 \
RUN: --allow=/nonexistent/path 2>&1 \
RUN: | FileCheck %s --check-prefix=MISSING-FILE
RUN: not dsymutil --linker parallel --dump-debug-map \
RUN: %p/../Inputs/allow-disallow/a.out.arm64 \
RUN: --allow=/nonexistent/path 2>&1 \
RUN: | FileCheck %s --check-prefix=MISSING-FILE
# Test error when disallow-list file does not exist.
RUN: not dsymutil --linker classic --dump-debug-map \
RUN: %p/../Inputs/allow-disallow/a.out.arm64 \
RUN: --disallow=/nonexistent/path 2>&1 \
RUN: | FileCheck %s --check-prefix=MISSING-FILE
RUN: not dsymutil --linker parallel --dump-debug-map \
RUN: %p/../Inputs/allow-disallow/a.out.arm64 \
RUN: --disallow=/nonexistent/path 2>&1 \
RUN: | FileCheck %s --check-prefix=MISSING-FILE
# Test error when combined with -y.
RUN: not dsymutil --linker classic --allow=some.file.yaml \
RUN: -y %p/../Inputs/remarks/basic.macho.remarks.arm64 2>&1 \
RUN: | FileCheck %s --check-prefix=YAML-CONFLICT
RUN: not dsymutil --linker parallel --allow=some.file.yaml \
RUN: -y %p/../Inputs/remarks/basic.macho.remarks.arm64 2>&1 \
RUN: | FileCheck %s --check-prefix=YAML-CONFLICT
# Test error when --allow and --disallow are both specified.
RUN: not dsymutil --linker classic --allow=some.file.yaml --disallow=some.file.yaml \
RUN: %p/../Inputs/allow-disallow/a.out.arm64 2>&1 \
RUN: | FileCheck %s --check-prefix=ALLOW-DISALLOW-CONFLICT
RUN: not dsymutil --linker parallel --allow=some.file.yaml --disallow=some.file.yaml \
RUN: %p/../Inputs/allow-disallow/a.out.arm64 2>&1 \
RUN: | FileCheck %s --check-prefix=ALLOW-DISALLOW-CONFLICT
ALLOW-ONE: ---
ALLOW-ONE: filename: {{.*}}1.o
ALLOW-ONE-NOT: filename:
ALLOW-ONE: ...
ALLOW-TWO: ---
ALLOW-TWO: filename: {{.*}}1.o
ALLOW-TWO-NOT: filename: {{.*}}2.o
ALLOW-TWO: filename: {{.*}}3.o
ALLOW-TWO-NOT: filename:
ALLOW-TWO: ...
ALLOW-NONE: ---
ALLOW-NONE-NOT: filename:
ALLOW-NONE: ...
DISALLOW-ONE: ---
DISALLOW-ONE-NOT: filename: {{.*}}1.o
DISALLOW-ONE: filename: {{.*}}2.o
DISALLOW-ONE: filename: {{.*}}3.o
DISALLOW-ONE-NOT: filename:
DISALLOW-ONE: ...
DISALLOW-TWO: ---
DISALLOW-TWO-NOT: filename: {{.*}}1.o
DISALLOW-TWO: filename: {{.*}}2.o
DISALLOW-TWO-NOT: filename: {{.*}}3.o
DISALLOW-TWO-NOT: filename:
DISALLOW-TWO: ...
DISALLOW-NONE: ---
DISALLOW-NONE: filename: {{.*}}1.o
DISALLOW-NONE: filename: {{.*}}2.o
DISALLOW-NONE: filename: {{.*}}3.o
DISALLOW-NONE: ...
MISSING-FILE: error: cannot open allow/disallow file
YAML-CONFLICT: error: -y and --allow/--disallow cannot be specified together
ALLOW-DISALLOW-CONFLICT: error: --allow and --disallow cannot be specified together