Skip to content

Commit

Permalink
test: common: always build libtest_common
Browse files Browse the repository at this point in the history
Instead of depending on presence of `libcunit`, always build
`libtest_common`. Otherwise, this will lead to build issues if
`libcunit` is not present.

Signed-off-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
  • Loading branch information
TuomasTaipale authored and MatiasElo committed Sep 20, 2024
1 parent 736e1e8 commit ec87d39
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/common/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
include $(top_srcdir)/test/Makefile.inc

noinst_LTLIBRARIES = \
libbench_common.la
libbench_common.la \
libtest_common.la

libbench_common_la_SOURCES = bench_common.c bench_common.h
libtest_common_la_SOURCES = export_results.c export_results.h

if cunit_support

noinst_LTLIBRARIES += \
libcunit_common.la \
libcpumask_common.la \
libpacket_common.la \
libtest_common.la \
libthrmask_common.la

libcunit_common_la_SOURCES = odp_cunit_common.c odp_cunit_common.h
Expand All @@ -21,8 +22,6 @@ libcpumask_common_la_SOURCES = mask_common.c mask_common.h

libpacket_common_la_SOURCES = packet_common.c packet_common.h

libtest_common_la_SOURCES = export_results.c export_results.h

libthrmask_common_la_SOURCES = mask_common.c mask_common.h
libthrmask_common_la_CFLAGS = $(AM_CFLAGS) -DTEST_THRMASK

Expand Down

0 comments on commit ec87d39

Please sign in to comment.