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
60 lines
2.9 KiB
Plaintext
60 lines
2.9 KiB
Plaintext
; Should find the bitmap if it is in the same folder as the rc file.
|
|
; RUN: rm -f %t.include.res
|
|
; RUN: llvm-rc -no-preprocess /FO %t.include.res -- %p/Inputs/include.rc
|
|
; RUN: llvm-readobj %t.include.res | FileCheck --check-prefix=FOUND %s
|
|
|
|
; Try including files without quotes.
|
|
; RUN: rm -f %t.noquotes.res
|
|
; RUN: llvm-rc -no-preprocess /FO %t.noquotes.res -- %p/Inputs/include-noquotes.rc
|
|
; RUN: llvm-readobj %t.noquotes.res | FileCheck --check-prefix=FOUND %s
|
|
|
|
; Should find the bitmap if the folder is explicitly specified.
|
|
; RUN: rm -f %t.nested-include.res
|
|
; RUN: llvm-rc -no-preprocess /FO %t.nested-include.res /I %p/Inputs/nested -- %p/Inputs/deep-include.rc
|
|
; RUN: llvm-readobj %t.nested-include.res | FileCheck --check-prefix=FOUND %s
|
|
|
|
; The include dir can be specified via the INCLUDE env var too.
|
|
; RUN: rm -f %t.nested-include.res
|
|
; RUN: env INCLUDE=%p/Inputs/nested llvm-rc -no-preprocess /FO %t.nested-include.res -- %p/Inputs/deep-include.rc
|
|
; RUN: llvm-readobj %t.nested-include.res | FileCheck --check-prefix=FOUND %s
|
|
|
|
; Specifying the /X option should make it ignore the INCLUDE variable.
|
|
; RUN: rm -f %t.nested-include.res
|
|
; RUN: not env INCLUDE=%p/Inputs/nested llvm-rc -no-preprocess /X /FO %t.nested-include.res -- %p/Inputs/deep-include.rc 2>&1 \
|
|
; RUN: | FileCheck --check-prefix=MISSING %s
|
|
|
|
; Otherwise, it should not find the bitmap.
|
|
; RUN: rm -f %t.nested-include.res
|
|
; RUN: not llvm-rc -no-preprocess /FO %t.nested-include.res -- %p/Inputs/deep-include.rc 2>&1 \
|
|
; RUN: | FileCheck --check-prefix=MISSING %s
|
|
|
|
; Should find the bitmap if the process's current working directory
|
|
; contains the resource being searched for. Do this test last since it
|
|
; changes the current working directory and could affect the success or
|
|
; failure of other tests if run first.
|
|
; RUN: rm -f %t.nested-include.res
|
|
; RUN: cd %p/Inputs/nested
|
|
; RUN: llvm-rc -no-preprocess /FO %t.nested-include.res -- %p/Inputs/include.rc
|
|
; RUN: llvm-readobj %t.nested-include.res | FileCheck --check-prefix=FOUND %s
|
|
|
|
FOUND: Resource type (int): BITMAP (ID 2)
|
|
FOUND-NEXT: Resource name (string): FOO
|
|
FOUND-NEXT: Data version: 0
|
|
FOUND-NEXT: Memory flags: 0x30
|
|
FOUND-NEXT: Language ID: 1033
|
|
FOUND-NEXT: Version (major): 0
|
|
FOUND-NEXT: Version (minor): 0
|
|
FOUND-NEXT: Characteristics: 0
|
|
FOUND-NEXT: Data size: 96
|
|
FOUND-NEXT: Data: (
|
|
FOUND-NEXT: 0000: 28000000 02000000 07000000 01001800 |(...............|
|
|
FOUND-NEXT: 0010: 00000000 38000000 00000000 00000000 |....8...........|
|
|
FOUND-NEXT: 0020: 00000000 00000000 5BB3855B B3850000 |........[..[....|
|
|
FOUND-NEXT: 0030: FFFFFFFF FFFF0000 FFFFFFFF FFFF0000 |................|
|
|
FOUND-NEXT: 0040: FFFFFFFF FFFF0000 5BB385FF FFFF0000 |........[.......|
|
|
FOUND-NEXT: 0050: FFFFFF0E C9FF0000 241CEDFF FFFF0000 |........$.......|
|
|
FOUND-NEXT: )
|
|
|
|
MISSING: llvm-rc: Error in BITMAP statement (ID foo):
|
|
MISSING-NEXT: error : file not found : nested_bitmap.bmp
|