blob: d2db31bebcb6789d704a1ff7282a3465c96541f9 [file] [log] [blame]
# Check that SIGINT handling aborts a build.
# RUN: rm -rf %t.build
# RUN: mkdir -p %t.build
# RUN: cp %s %t.build/build.llbuild
# RUN: cp %S/Inputs/wait-for-file %t.build
# RUN: /bin/sh -x -c \
# RUN: "%{llbuild} buildsystem build --serial --chdir %t.build --no-db &> %t.out & \
# RUN: echo $! >%t.build/llbuild.pid; \
# RUN: wait $(cat %t.build/llbuild.pid)" || true
# RUN: %{FileCheck} --input-file %t.out %s
#
# CHECK: SIGNAL
# CHECK: cancelling build.
client:
name: basic
targets:
"": ["llbuild.pid"]
commands:
SIGNAL:
tool: shell
inputs: ["<cleanup>"]
outputs: ["llbuild.pid"]
description: "SIGNAL"
args:
./wait-for-file llbuild.pid &&
cat llbuild.pid | xargs kill -SIGINT