pykickstart/tests/scripts/run_tests.sh
2023-03-14 14:59:35 -07:00

27 lines
612 B
Bash
Executable File

#!/bin/sh
PATH=/usr/bin:/usr/local/bin
SRC="$1"
cd "${SRC}" || exit 1
# Install test suite dependencies that are only available in
# certain package repos. Since this is throw-away, just install
# using pip.
pip-3 install pocketlint
pip-3 install ordered_set
pip-3 install nose==1.3.6
# Install required packages
dnf install -y git
# We need the translation canary in place too
[ -d translation-canary ] || git clone https://github.com/rhinstaller/translation-canary
# Run the test suite
make check || exit $?
make coverage COVERAGE=coverage-3 NOSE_PROCESSES=0 NOSE_PROCESS_TIMEOUT=60 || exit $?
exit 0