summaryrefslogtreecommitdiff
path: root/util/ec3po/run_tests.sh
blob: d61b2b428e6fb3514f54d376d68a49e2e98c7a73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
#
# Copyright 2015 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

set -e

my_dir="$(realpath -e -- "$(dirname -- "$0")")"
parent_dir="$(realpath -e -- "$my_dir/..")"

PYTHONPATH="$parent_dir" python3 -s -m unittest \
    ec3po.console_unittest \
    ec3po.interpreter_unittest \
    && touch -- "$my_dir/.tests-passed"