blob: 74417473cca6f239681a693bc11161f166bed9a0 [file] [log] [blame]
# Check that handle the automatic dependency on the Ninja build file, and that
# we reload it properly if it is rebuilt.
#
# RUN: rm -rf %t.build
# RUN: mkdir -p %t.build
# RUN: touch %t.build/input
# RUN: cp %s %t.build/build.ninja
# RUN: %{llbuild} ninja build --jobs 1 --chdir %t.build &> %t1.out
# RUN: %{FileCheck} < %t1.out %s
# CHECK: [1/{{.*}}] GENERATE MANIFEST
# CHECK: [1/{{.*}}] cat input > output
# FIXME: This test fails non-deterministically on Linux, we need to investigate (rdar://problem/23239574).
#
# REQUIRES: platform=Darwin
rule GENERATE_MANIFEST
command = echo "build output: CAT input" >> build.ninja
description = GENERATE MANIFEST
rule CAT
command = cat ${in} > ${out}
build build.ninja: GENERATE_MANIFEST