blob: 56732ee13e5350edba4f4aa8095680d305927b83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/bin/bash
# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Runs all the unit tests in the util dir. Uses relative paths, so don't run
# from any ebuild.
# Show commands being run.
set -x
# Exit if any command exits non-zero.
set -e
# cd to the ec directory.
cd "$(dirname "$(realpath -e "${BASH_SOURCE[0]}")")"/..
# Run pytest
pytest util "$@"
# Run shell tests
cd util
./test-inject-keys.sh
# Run the Zephyr config tests
# NOTE: this uses the Zephyr version of kconfiglib, runs separately from
# test_kconfig_check.py
pytest check_zephyr_project_config_unittest.py
|