aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTuomas Taipale <tuomas.taipale@nokia.com>2023-02-09 11:19:08 +0000
committerMatias Elo <matias.elo@nokia.com>2023-04-12 09:49:27 +0300
commit62a5f3bdef924c0e2bf92e0413b18250e0d332ef (patch)
tree88a527d9bea34e0b53df25d44616b8771f4cb811 /test
parent6820f5d8122268fd65fb031ecb217f1403bcf8a9 (diff)
test: ipsecfwd: build tester conditionally
`odp_ipsecfwd` utilizes `libconfig` so build the tester only if the library is found. Signed-off-by: Tuomas Taipale <tuomas.taipale@nokia.com> Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
Diffstat (limited to 'test')
-rw-r--r--test/performance/Makefile.am10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/performance/Makefile.am b/test/performance/Makefile.am
index 9644b8cb8..89d6fec7e 100644
--- a/test/performance/Makefile.am
+++ b/test/performance/Makefile.am
@@ -19,7 +19,6 @@ COMPILE_ONLY = odp_cpu_bench \
odp_crypto \
odp_dma_perf \
odp_ipsec \
- odp_ipsecfwd \
odp_l2fwd \
odp_packet_gen \
odp_pktio_ordered \
@@ -29,6 +28,10 @@ COMPILE_ONLY = odp_cpu_bench \
odp_scheduling \
odp_timer_perf
+if LIBCONFIG
+COMPILE_ONLY += odp_ipsecfwd
+endif
+
TESTSCRIPTS = odp_cpu_bench_run.sh \
odp_crypto_run.sh \
odp_dma_perf_run.sh \
@@ -62,7 +65,6 @@ odp_crc_SOURCES = odp_crc.c
odp_crypto_SOURCES = odp_crypto.c
odp_dma_perf_SOURCES = odp_dma_perf.c
odp_ipsec_SOURCES = odp_ipsec.c
-odp_ipsecfwd_SOURCES = odp_ipsecfwd.c
odp_lock_perf_SOURCES = odp_lock_perf.c
odp_mem_perf_SOURCES = odp_mem_perf.c
odp_packet_gen_SOURCES = odp_packet_gen.c
@@ -78,6 +80,10 @@ odp_sched_perf_SOURCES = odp_sched_perf.c
odp_stress_SOURCES = odp_stress.c
odp_timer_perf_SOURCES = odp_timer_perf.c
+if LIBCONFIG
+odp_ipsecfwd_SOURCES = odp_ipsecfwd.c
+endif
+
# l2fwd test depends on generator example
EXTRA_odp_l2fwd_DEPENDENCIES = $(top_builddir)/example/generator/odp_generator$(EXEEXT)
$(top_builddir)/example/generator/odp_generator$(EXEEXT):