debian-koji-osbuild/run-tests.sh
Christian Kellner 51f55998da run-test.sh: simple script to execute unit tests
Builds the test environment container and executes unit tests in
it.
2020-09-13 13:20:19 +02:00

14 lines
301 B
Bash
Executable file

#!/usr/bin/bash
set -euo pipefail
run_test() {
podman run -it -v $(pwd):/github/workspace:z --env "GITHUB_WORKSPACE=/github/workspace" koji.test "$1"
}
pushd test
podman build -t koji.test -f Dockerfile .
popd
run_test "python3 -m unittest discover -v test/unit/"
run_test "pylint test/**/*.py"