From 4fcb574d104f496e0f150189745bc6847fc2a355 Mon Sep 17 00:00:00 2001 From: Nikolaus Rath Date: Fri, 11 Aug 2017 10:41:58 +0200 Subject: Don't build passthrough_ll under BSD. --- example/meson.build | 9 +++++++-- test/test_examples.py | 3 +++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/example/meson.build b/example/meson.build index 4497288..b6f4418 100644 --- a/example/meson.build +++ b/example/meson.build @@ -1,9 +1,14 @@ # Attention, emacs, please use -*- mode: python -*- # (even though this isn't actually Python code) -examples = [ 'passthrough', 'passthrough_fh', 'null', 'hello', 'hello_ll', +examples = [ 'passthrough', 'passthrough_fh', + 'null', 'hello', 'hello_ll', 'ioctl', 'ioctl_client', 'poll_client', - 'passthrough_ll', 'cuse', 'cuse_client' ] + 'cuse', 'cuse_client' ] + +if not platform.endswith('bsd') + examples += 'passthrough_ll' +endif threaded_examples = [ 'notify_inval_inode', 'notify_store_retrieve', diff --git a/test/test_examples.py b/test/test_examples.py index e20b47c..30a9337 100755 --- a/test/test_examples.py +++ b/test/test_examples.py @@ -60,6 +60,9 @@ def test_hello(tmpdir, name, options): else: umount(mount_process, mnt_dir) +@pytest.mark.skipif( + not os.path.exists(pjoin(basename, 'example', 'passthrough_ll')), + reason='example not compiled') @pytest.mark.parametrize("writeback", (False, True)) @pytest.mark.parametrize("debug", (False, True)) def test_passthrough_ll(tmpdir, writeback, debug, capfd): -- cgit v1.2.3