[LTP] [PATCH v3 2/8] Add 'make check' to the build system

Cyril Hrubis
2021-08-30T14:33:33Z

Hi!
> $ make check
> ...
> route-change-netlink.c:13:11: error: unable to open 'libmnl/libmnl.h'
>
> <libmnl/libmnl.h> is guarded by #ifdef HAVE_LIBMNL (config.h). Maybe there is a
> way to pass it to sparse. But that'd silently prevent to check code we want to
> check, thus it's probably better to just require to have everything installed.

Well if you are hacking on a test that requires libnl and you want to
run 'make check' before submission it has to be installed anyways. So
this is not a big problem for the intended usage...

--
Cyril Hrubis
chrubis@suse.cz