diff options
-rw-r--r-- | abuild.in | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -226,6 +226,12 @@ default_sanitycheck() { check_secfixes_comment || return 1 makedepends_has 'g++' && ! options_has toolchain && warning "g++ should not be in makedepends" + + if ! options_has "!check" && [ -n "$REQUIRE_CHECK" ]; then + (unset check; . "$APKBUILD"; type check >/dev/null 2>&1) || \ + die "Testsuites (abuild check) are required or needs to be explicitly disabled!" + fi + return 0 } |