diff options
Diffstat (limited to 'pw_build/py/build_recipe_test.py')
-rw-r--r-- | pw_build/py/build_recipe_test.py | 41 |
1 files changed, 37 insertions, 4 deletions
diff --git a/pw_build/py/build_recipe_test.py b/pw_build/py/build_recipe_test.py index 6361da5b8..86ce9df21 100644 --- a/pw_build/py/build_recipe_test.py +++ b/pw_build/py/build_recipe_test.py @@ -47,20 +47,53 @@ class TestBuildRecipe(unittest.TestCase): BuildCommand( build_dir=Path('outbazel'), build_system_command='bazel', - build_system_extra_args=[], - targets=['build', '//pw_analog/...', '//pw_assert/...'], + build_system_extra_args=['build'], + targets=['//pw_analog/...', '//pw_assert/...'], ), # result [ 'bazel', - '--output_base', - 'outbazel', 'build', + '--symlink_prefix', + str(Path('outbazel') / 'bazel-'), '//pw_analog/...', '//pw_assert/...', ], ), ( + 'test command using bazel', + BuildCommand( + build_dir=Path('outbazel'), + build_system_command='bazel', + build_system_extra_args=['test'], + targets=['//...:all'], + ), + # result + [ + 'bazel', + 'test', + '--symlink_prefix', + str(Path('outbazel') / 'bazel-'), + '//...:all', + ], + ), + ( + 'clean command using bazel', + BuildCommand( + build_dir=Path('outbazel'), + build_system_command='bazel', + build_system_extra_args=['clean'], + targets=['//...:all'], + ), + # result + [ + 'bazel', + 'clean', + '--symlink_prefix', + str(Path('outbazel') / 'bazel-'), + ], + ), + ( 'cmake shell command', BuildCommand( build_dir=Path('outcmake'), |