chore(core): skip ldml keyboard tests if node not available

This commit is contained in:
Marc Durdin 2022-08-27 08:47:34 +10:00
parent 44d7d5ca88
commit bc02ba984a
3 changed files with 16 additions and 13 deletions

View file

@ -289,9 +289,16 @@ fi
# TODO: in the future this should be part of the meson build, but
# it's too complicated at present due to old meson versions in
# debian packaging environments
if [[ ! -f "$KEYMAN_ROOT/developer/src/kmldmlc/build/kmldmlc.js" ]]; then
"$KEYMAN_ROOT/common/web/keyman-version/build.sh" configure build
"$KEYMAN_ROOT/developer/src/kmldmlc/build.sh" build
if $CONFIGURE; then
if type node >/dev/null 2>&1; then
echo "Note: Found node, checking and building kmldmlc dependency if needed"
if [[ ! -f "$KEYMAN_ROOT/developer/src/kmldmlc/build/kmldmlc.js" ]]; then
"$KEYMAN_ROOT/common/web/keyman-version/build.sh" configure build
"$KEYMAN_ROOT/developer/src/kmldmlc/build.sh" build
fi
else
echo "Note: could not find node, skipping kmldmlc dependency build, ldml tests will not be run"
fi
fi
if [[ $PLATFORM == native ]]; then

View file

@ -4,15 +4,6 @@
# Authors: Marc Durdin
#
if compiler.get_id() == 'gcc' or compiler.get_id() == 'clang' or compiler.get_id() == 'emscripten'
warns = [
'-Wno-missing-field-initializers',
'-Wno-unused-parameter'
]
else
warns = []
endif
tests = [
# disabling 000 and 002 until we have updates to core or to the keyboards so that they pass
# 'k_000_null_keyboard',

View file

@ -16,7 +16,12 @@ endif
# Build all keyboards in output folder; these are defined here and used in the
# keyboards subdir
subdir('keyboards')
node = find_program('node', required: false)
if node.found()
subdir('keyboards')
else
tests = []
endif
# Build ldml test executable