2022-09-09 14:08:57 +00:00
|
|
|
# Setup hook for unittest.
|
|
|
|
echo "Sourcing unittest-check-hook"
|
|
|
|
|
|
|
|
unittestCheckPhase() {
|
|
|
|
echo "Executing unittestCheckPhase"
|
|
|
|
runHook preCheck
|
|
|
|
|
|
|
|
eval "@pythonCheckInterpreter@ -m unittest discover $unittestFlagsArray"
|
|
|
|
|
|
|
|
runHook postCheck
|
|
|
|
echo "Finished executing unittestCheckPhase"
|
|
|
|
}
|
|
|
|
|
|
|
|
if [ -z "${dontUseUnittestCheck-}" ] && [ -z "${installCheckPhase-}" ]; then
|
|
|
|
echo "Using unittestCheckPhase"
|
2024-10-11 05:15:48 +00:00
|
|
|
appendToVar preDistPhases unittestCheckPhase
|
2022-09-09 14:08:57 +00:00
|
|
|
fi
|