]> git.proxmox.com Git - mirror_frr.git/commit
tests: use BUILT_SOURCES in tests/Makefile.am for automake 1.16.1
authorArthur Jones <arthur.jones@riverbed.com>
Mon, 11 Jun 2018 21:55:50 +0000 (14:55 -0700)
committerArthur Jones <arthur.jones@riverbed.com>
Mon, 2 Jul 2018 23:38:49 +0000 (16:38 -0700)
commit5c0ce21bb1c84bef93cc3e52bb89d3d54917a6a9
treedbd6faaef539f0fd931b86454f317faf097d4204
parent3f3950c51c1ac75b5f3a541dfd15d517184f20a4
tests: use BUILT_SOURCES in tests/Makefile.am for automake 1.16.1

When trying to run make check using automake 1.16.1, we get:

CC isisd/test_fuzz_isis_tlv-test_fuzz_isis_tlv.o
isisd/test_fuzz_isis_tlv.c:1:10: fatal error: test_fuzz_isis_tlv_tests.h: No such file or directory
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:1096: recipe for target 'isisd/test_fuzz_isis_tlv-test_fuzz_isis_tlv.o' failed
make[1]: *** [isisd/test_fuzz_isis_tlv-test_fuzz_isis_tlv.o] Error 1
make[1]: Leaving directory '/src/frr-frr-5.0/tests'
Makefile:1220: recipe for target 'check-am' failed
make: *** [check-am] Error 2

From reading the automake docs, it looks like there may be a more
reliable way to express built files in the Makefile.am using BUILT_SOURCES.
Using this method, we seem to build fine now on 1.16.1 and this
has been tested on Ubuntu 18.04, CentOS 7 and Alpine edge (which uses
automake 1.16.1).

NB 5.0:

This cherry-pick from master will make Alpine packaging easier

Issue: https://github.com/FRRouting/frr/issues/2403
Signed-off-by: Arthur Jones <arthur.jones@riverbed.com>
tests/Makefile.am