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
71 lines
2.1 KiB
Plaintext
71 lines
2.1 KiB
Plaintext
## Show that CREATE/CREATETHIN overwrite existing files appropriately.
|
|
|
|
# RUN: rm -rf %t
|
|
# RUN: split-file %s %t
|
|
# RUN: cd %t
|
|
|
|
## Show that an existing file that is not an archive is overwritten by CREATE.
|
|
# RUN: touch test.a
|
|
# RUN: llvm-ar -M < create.mri
|
|
# RUN: FileCheck --input-file=test.a %s --check-prefixes=ARCH,TWO
|
|
|
|
## Show that an existing file that is not an archive is overwritten by CREATETHIN.
|
|
# RUN: rm -f test.a
|
|
# RUN: touch test.a
|
|
# RUN: llvm-ar --format=gnu -M < createthin.mri
|
|
# RUN: FileCheck --input-file=test.a %s --check-prefixes=THIN,TWO
|
|
|
|
## Show that an existing regular archive is overwritten by CREATE.
|
|
# RUN: rm -f test.a
|
|
# RUN: llvm-ar cr test.a 1.txt
|
|
# RUN: llvm-ar -M < create.mri
|
|
# RUN: llvm-ar tv test.a
|
|
# RUN: FileCheck --input-file=test.a %s --check-prefixes=ARCH,TWO --implicit-check-not=1.txt
|
|
|
|
## Show that an existing regular archive is overwritten by CREATETHIN.
|
|
# RUN: rm -f test.a
|
|
# RUN: llvm-ar --format=gnu cr test.a 1.txt
|
|
# RUN: llvm-ar --format=gnu -M < createthin.mri
|
|
# RUN: FileCheck --input-file=test.a %s --check-prefixes=THIN,TWO --implicit-check-not=1.txt
|
|
|
|
## Show that an existing thin archive is overwritten by CREATE.
|
|
# RUN: rm -f test.a
|
|
# RUN: llvm-ar --format=gnu crT test.a 1.txt
|
|
# RUN: llvm-ar --format=gnu -M < create.mri
|
|
# RUN: FileCheck --input-file=test.a %s --check-prefixes=ARCH,TWO --implicit-check-not=1.txt
|
|
|
|
## Show that an existing thin archive is overwritten by CREATETHIN.
|
|
# RUN: rm -f test.a
|
|
# RUN: llvm-ar --format=gnu crT test.a 1.txt
|
|
# RUN: llvm-ar --format=gnu -M < createthin.mri
|
|
# RUN: FileCheck --input-file=test.a %s --check-prefixes=THIN,TWO --implicit-check-not=1.txt
|
|
|
|
## Show that the output is not overwritten without a SAVE.
|
|
# RUN: rm -f test.a
|
|
# RUN: llvm-ar --format=gnu crT test.a 1.txt
|
|
# RUN: llvm-ar --format=gnu -M < nosave.mri
|
|
# RUN: FileCheck --input-file=test.a %s --check-prefixes=THIN,ONE --implicit-check-not=2.txt
|
|
|
|
# ARCH: {{!<arch>|<bigaf>}}
|
|
# THIN: !<thin>
|
|
# ONE: 1.txt
|
|
# TWO: 2.txt
|
|
|
|
#--- 1.txt
|
|
|
|
#--- 2.txt
|
|
|
|
#--- create.mri
|
|
CREATE test.a
|
|
ADDMOD 2.txt
|
|
SAVE
|
|
|
|
#--- createthin.mri
|
|
CREATETHIN test.a
|
|
ADDMOD 2.txt
|
|
SAVE
|
|
|
|
#--- nosave.mri
|
|
CREATE test.a
|
|
ADDMOD 2.txt
|