init for testing code

2019-04-05 Thread Hal Murray via devel
I'm adding a trap to ntplib/lib_getbuf() that needs to get initialized.

I found main() in tests/common/tests_main.c, but I can't find any similar 
initialization in the python testers.

Where should I be looking?


-- 
These are my opinions.  I hate spam.



___
devel mailing list
devel@ntpsec.org
http://lists.ntpsec.org/mailman/listinfo/devel


Re: waf issue?

2019-04-05 Thread Richard Laager via devel
On 4/5/19 3:12 AM, Udo van den Heuvel via devel wrote:
> Hello,
> 
> In my spec file (for Fedora) I configure and build nptsec with:
> 
> %build
> CFLAGS="-O2" ./waf configure \
> --prefix=/usr\
> --enable-early-droproot\
> --refclock=nmea,generic\
> --libdir=%{_libdir}\
> --docdir=%{_docdir}/ntpsec\
> --enable-doc
> CFLAGS="-O2" ./waf build
> 
> %install
> 
> DESTDIR=$RPM_BUILD_ROOT ./waf install
> 
> 
> 
> Using this method we end up with service files for systemd with strings
> in them like @BINDIR@ and @SBINDIR@.
> Isn't waf supposed to handle this?

Yes. I ran your commands and it works for me.

-- 
Richard
___
devel mailing list
devel@ntpsec.org
http://lists.ntpsec.org/mailman/listinfo/devel


waf issue?

2019-04-05 Thread Udo van den Heuvel via devel
Hello,

In my spec file (for Fedora) I configure and build nptsec with:

%build
CFLAGS="-O2" ./waf configure \
--prefix=/usr\
--enable-early-droproot\
--refclock=nmea,generic\
--libdir=%{_libdir}\
--docdir=%{_docdir}/ntpsec\
--enable-doc
CFLAGS="-O2" ./waf build

%install

DESTDIR=$RPM_BUILD_ROOT ./waf install



Using this method we end up with service files for systemd with strings
in them like @BINDIR@ and @SBINDIR@.
Isn't waf supposed to handle this?

Kind regards,
Udo
___
devel mailing list
devel@ntpsec.org
http://lists.ntpsec.org/mailman/listinfo/devel