Add unit tests for utils macros
[lttng-ust.git] / tests / unit / ust-utils / Makefile.am
diff --git a/tests/unit/ust-utils/Makefile.am b/tests/unit/ust-utils/Makefile.am
new file mode 100644 (file)
index 0000000..ec9ebe2
--- /dev/null
@@ -0,0 +1,15 @@
+# SPDX-License-Identifier: LGPL-2.1-only
+
+AM_CPPFLAGS += -I$(top_srcdir)/tests/utils
+
+noinst_PROGRAMS = test_ust_utils
+test_ust_utils_SOURCES = ust-utils.c ust-utils-common.h
+test_ust_utils_LDADD = $(top_builddir)/liblttng-ust/liblttng-ust.la \
+       $(top_builddir)/tests/utils/libtap.a
+
+if HAVE_CXX
+noinst_PROGRAMS += test_ust_utils_cxx
+test_ust_utils_cxx_SOURCES = ust-utils-cxx.cpp ust-utils-common.h
+test_ust_utils_cxx_LDADD = $(top_builddir)/liblttng-ust/liblttng-ust.la \
+       $(top_builddir)/tests/utils/libtap.a
+endif
This page took 0.023936 seconds and 4 git commands to generate.