Files
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

71 lines
2.9 KiB
Plaintext

; RUN: rm -rf %t
; RUN: split-file %s %t
// Validate arguments not allowed with -X
; RUN: not clang-installapi \
; RUN: -target arm64-apple-macos12 \
; RUN: -install_name @rpath/libfoo.dylib \
; RUN: -current_version 1 -compatibility_version 1 \
; RUN: -XApple -I/fake/path -I%t %t/inputs.json \
; RUN: -dynamiclib -o %t/output.tbd 2>&1 | FileCheck %s --check-prefix=INVALID_OPT
; INVALID_OPT: error: invalid argument '-XApple' not allowed with '-I/fake/path'
// Validate reserved labels.
; RUN: not clang-installapi \
; RUN: -target arm64-apple-macos12 \
; RUN: -install_name @rpath/libfoo.dylib \
; RUN: -current_version 1 -compatibility_version 1 \
; RUN: -XApple -DDarwin=1 -XElf -DNONDarwin=1 \
; RUN: -I%t -dynamiclib -o %t/output.tbd %t/inputs.json \
; RUN: -XPrivate -DInvalid=1 2>&1 | FileCheck %s --check-prefix=INVALID_LABELS
; INVALID_LABELS: error: label 'Private' is reserved: use a different label name for -X<label>
// Validate arguments not allowed with -Xproject
; RUN: not clang-installapi \
; RUN: -target arm64-apple-macos12 \
; RUN: -install_name @rpath/libfoo.dylib \
; RUN: -current_version 1 -compatibility_version 1 \
; RUN: -Xproject -fprofile-instr-generate \
; RUN: %t/inputs.json -I%t -dynamiclib \
; RUN: -o %t/output.tbd 2>&1 | FileCheck %s --check-prefix=INVALID_PROJECT_OPT
; INVALID_PROJECT_OPT: error: invalid argument '-Xproject' not allowed with '-fprofile-instr-generate'
// Validate arguments not allowed with -X passed via json
; RUN: not clang-installapi -target arm64-apple-macos12 \
; RUN: -install_name @rpath/libfoo.dylib -current_version 1 -compatibility_version 1 \
; RUN: -optionlist %t/options.json -I/fake/path \
; RUN: -I%t -dynamiclib -o %t/output.tbd 2>&1 | FileCheck %s --check-prefix=INVALID_JSON_OPT
; INVALID_JSON_OPT: error: invalid argument '-XApple' not allowed with '-I/fake/path'
// Validate invalid json path
; RUN: not clang-installapi -target arm64-apple-macos12 \
; RUN: -install_name @rpath/libfoo.dylib -current_version 1 \
; RUN: -compatibility_version 1 -optionlist %t/invalid_loc.json \
; RUN: -I/fake/path -I%t -dynamiclib \
; RUN: -o %t/output.tbd %t 2>&1 | FileCheck %s --check-prefix=INVALID_JSON_LOC -DMSG=%errc_ENOENT
; INVALID_JSON_LOC: error: cannot open file {{.*}}invalid_loc.json': [[MSG]]
// Validate invalid json format
; RUN: not clang-installapi -target arm64-apple-macos12 \
; RUN: -install_name @rpath/libfoo.dylib -current_version 1 \
; RUN: -compatibility_version 1 -optionlist %t/invalid_format.json \
; RUN: -I/fake/path -isysroot %sysroot -I%t -dynamiclib \
; RUN: -o %t/output.tbd %t 2>&1 | FileCheck %s --check-prefix=INVALID_JSON_FORMAT
; INVALID_JSON_FORMAT: error: could not read option input list {{.*}}invalid_format.json': invalid input format
;--- options.json
{
"Apple" : ["-I/fake/path"]
}
;--- invalid_format.json
{
"Apple" : {"opt" : "-I/fake/path"}
}
;--- inputs.json
{
"headers": [ ],
"version": "3"
}