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
88 lines
3.1 KiB
Plaintext
88 lines
3.1 KiB
Plaintext
# Check rm file operations.
|
|
# Check force remove commands success whether the file does or doesn't exist.
|
|
#
|
|
# RUN: rm -f %t.write
|
|
# RUN: %{python} %S/../check_path.py file %t.write > %t.out
|
|
# RUN: FileCheck --check-prefix=REMOVE-FILE < %t.out %s
|
|
# RUN: echo "create a temp file" > %t.write
|
|
# RUN: %{python} %S/../check_path.py file %t.write > %t.out
|
|
# RUN: FileCheck --check-prefix=FILE-EXIST < %t.out %s
|
|
# RUN: rm -f %t.write
|
|
# RUN: %{python} %S/../check_path.py file %t.write > %t.out
|
|
# RUN: FileCheck --check-prefix=REMOVE-FILE < %t.out %s
|
|
#
|
|
# REMOVE-FILE: False
|
|
# FILE-EXIST: True
|
|
#
|
|
# Check mkdir and rm folder operations.
|
|
# Check force remove commands success whether the directory does or doesn't exist.
|
|
#
|
|
# Check the mkdir command with -p option.
|
|
# RUN: rm -f -r %t.test
|
|
# RUN: %{python} %S/../check_path.py dir %t.test > %t.out
|
|
# RUN: FileCheck --check-prefix=REMOVE-PARENT-DIR < %t.out %s
|
|
# RUN: mkdir -p %t.test
|
|
# RUN: %{python} %S/../check_path.py dir %t.test > %t.out
|
|
# RUN: FileCheck --check-prefix=MAKE-PARENT-DIR < %t.out %s
|
|
# RUN: rm -f %t.test || true
|
|
# RUN: rm -f -r %t.test
|
|
# RUN: %{python} %S/../check_path.py dir %t.test > %t.out
|
|
# RUN: FileCheck --check-prefix=REMOVE-PARENT-DIR < %t.out %s
|
|
#
|
|
# MAKE-PARENT-DIR: True
|
|
# REMOVE-PARENT-DIR: False
|
|
#
|
|
# Check the mkdir command without -p option.
|
|
#
|
|
# RUN: rm -rf %t.test1
|
|
# RUN: mkdir %t.test1
|
|
# RUN: %{python} %S/../check_path.py dir %t.test1 > %t.out
|
|
# RUN: FileCheck --check-prefix=MAKE-DIR < %t.out %s
|
|
# RUN: cd %t.test1 && mkdir foo
|
|
# RUN: %{python} %S/../check_path.py dir %t.test1 > %t.out
|
|
# RUN: FileCheck --check-prefix=MAKE-DIR < %t.out %s
|
|
# RUN: cd .. && rm -rf %t.test1
|
|
# RUN: %{python} %S/../check_path.py dir %t.test1 > %t.out
|
|
# RUN: FileCheck --check-prefix=REMOVE-DIR < %t.out %s
|
|
#
|
|
# MAKE-DIR: True
|
|
# REMOVE-DIR: False
|
|
#
|
|
# Check creating and removing multiple folders and rm * operation.
|
|
#
|
|
# RUN: rm -rf %t.test
|
|
# RUN: mkdir -p %t.test/test1 %t.test/test2
|
|
# RUN: %{python} %S/../check_path.py dir %t.test %t.test/test1 %t.test/test2 > %t.out
|
|
# RUN: FileCheck --check-prefix=DIRS-EXIST < %t.out %s
|
|
# RUN: mkdir %t.test || true
|
|
# RUN: echo "create a temp file" > %t.test/temp.write
|
|
# RUN: echo "create a temp1 file" > %t.test/test1/temp1.write
|
|
# RUN: echo "create a temp2 file" > %t.test/test2/temp2.write
|
|
# RUN: %{python} %S/../check_path.py file %t.test/temp.write %t.test/test1/temp1.write %t.test/test2/temp2.write> %t.out
|
|
# RUN: FileCheck --check-prefix=FILES-EXIST < %t.out %s
|
|
# RUN: rm -r -f %t*
|
|
# RUN: %{python} %S/../check_path.py dir %t.test > %t.out
|
|
# RUN: FileCheck --check-prefix=REMOVE-ALL < %t.out %s
|
|
#
|
|
# DIRS-EXIST: True
|
|
# DIRS-EXIST-NEXT: True
|
|
# DIRS-EXIST-NEXT: True
|
|
# FILES-EXIST: True
|
|
# FILES-EXIST-NEXT: True
|
|
# FILES-EXIST-NEXT: True
|
|
# REMOVE-ALL: False
|
|
#
|
|
# Check diff operations.
|
|
#
|
|
# RUN: echo "hello" > %t.stdout
|
|
# RUN: echo "hello" > %t1.stdout
|
|
# RUN: diff %t.stdout %t1.stdout
|
|
# RUN: diff -u %t.stdout %t1.stdout
|
|
# RUN: echo "hello-2" > %t1.stdout
|
|
# RUN: diff %t.stdout %t1.stdout || true
|
|
#
|
|
# RUN: mkdir -p %t.dir1 %t.dir2
|
|
# RUN: cd %t.dir1 && echo "hello" > temp1.txt
|
|
# RUN: cd %t.dir2 && echo "hello" > temp2.txt
|
|
# RUN: diff temp2.txt ../%{t:stem}.tmp.dir1/temp1.txt
|