[ovs-dev] [PATCH ovn v6 09/12] tests: Use built objects for unit test deps

Numan Siddique numans at ovn.org
Tue Oct 5 02:41:43 UTC 2021


On Tue, Sep 28, 2021 at 11:54 AM Frode Nordahl
<frode.nordahl at canonical.com> wrote:
>
> Currently the tests/automake.mk adds source files from the project
> as needed and rebuilds these for the unit test programs.
>
> Use the already built objects instead.
>
> Signed-off-by: Frode Nordahl <frode.nordahl at canonical.com>

Acked-by: Numan Siddique <numans at ovn.org>

Numan

> ---
>  tests/automake.mk | 13 +++++--------
>  1 file changed, 5 insertions(+), 8 deletions(-)
>
> diff --git a/tests/automake.mk b/tests/automake.mk
> index 5b890d644..c4a7c0a5b 100644
> --- a/tests/automake.mk
> +++ b/tests/automake.mk
> @@ -243,17 +243,14 @@ tests_ovstest_SOURCES = \
>         tests/test-ovn.c \
>         controller/test-lflow-cache.c \
>         controller/test-ofctrl-seqno.c \
> -       controller/lflow-cache.c \
> -       controller/lflow-cache.h \
> -       controller/ofctrl-seqno.c \
> -       controller/ofctrl-seqno.h \
>         lib/test-ovn-features.c \
> -       northd/test-ipam.c \
> -       northd/ipam.c \
> -       northd/ipam.h
> +       northd/test-ipam.c
>
>  tests_ovstest_LDADD = $(OVS_LIBDIR)/daemon.lo \
> -    $(OVS_LIBDIR)/libopenvswitch.la lib/libovn.la
> +    $(OVS_LIBDIR)/libopenvswitch.la lib/libovn.la \
> +       controller/lflow-cache.$(OBJEXT) \
> +       controller/ofctrl-seqno.$(OBJEXT) \
> +       northd/ipam.$(OBJEXT)
>
>  # Python tests.
>  CHECK_PYFILES = \
> --
> 2.32.0
>
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-dev
>


More information about the dev mailing list