xbps-src/libexec: add make_check option.
Allows a template to define in which circumstances its do_check phase should run, without requiring custom do_check definitions in each template (also makes it easier to change how build styles do things without checking as many templates). Add to Manual and CONTRIBUTING as well.
This commit is contained in:
parent
42d7596981
commit
2a748e7e6d
3 changed files with 27 additions and 2 deletions
|
@ -32,6 +32,17 @@ if [ -z "$XBPS_CHECK_PKGS" ]; then
|
|||
exit 0
|
||||
fi
|
||||
|
||||
if [ "$make_check" = no ]; then
|
||||
msg_normal "${pkgname}-${version}_${revision}: skipping check (make_check=no) ...\n"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ "$make_check" = extended -a "$XBPS_CHECK_PKGS" != full ]; then
|
||||
msg_normal \
|
||||
"${pkgname}-${version}_${revision}: skipping check (make_check=extended and XBPS_CHECK_PKGS is not 'full') ...\n"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
for f in $XBPS_COMMONDIR/environment/check/*.sh; do
|
||||
source_file "$f"
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue