Skip to content

Commit e2ca32b

Browse files
committed
Merge remote-tracking branch 'upstream/master' into chore/resources/keyboard3-epic-ldml
2 parents 703a4f8 + 82d15b6 commit e2ca32b

File tree

6 files changed

+41
-7
lines changed

6 files changed

+41
-7
lines changed

HISTORY.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Keyman Version History
22

3+
## 17.0.177 alpha 2023-09-20
4+
5+
* chore(linux): Add coverage action to `ibus-keyman/build.sh` (#9583)
6+
* docs(common): Fix documentation for `builder_describe_internal_dependency` (#9582)
7+
38
## 17.0.176 alpha 2023-09-19
49

510
* chore(oem/fv/android): Update Gradle to 7.4 (#9590)

VERSION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
17.0.177
1+
17.0.178

docs/settings/linux/tasks.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,23 @@
166166
"group": "build",
167167
"detail": "run unit and integration tests of ibus-keyman"
168168
},
169+
{
170+
"type": "shell",
171+
"label": "ibus-keyman: report",
172+
"command": "./build.sh",
173+
"args": [
174+
"test",
175+
"--report",
176+
"--debug",
177+
"--coverage",
178+
"--no-integration"
179+
],
180+
"options": {
181+
"cwd": "${workspaceFolder}/linux/ibus-keyman/",
182+
},
183+
"group": "build",
184+
"detail": "run tests and create unit test coverage report"
185+
},
169186
{
170187
"type": "shell",
171188
"label": "keyman-config: tests",

linux/ibus-keyman/build.sh

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ builder_describe \
2020
"install install artifacts" \
2121
"uninstall uninstall artifacts" \
2222
"@/core:arch" \
23-
"--no-integration don't run integration tests"
23+
"--no-integration don't run integration tests" \
24+
"--report create coverage report" \
25+
"--coverage capture test coverage"
2426

2527
builder_parse "$@"
2628

@@ -40,6 +42,12 @@ builder_describe_outputs \
4042
configure "${MESON_PATH}/build.ninja" \
4143
build "${MESON_PATH}/src/ibus-engine-keyman"
4244

45+
if builder_has_option --coverage; then
46+
MESON_COVERAGE=-Db_coverage=true
47+
else
48+
MESON_COVERAGE=
49+
fi
50+
4351
if builder_start_action clean; then
4452
rm -rf "$THIS_SCRIPT_PATH/../build/"
4553
builder_finish_action success clean
@@ -48,7 +56,7 @@ fi
4856
if builder_start_action configure; then
4957
cd "$THIS_SCRIPT_PATH"
5058
# shellcheck disable=SC2086
51-
meson setup "$MESON_PATH" --werror --buildtype $MESON_TARGET "${builder_extra_params[@]}"
59+
meson setup "$MESON_PATH" --werror --buildtype $MESON_TARGET ${MESON_COVERAGE} "${builder_extra_params[@]}"
5260
builder_finish_action success configure
5361
fi
5462

@@ -65,6 +73,10 @@ if builder_start_action test; then
6573
else
6674
meson test --print-errorlogs $builder_verbose
6775
fi
76+
if builder_has_option --coverage; then
77+
# Note: requires lcov > 1.16 to properly work (see https://github.com/mesonbuild/meson/issues/6747)
78+
ninja coverage-html
79+
fi
6880
builder_finish_action success test
6981
fi
7082

resources/build/build-utils.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,8 +510,8 @@ builder_describe_internal_dependency action:target depaction:deptarget ...
510510

511511
```bash
512512
builder_describe_internal_dependency \
513-
mac:build mac-x86_64:build \
514-
mac:build mac-arm64:build
513+
build:mac build:mac-x86_64 \
514+
build:mac build:mac-arm64
515515
```
516516

517517
**Note:** actions and targets must be fully specified, and this _must_ be called

resources/builder.inc.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,8 +1143,8 @@ _builder_define_default_internal_dep() {
11431143
# 2: depaction:deptarget The dependency action and target
11441144
# Example:
11451145
# builder_describe_internal_dependency \
1146-
# mac:build mac-x86_64:build \
1147-
# mac:build mac-arm64:build
1146+
# build:mac build:mac-x86_64 \
1147+
# build:mac build:mac-arm64
11481148
#
11491149
# Note: actions and targets must be fully specified, and this _must_
11501150
# be called before either builder_describe_outputs or builder_parse in

0 commit comments

Comments
 (0)