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
112 lines
3.6 KiB
Python
112 lines
3.6 KiB
Python
# Check that -a/-v/-vv makes the line number of the failing RUN command clear.
|
|
|
|
|
|
# RUN: not %{lit} -a %{inputs}/shtest-run-at-line | %{filter-lit} | FileCheck %s
|
|
# RUN: not %{lit} -v %{inputs}/shtest-run-at-line | %{filter-lit} | FileCheck %s
|
|
# RUN: not %{lit} -vv %{inputs}/shtest-run-at-line | %{filter-lit} | FileCheck %s
|
|
# END.
|
|
|
|
|
|
# CHECK: Testing: 8 tests
|
|
|
|
|
|
# In the case of the external shell, we check for only RUN lines in stderr in
|
|
# case some shell implementations format "set -x" output differently.
|
|
|
|
# CHECK-LABEL: FAIL: shtest-run-at-line :: external-shell/basic.txt
|
|
|
|
# CHECK: Command Output (stderr)
|
|
# CHECK-NEXT: --
|
|
# CHECK-NEXT: {{^}}true # RUN: at line 4{{$}}
|
|
# CHECK-NEXT: true
|
|
# CHECK-NEXT: {{^}}false # RUN: at line 5{{$}}
|
|
# CHECK-NEXT: false
|
|
# CHECK-EMPTY:
|
|
# CHECK-NEXT: --
|
|
|
|
# CHECK-LABEL: FAIL: shtest-run-at-line :: external-shell/empty-run-line.txt
|
|
|
|
# CHECK: Command Output (stderr)
|
|
# CHECK-NEXT: --
|
|
# CHECK-NEXT: {{^}}RUN: at line 2 has no command after substitutions{{$}}
|
|
# CHECK-NEXT: {{^}}false # RUN: at line 3{{$}}
|
|
# CHECK-NEXT: false
|
|
# CHECK-EMPTY:
|
|
# CHECK-NEXT: --
|
|
|
|
# CHECK-LABEL: FAIL: shtest-run-at-line :: external-shell/line-continuation.txt
|
|
|
|
# The execution trace from an external sh-like shell might print the commands
|
|
# from a pipeline in any order, so this time just check that lit suppresses the
|
|
# trace of the echo command for each 'RUN: at line N: cmd-line'.
|
|
|
|
# CHECK: Command Output (stderr)
|
|
# CHECK-NEXT: --
|
|
# CHECK-NEXT: {{^}}echo 'foo bar' | FileCheck {{.*}} # RUN: at line 4
|
|
# CHECK-NOT: RUN
|
|
# CHECK: {{^}}echo 'foo baz' | FileCheck {{.*}} # RUN: at line 6
|
|
# CHECK-NOT: RUN
|
|
# CHECK: --
|
|
|
|
# CHECK-LABEL: FAIL: shtest-run-at-line :: external-shell/run-line-with-newline.txt
|
|
|
|
# CHECK: Command Output (stderr)
|
|
# CHECK-NEXT: --
|
|
# CHECK-NEXT: {{^}}echo abc |
|
|
# CHECK-NEXT: FileCheck {{.*}} &&
|
|
# CHECK-NEXT: false # RUN: at line 1
|
|
# CHECK-NOT: RUN
|
|
|
|
|
|
# CHECK-LABEL: FAIL: shtest-run-at-line :: internal-shell/basic.txt
|
|
|
|
# CHECK: Command Output (stdout)
|
|
# CHECK-NEXT: --
|
|
# CHECK-NEXT: # RUN: at line 1
|
|
# CHECK-NEXT: true
|
|
# CHECK-NEXT: # executed command: true
|
|
# CHECK-NEXT: # RUN: at line 2
|
|
# CHECK-NEXT: false
|
|
# CHECK-NEXT: # executed command: false
|
|
# CHECK-NOT: RUN
|
|
|
|
# CHECK-LABEL: FAIL: shtest-run-at-line :: internal-shell/empty-run-line.txt
|
|
|
|
# CHECK: Command Output (stdout)
|
|
# CHECK-NEXT: --
|
|
# CHECK-NEXT: # RUN: at line 2 has no command after substitutions
|
|
# CHECK-NEXT: # RUN: at line 3
|
|
# CHECK-NEXT: false
|
|
# CHECK-NEXT: # executed command: false
|
|
# CHECK-NOT: RUN
|
|
|
|
# CHECK-LABEL: FAIL: shtest-run-at-line :: internal-shell/line-continuation.txt
|
|
|
|
# CHECK: Command Output (stdout)
|
|
# CHECK-NEXT: --
|
|
# CHECK-NEXT: # RUN: at line 1
|
|
# CHECK-NEXT: : first line continued to second line
|
|
# CHECK-NEXT: # executed command: : first line continued to second line
|
|
# CHECK-NEXT: # RUN: at line 3
|
|
# CHECK-NEXT: echo 'foo bar' | FileCheck {{.*}}
|
|
# CHECK-NEXT: # executed command: echo 'foo bar'
|
|
# CHECK-NEXT: # executed command: FileCheck {{.*}}
|
|
# CHECK-NEXT: # RUN: at line 5
|
|
# CHECK-NEXT: echo 'foo baz' | FileCheck {{.*}}
|
|
# CHECK-NEXT: # executed command: echo 'foo baz'
|
|
# CHECK-NEXT: # executed command: FileCheck {{.*}}
|
|
# CHECK-NOT: RUN
|
|
|
|
# CHECK-LABEL: FAIL: shtest-run-at-line :: internal-shell/run-line-with-newline.txt
|
|
|
|
# CHECK: Command Output (stdout)
|
|
# CHECK-NEXT: --
|
|
# CHECK-NEXT: # RUN: at line 1
|
|
# CHECK-NEXT: echo abc |
|
|
# CHECK-NEXT: FileCheck {{.*}} &&
|
|
# CHECK-NEXT: false
|
|
# CHECK-NEXT: # executed command: echo abc
|
|
# CHECK-NEXT: # executed command: FileCheck {{.*}}
|
|
# CHECK-NEXT: # executed command: false
|
|
# CHECK-NOT: RUN
|