xbps-src: add -K option for running the full testsuite.
Some packages have rather long test suites, with an option for a shorter one. With this option, one can choose between shorter tests (-Q) or the complete longer ones (-K). This also allows CI to run only the shorter testsuites. Make the appropriate changes to etc/default.conf and Manual.md as well.
This commit is contained in:
parent
fdf3fef491
commit
83cc290601
|
@ -364,6 +364,9 @@ rather than additional binary package names.
|
||||||
|
|
||||||
- `CROSS_BUILD` Set if `xbps-src` is cross compiling a package.
|
- `CROSS_BUILD` Set if `xbps-src` is cross compiling a package.
|
||||||
|
|
||||||
|
- `XBPS_CHECK_PKGS` Set if `xbps-src` is going to run tests for a package.
|
||||||
|
Longer testsuites should only be run in `do_check()` if it is set to `full`.
|
||||||
|
|
||||||
- `DESTDIR` Full path to the fake destdir used by the source pkg, set to
|
- `DESTDIR` Full path to the fake destdir used by the source pkg, set to
|
||||||
`<masterdir>/destdir/${sourcepkg}-${version}`.
|
`<masterdir>/destdir/${sourcepkg}-${version}`.
|
||||||
|
|
||||||
|
|
|
@ -71,8 +71,10 @@ XBPS_SUCMD="sudo /bin/sh -c"
|
||||||
|
|
||||||
# [OPTIONAL]
|
# [OPTIONAL]
|
||||||
# Enable running the (optional) do_check() function of a package.
|
# Enable running the (optional) do_check() function of a package.
|
||||||
|
# When set to 'full', will enable further testing for some packages.
|
||||||
#
|
#
|
||||||
#XBPS_CHECK_PKGS=yes
|
#XBPS_CHECK_PKGS=yes
|
||||||
|
#XBPS_CHECK_PKGS=full
|
||||||
|
|
||||||
# [OPTIONAL]
|
# [OPTIONAL]
|
||||||
# Enable building -dbg subpackages with debugging symbols. Please note
|
# Enable building -dbg subpackages with debugging symbols. Please note
|
||||||
|
|
7
xbps-src
7
xbps-src
|
@ -205,6 +205,8 @@ $(print_cross_targets)
|
||||||
|
|
||||||
-Q Enable running the check stage.
|
-Q Enable running the check stage.
|
||||||
|
|
||||||
|
-K Enable running the check stage with longer tests.
|
||||||
|
|
||||||
-q Suppress informational output of xbps-src (build output is still printed).
|
-q Suppress informational output of xbps-src (build output is still printed).
|
||||||
|
|
||||||
-r <repo>
|
-r <repo>
|
||||||
|
@ -381,7 +383,8 @@ while getopts "$XBPS_OPTSTRING" opt; do
|
||||||
o) XBPS_ARG_PKG_OPTIONS="$OPTARG"; XBPS_OPTIONS+=" -o $OPTARG";;
|
o) XBPS_ARG_PKG_OPTIONS="$OPTARG"; XBPS_OPTIONS+=" -o $OPTARG";;
|
||||||
p) XBPS_ARG_PRINT_VARIABLES="$OPTARG"; XBPS_OPTIONS+=" -p $OPTARG";;
|
p) XBPS_ARG_PRINT_VARIABLES="$OPTARG"; XBPS_OPTIONS+=" -p $OPTARG";;
|
||||||
q) XBPS_ARG_QUIET=1; XBPS_OPTIONS+=" -q";;
|
q) XBPS_ARG_QUIET=1; XBPS_OPTIONS+=" -q";;
|
||||||
Q) XBPS_ARG_CHECK_PKGS=1; XBPS_OPTIONS+=" -Q";;
|
Q) XBPS_ARG_CHECK_PKGS=yes; XBPS_OPTIONS+=" -Q";;
|
||||||
|
K) XBPS_ARG_CHECK_PKGS=full; XBPS_OPTIONS+=" -K";;
|
||||||
r) XBPS_ARG_ALT_REPOSITORY="$OPTARG"; XBPS_OPTIONS+=" -r $OPTARG";;
|
r) XBPS_ARG_ALT_REPOSITORY="$OPTARG"; XBPS_OPTIONS+=" -r $OPTARG";;
|
||||||
t) XBPS_ARG_TEMP_MASTERDIR=1; XBPS_OPTIONS+=" -t -C";;
|
t) XBPS_ARG_TEMP_MASTERDIR=1; XBPS_OPTIONS+=" -t -C";;
|
||||||
V) echo "xbps-src-$XBPS_SRC_VERSION $(xbps-uhelper -V)" && exit 0;;
|
V) echo "xbps-src-$XBPS_SRC_VERSION $(xbps-uhelper -V)" && exit 0;;
|
||||||
|
@ -459,7 +462,6 @@ fi
|
||||||
[ -n "$XBPS_ARG_TEMP_MASTERDIR" ] && XBPS_TEMP_MASTERDIR=1
|
[ -n "$XBPS_ARG_TEMP_MASTERDIR" ] && XBPS_TEMP_MASTERDIR=1
|
||||||
[ -n "$XBPS_ARG_BINPKG_EXISTS" ] && XBPS_BINPKG_EXISTS=1
|
[ -n "$XBPS_ARG_BINPKG_EXISTS" ] && XBPS_BINPKG_EXISTS=1
|
||||||
[ -n "$XBPS_ARG_USE_GIT_REVS" ] && XBPS_USE_GIT_REVS=1
|
[ -n "$XBPS_ARG_USE_GIT_REVS" ] && XBPS_USE_GIT_REVS=1
|
||||||
[ -n "$XBPS_ARG_CHECK_PKGS" ] && XBPS_CHECK_PKGS=1
|
|
||||||
[ -n "$XBPS_ARG_DEBUG_PKGS" ] && XBPS_DEBUG_PKGS=1
|
[ -n "$XBPS_ARG_DEBUG_PKGS" ] && XBPS_DEBUG_PKGS=1
|
||||||
[ -n "$XBPS_ARG_SKIP_DEPS" ] && XBPS_SKIP_DEPS=1
|
[ -n "$XBPS_ARG_SKIP_DEPS" ] && XBPS_SKIP_DEPS=1
|
||||||
[ -n "$XBPS_ARG_KEEP_ALL" ] && XBPS_KEEP_ALL=1
|
[ -n "$XBPS_ARG_KEEP_ALL" ] && XBPS_KEEP_ALL=1
|
||||||
|
@ -467,6 +469,7 @@ fi
|
||||||
[ -n "$XBPS_ARG_PRINT_VARIABLES" ] && XBPS_PRINT_VARIABLES="$XBPS_ARG_PRINT_VARIABLES"
|
[ -n "$XBPS_ARG_PRINT_VARIABLES" ] && XBPS_PRINT_VARIABLES="$XBPS_ARG_PRINT_VARIABLES"
|
||||||
[ -n "$XBPS_ARG_ALT_REPOSITORY" ] && XBPS_ALT_REPOSITORY="$XBPS_ARG_ALT_REPOSITORY"
|
[ -n "$XBPS_ARG_ALT_REPOSITORY" ] && XBPS_ALT_REPOSITORY="$XBPS_ARG_ALT_REPOSITORY"
|
||||||
[ -n "$XBPS_ARG_CROSS_BUILD" ] && XBPS_CROSS_BUILD="$XBPS_ARG_CROSS_BUILD"
|
[ -n "$XBPS_ARG_CROSS_BUILD" ] && XBPS_CROSS_BUILD="$XBPS_ARG_CROSS_BUILD"
|
||||||
|
[ -n "$XBPS_ARG_CHECK_PKGS" ] && XBPS_CHECK_PKGS="$XBPS_ARG_CHECK_PKGS"
|
||||||
[ -n "$XBPS_ARG_MAKEJOBS" ] && XBPS_MAKEJOBS="$XBPS_ARG_MAKEJOBS"
|
[ -n "$XBPS_ARG_MAKEJOBS" ] && XBPS_MAKEJOBS="$XBPS_ARG_MAKEJOBS"
|
||||||
|
|
||||||
export XBPS_BUILD_ONLY_ONE_PKG XBPS_SKIP_REMOTEREPOS XBPS_BUILD_FORCEMODE \
|
export XBPS_BUILD_ONLY_ONE_PKG XBPS_SKIP_REMOTEREPOS XBPS_BUILD_FORCEMODE \
|
||||||
|
|
Loading…
Reference in New Issue