1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
|
# Check that we behave properly when a command disappears.
#
# We use 'grep' to slice out two different subfiles from the same file.
#
# RUN: rm -rf %t.build
# RUN: mkdir -p %t.build
#
# RUN: grep -A1000 "VERSION-BEGIN-[1]" %s | grep -B10000 "VERSION-END-1" | grep -ve '^--$' > %t.build/build-1.llbuild
# RUN: %{llbuild} buildsystem build --serial --chdir %t.build -f build-1.llbuild > %t1.out
# RUN: %{FileCheck} --check-prefix CHECK-VERSION-1 --input-file %t1.out %s
#
# RUN: grep -A1000 "VERSION-BEGIN-[2]" %s | grep -B10000 "VERSION-END-2" | grep -ve '^--$' > %t.build/build-2.llbuild
# RUN: %{llbuild} buildsystem build --serial --chdir %t.build -f build-2.llbuild > %t2.out 2> %t2.err
# RUN: echo "END-OF-FILE" >> %t2.out
# RUN: echo "END-OF-FILE" >> %t2.err
# RUN: %{FileCheck} --check-prefix CHECK-VERSION-2 --input-file %t2.out %s
# RUN: %{FileCheck} --check-prefix CHECK-VERSION-2-ERR --input-file %t2.err %s
##### VERSION-BEGIN-1 #####
# CHECK-VERSION-1: echo output-1 > output-1
# CHECK-VERSION-1: cat output-1 > output
client:
name: basic
targets:
"": ["<output>"]
commands:
output:
tool: shell
inputs: ["<output-1>", "<fake>"]
outputs: ["<output>"]
args: cat output-1 > output
output-1:
tool: shell
outputs: ["<output-1>"]
args: echo output-1 > output-1
"<fake>":
tool: phony
inputs: ["<fake2>"]
outputs: ["<fake>"]
"<fake2>":
tool: phony
outputs: ["<fake2>"]
##### VERSION-END-1 #####
##### VERSION-BEGIN-2 #####
# CHECK-VERSION-2-NOT: output
# CHECK-VERSION-2: END-OF-FILE
# CHECK-VERSION-2-ERR-NOT: error
# CHECK-VERSION-2-ERR: END-OF-FILE
client:
name: basic
targets:
"": ["<output>"]
commands:
output:
tool: shell
inputs: ["<output-1>", "<fake>"]
outputs: ["<output>"]
args: cat output-1 > output
output-1:
tool: shell
outputs: ["<output-1>"]
args: echo output-1 > output-1
"<fake>":
tool: phony
inputs: ["<fake2>"]
outputs: ["<fake>"]
##### VERSION-END-2 #####
|