platform_build_blueprint/tests
Dan Willemsen d79f1af742 Add build wrapper to do stage selection before ninja
This wrapper script can be used instead of ninja to ensure the build
won't get stuck building the primary builder.

An example of when this would happen:

1. Do a successful build
2. Sync/make a change in the primary builder (soong, etc) that depends
   on a blueprint change.
3. The next build would notice that change, and rewind to the primary
   stage to rebuild the builder. That build would fail.
4. Sync/fix the blueprint code.
5. The next build would still fail. The bootstrap stage would need to
   be run in order to fix the primary stage, but we're still stuck in the
   primary stage. The only way to switch stages is to successfully
   complete everything required to choose the next stage.

This generally isn't a problem in the main stage, since there is no code
being built in the dependency chain leading up to stage selection.

Any existing wrappers (like soong) can execute this wrapper (optionally
skipping ninja execution) if they're worried about the above situation.
This isn't strictly required -- running ninja directly will still work
in most cases, you'll just need to re-run bootstrap.bash if you get into
a bad state.

Change-Id: I5901d7240a1daa388a786ceb1c8259502fc14058
2015-12-10 16:18:15 -08:00
..
bootstrap.bash Add test suite for bootstrapping 2015-07-23 22:04:42 -07:00
expected_all Use three stage builds 2015-07-29 17:14:00 -07:00
expected_manifest Use three stage builds 2015-07-29 17:14:00 -07:00
expected_none Add test suite for bootstrapping 2015-07-23 22:04:42 -07:00
expected_primary Use three stage builds 2015-07-29 17:14:00 -07:00
expected_rebuild_test Use three stage builds 2015-07-29 17:14:00 -07:00
expected_regen Use three stage builds 2015-07-29 17:14:00 -07:00
expected_start Use three stage builds 2015-07-29 17:14:00 -07:00
expected_start2 Use three stage builds 2015-07-29 17:14:00 -07:00
expected_start_add_tests Use three stage builds 2015-07-29 17:14:00 -07:00
expected_wrapper_all Add build wrapper to do stage selection before ninja 2015-12-10 16:18:15 -08:00
expected_wrapper_regen Add build wrapper to do stage selection before ninja 2015-12-10 16:18:15 -08:00
expected_wrapper_start Add build wrapper to do stage selection before ninja 2015-12-10 16:18:15 -08:00
expected_wrapper_start2 Add build wrapper to do stage selection before ninja 2015-12-10 16:18:15 -08:00
test.sh Add build wrapper to do stage selection before ninja 2015-12-10 16:18:15 -08:00