mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 11:37:20 -08:00
net-misc/ntpsec: Run tests conditionally
I am requiring FEATURES+=" test" and USE+=" test" for this. Bug: https://bugs.gentoo.org/831352 Signed-off-by: James Browning <JamesB.fe80@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/36963 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -36,8 +36,9 @@ NTPSEC_REFCLOCK=(
|
||||
shm pps hpgps zyfer arbiter nmea modem local
|
||||
)
|
||||
|
||||
IUSE="${NTPSEC_REFCLOCK[@]} debug doc early gdb heat libbsd nist ntpviz samba seccomp smear" #ionice
|
||||
IUSE="${NTPSEC_REFCLOCK[@]} debug doc early gdb heat libbsd nist ntpviz samba seccomp smear test" #ionice
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE} nist? ( local )"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
# net-misc/pps-tools oncore,pps
|
||||
DEPEND="
|
||||
@@ -128,7 +129,11 @@ src_compile() {
|
||||
}
|
||||
|
||||
src_test() {
|
||||
waf-utils_src_compile check
|
||||
python_test
|
||||
}
|
||||
|
||||
python_test() {
|
||||
"${EPYTHON}" "${WAF_BINARY}" check -v -j $(makeopts_jobs)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
||||
@@ -35,8 +35,9 @@ NTPSEC_REFCLOCK=(
|
||||
shm pps hpgps zyfer arbiter nmea modem local
|
||||
)
|
||||
|
||||
IUSE="${NTPSEC_REFCLOCK[@]} debug doc early heat libbsd nist ntpviz samba seccomp smear" #ionice
|
||||
IUSE="${NTPSEC_REFCLOCK[@]} debug doc early heat libbsd nist ntpviz samba seccomp smear test" #ionice
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE} nist? ( local )"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
# net-misc/pps-tools oncore,pps
|
||||
DEPEND="
|
||||
@@ -124,7 +125,11 @@ src_compile() {
|
||||
}
|
||||
|
||||
src_test() {
|
||||
waf-utils_src_compile check
|
||||
python_test
|
||||
}
|
||||
|
||||
python_test() {
|
||||
"${EPYTHON}" "${WAF_BINARY}" check -v -j $(makeopts_jobs)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
||||
@@ -35,8 +35,9 @@ NTPSEC_REFCLOCK=(
|
||||
shm pps hpgps zyfer arbiter nmea modem local
|
||||
)
|
||||
|
||||
IUSE="${NTPSEC_REFCLOCK[@]} debug doc early heat libbsd nist ntpviz samba seccomp smear" #ionice
|
||||
IUSE="${NTPSEC_REFCLOCK[@]} debug doc early heat libbsd nist ntpviz samba seccomp smear test" #ionice
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE} nist? ( local )"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
# net-misc/pps-tools oncore,pps
|
||||
DEPEND="
|
||||
@@ -124,7 +125,11 @@ src_compile() {
|
||||
}
|
||||
|
||||
src_test() {
|
||||
waf-utils_src_compile check
|
||||
python_test
|
||||
}
|
||||
|
||||
python_test() {
|
||||
"${EPYTHON}" "${WAF_BINARY}" check -v -j $(makeopts_jobs)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
||||
Reference in New Issue
Block a user