Lines Matching full:build
5 # This test exercises the bootstrapping process of the build system
18 local bootstrap_mtime1=$(stat -c "%y" out/soong/.bootstrap/build.ninja)
19 local output_mtime1=$(stat -c "%y" out/soong/build.ninja)
21 local bootstrap_mtime2=$(stat -c "%y" out/soong/.bootstrap/build.ninja)
22 local output_mtime2=$(stat -c "%y" out/soong/build.ninja)
26 fail "Bootstrap Ninja file did not change on null build"
30 fail "Output Ninja file changed on null build"
37 local mtime1=$(stat -c "%y" out/soong/.bootstrap/build.ninja)
39 sed -i 's/pluginGenSrcCmd/pluginGenSrcCmd2/g' build/blueprint/bootstrap/bootstrap.go
42 local mtime2=$(stat -c "%y" out/soong/.bootstrap/build.ninja)
61 grep -q "^# Module:.*my_little_binary_host" out/soong/build.ninja || fail "module not found"
72 grep -q "^# Module:.*my_little_binary_host" out/soong/build.ninja && fail "old module found"
73 grep -q "^# Module:.*my_great_binary_host" out/soong/build.ninja || fail "new module not found"
80 local mtime1=$(stat -c "%y" out/soong/build.ninja)
92 local mtime2=$(stat -c "%y" out/soong/build.ninja)
97 …grep -q "^# Module:.*my_little_binary_host$" out/soong/build.ninja || fail "New module not in outp…
114 grep -q "^# Module:.*my_little_binary_host$" out/soong/build.ninja || fail "Module not in output"
119 if grep -q "^# Module:.*my_little_binary_host$" out/soong/build.ninja; then
124 # Test that an incremental build with a glob doesn't rerun soong_build, and
125 # only regenerates the globs on the first but not the second incremental build.
129 # This test needs to start from a clean build, but setup creates an
143 local ninja_mtime1=$(stat -c "%y" out/soong/build.ninja)
148 fail "Glob deps file unexpectedly written on first build"
152 local ninja_mtime2=$(stat -c "%y" out/soong/build.ninja)
158 fail "Glob deps file missing after second build"
164 fail "Ninja file rewritten on null incremental build"
168 local ninja_mtime3=$(stat -c "%y" out/soong/build.ninja)
172 fail "Ninja file rewritten on null incremental build"
175 # The bpglob commands should not rerun after the first incremental build.
177 fail "Glob deps file rewritten on second null incremental build"
193 local mtime1=$(stat -c "%y" out/soong/build.ninja)
198 local mtime2=$(stat -c "%y" out/soong/build.ninja)
203 grep -q my_little_library.py out/soong/build.ninja || fail "new file is not in output"
259 ctx.Build(pctx, android.BuildParams{
269 grep -q "CHERRY IS TASTY" out/soong/build.ninja \
274 grep -q "CHERRY IS RED" out/soong/build.ninja \
276 local mtime1=$(stat -c "%y" out/soong/build.ninja)
279 local mtime2=$(stat -c "%y" out/soong/build.ninja)
289 local mtime1=$(stat -c "%y" out/soong/build.ninja)
341 ctx.Build(pctx, android.BuildParams{
351 local mtime2=$(stat -c "%y" out/soong/build.ninja)
356 grep -q "Make it so" out/soong/build.ninja || fail "New action not present"
359 # Tests a glob in a build= statement in an Android.bp file, which is interpreted
366 build=["foo*.bp"]
419 ctx.Build(pctx, android.BuildParams{
429 local mtime1=$(stat -c "%y" out/soong/build.ninja)
431 grep -q "Make it so" out/soong/build.ninja || fail "Original action not present"
461 local mtime2=$(stat -c "%y" out/soong/build.ninja)
466 grep -q "Engage" out/soong/build.ninja || fail "New action not present"
468 if grep -q "Make it so" out/soong/build.ninja; then
476 local mtime1=$(stat -c "%y" out/soong/build.ninja)
478 prebuilts/build-tools/linux-x86/bin/ninja -f out/soong/build.ninja soong_docs
480 local mtime2=$(stat -c "%y" out/soong/build.ninja)
483 fail "Output Ninja file changed on null build"
508 [[ -e out/soong/bp2build/a/BUILD ]] || fail "a/BUILD not created"
509 [[ -L out/soong/workspace/a/BUILD ]] || fail "a/BUILD not symlinked"
522 [[ -e out/soong/bp2build/b/BUILD ]] || fail "a/BUILD not created"
523 [[ -L out/soong/workspace/b/BUILD ]] || fail "a/BUILD not symlinked"
530 local mtime1=$(stat -c "%y" out/soong/build.ninja)
533 local mtime2=$(stat -c "%y" out/soong/build.ninja)
536 fail "Output Ninja file changed on null build"
554 grep -q a1.txt out/soong/bp2build/a/BUILD || fail "a1.txt not in BUILD file"
558 grep -q a2.txt out/soong/bp2build/a/BUILD || fail "a2.txt not in BUILD file"
586 [[ -L out/soong/workspace/a/b/BUILD ]] || fail "BUILD file not symlinked"
587 [[ "$(readlink -f out/soong/workspace/a/b/BUILD)" =~ bp2build/a/b/BUILD$ ]] \
588 || fail "BUILD files symlinked at the wrong place"
619 touch a/BUILD
629 [[ -L out/soong/workspace/a/BUILD ]] || fail "BUILD file not symlinked"
630 [[ "$(readlink -f out/soong/workspace/a/BUILD)" =~ bp2build/a/BUILD$ ]] \
631 || fail "BUILD files symlinked to the wrong place"
637 mkdir -p a/BUILD
647 mkdir -p b/BUILD
658 fail "Build should have failed"
661 grep -q "a/BUILD' exist" "$MOCK_TOP/errors" || fail "Error for a/BUILD not found"
662 grep -q "b/BUILD' exist" "$MOCK_TOP/errors" || fail "Error for b/BUILD not found"