From 28b3dc1e1eca004cae6023b8e491835ecdfdd041 Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Tue, 13 Oct 2020 19:19:10 -0400 Subject: [PATCH] port: run namespace tests only on Linux MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I574d6e7419715e191fb9102e4cfc916ea0e529aa Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau --- tests/regression/Makefile.am | 8 ++++++-- tests/utils/testapp/Makefile.am | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/tests/regression/Makefile.am b/tests/regression/Makefile.am index cbac90da7..c76a519de 100644 --- a/tests/regression/Makefile.am +++ b/tests/regression/Makefile.am @@ -59,10 +59,14 @@ TESTS += ust/before-after/test_before_after \ ust/blocking/test_blocking \ ust/multi-lib/test_multi_lib \ ust/rotation-destroy-flush/test_rotation_destroy_flush \ - ust/namespaces/test_ns_contexts \ - ust/namespaces/test_ns_contexts_change \ tools/metadata/test_ust \ tools/relayd-grouping/test_ust + +if IS_LINUX +TESTS += \ + ust/namespaces/test_ns_contexts \ + ust/namespaces/test_ns_contexts_change +endif # IS_LINUX endif # HAVE_LIBLTTNG_UST_CTL if PYTHON_BINDING diff --git a/tests/utils/testapp/Makefile.am b/tests/utils/testapp/Makefile.am index 76b1c8327..a8642e931 100644 --- a/tests/utils/testapp/Makefile.am +++ b/tests/utils/testapp/Makefile.am @@ -1,8 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-only SUBDIRS = \ - gen-ns-events \ gen-ust-events \ - gen-ust-events-ns \ gen-ust-nevents \ gen-ust-nevents-str \ gen-ust-tracef \ @@ -22,4 +20,10 @@ if HAVE_MODULES_USERSPACE_CALLSTACK_CONTEXT SUBDIRS += gen-syscall-events-callstack endif # HAVE_MODULES_USERSPACE_CALLSTACK_CONTEXT +if IS_LINUX +SUBDIRS += \ + gen-ns-events \ + gen-ust-events-ns +endif # IS_LINUX + noinst_HEADERS = signal-helper.h -- 2.34.1