Marcel Telka
2023-05-08 b0936c3d17bec2207ce549b0abd7cead021fcce5
tools/perl-integrate-module: check test environment before running tests

1 files modified
4 ■■■■ changed files
tools/perl-integrate-module 4 ●●●● patch | view | raw | blame | history
tools/perl-integrate-module
@@ -431,6 +431,10 @@
# Run tests to make sure they pass and to create result snapshots
TESTED_VERSIONS=
for v in $PERL_VERSIONS ; do
    # Check the test environment
    ! $GMAKE PERL_VERSIONS=$v test-env-check > /dev/null 2>&1 && printf "ERROR: 'gmake test-env-check' failed for %s!\n" "$v" >&2 && continue
    # Run the test
    ! $GMAKE PERL_VERSIONS=$v test > /dev/null 2>&1 && printf "ERROR: Testing failed for %s!\n" "$v" >&2 && continue
    # If there is no snapshot produced the component likely does not support tests