aboutsummaryrefslogtreecommitdiffstats
path: root/run-tests.sh
blob: e948e3a54aafcd3441ffd38cf85d7f92d071e1ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright 2023 Google LLC

set -e -u

cd "$(dirname "$(realpath "$0")")"
export PATH="$PWD:$PATH"

for script in tests/*.py; do
	echo "Running $script"
	if ! PYTHONPATH=. python3 "$script"; then
		echo 1>&2 "$script failed!"
		exit 1
	fi
done
echo "All tests passed!"