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:
James Browning
2024-06-14 09:02:20 +01:00
committed by Sam James
parent cfc29c8eec
commit d1bdf4a406
3 changed files with 21 additions and 6 deletions
+7 -2
View File
@@ -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() {
+7 -2
View File
@@ -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() {
+7 -2
View File
@@ -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() {