aboutsummaryrefslogtreecommitdiff
path: root/pw_build/py/build_recipe_test.py
diff options
context:
space:
mode:
authorXin Li <delphij@google.com>2024-01-17 22:13:58 -0800
committerXin Li <delphij@google.com>2024-01-17 22:13:58 -0800
commit28d03a2a1cabbe01d7bcb6cf5166c10e50d3c2c6 (patch)
treec1643be8ab17fc607cea748a8bb1d621a5964873 /pw_build/py/build_recipe_test.py
parentec2628a6ba2d0ecbe3ac10c8c772f6fc6acc345d (diff)
parentf054515492af5132f685cb23fe11891ee77104c9 (diff)
downloadpigweed-28d03a2a1cabbe01d7bcb6cf5166c10e50d3c2c6.tar.gz
Merge Android 24Q1 Release (ab/11220357)temp_319669529
Bug: 319669529 Merged-In: Iba357b308a79d0c8b560acd4f72b5423c9c83294 Change-Id: Icdf552029fb97a34e83c6dd7799433fc473a2506
Diffstat (limited to 'pw_build/py/build_recipe_test.py')
-rw-r--r--pw_build/py/build_recipe_test.py41
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'),