summaryrefslogtreecommitdiff
path: root/util/run_tests.sh
blob: f8af2dc681fa0ef59d410efd909cfa6e3633405e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/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