[Git][NTPsec/ntpsec][master] tests ieee754io: don't run ieee754io if no libparse
Gary E. Miller
gitlab at mg.gitlab.com
Tue Apr 4 19:22:37 UTC 2017
Gary E. Miller pushed to branch master at NTPsec / ntpsec
Commits:
947849ef by Gary E. Miller at 2017-04-04T12:21:23-07:00
tests ieee754io: don't run ieee754io if no libparse
- - - - -
1 changed file:
- tests/wscript
Changes:
=====================================
tests/wscript
=====================================
--- a/tests/wscript
+++ b/tests/wscript
@@ -63,25 +63,28 @@ def build(ctx):
source=libntp_source,
)
- # libparse/
- libparse_source = [
- "libparse/ieee754io.c",
- ] + common_source
+ if ctx.env.REFCLOCK_GENERIC:
+ # libparse only available/required wth generic refclock
- ctx.ntp_test(
- defines=unity_config + ["TEST_LIBPARSE=1"],
- features="c cprogram bld_include src_include libisc_include test",
- includes=["%s/tests/unity/" % srcnode,
- "%s/tests/libparse/" % srcnode,
- "%s/tests/common/" % srcnode
- ] + ctx.env.PLATFORM_INCLUDES,
- install_path=None,
- lib=["parse"],
- libpath=["libparse"],
- source=libparse_source,
- target="test_libparse",
- use="unity ntp isc parse M PTHREAD CRYPTO RT SOCKET NSL",
- )
+ # libparse/
+ libparse_source = [
+ "libparse/ieee754io.c",
+ ] + common_source
+
+ ctx.ntp_test(
+ defines=unity_config + ["TEST_LIBPARSE=1"],
+ features="c cprogram bld_include src_include libisc_include test",
+ includes=["%s/tests/unity/" % srcnode,
+ "%s/tests/libparse/" % srcnode,
+ "%s/tests/common/" % srcnode
+ ] + ctx.env.PLATFORM_INCLUDES,
+ install_path=None,
+ lib=["parse"],
+ libpath=["libparse"],
+ source=libparse_source,
+ target="test_libparse",
+ use="unity ntp isc parse M PTHREAD CRYPTO RT SOCKET NSL",
+ )
ntpd_source = [
# "ntpd/filegen.c",
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/947849ef6230e0ee01d8b947dc67b74e37a7197e
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170404/35e1156e/attachment.html>
More information about the vc
mailing list