| # Check the handling of commands which have changed. |
| |
| # RUN: rm -rf %t.build |
| # RUN: mkdir -p %t.build |
| # RUN: cp %s %t.build/build.ninja |
| # RUN: echo input-1 > %t.build/input-1 |
| # RUN: echo input-2 > %t.build/input-2 |
| # RUN: echo "build output: CAT input-1 input-2" > %t.build/output-rule.ninja |
| # RUN: %{llbuild} ninja build --jobs 1 --chdir %t.build &> %t.out |
| # RUN: %{FileCheck} --check-prefix=CHECK-FIRST < %t.out %s |
| |
| # Change the manifest and rebuild. |
| # |
| # RUN: echo "build output: CAT input-1" > %t.build/output-rule.ninja |
| # RUN: %{llbuild} ninja build --jobs 1 --chdir %t.build &> %t.out |
| # RUN: %{FileCheck} --check-prefix=CHECK-SECOND < %t.out %s |
| |
| # CHECK-FIRST: [1/{{.*}}] cat input-1 input-2 > output |
| |
| # CHECK-SECOND: [1/{{.*}}] cat input-1 > output |
| |
| rule CAT |
| command = cat ${in} > ${out} |
| |
| include output-rule.ninja |
| |
| default output |