aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Nikolaus Rath <Nikolaus@rath.org>2017-08-11 10:41:58 +0200
committerGravatar Nikolaus Rath <Nikolaus@rath.org>2017-08-11 10:41:58 +0200
commit4fcb574d104f496e0f150189745bc6847fc2a355 (patch)
tree35db669ca3c74894c7480388bfa13d8a999fc427
parentd7ab8be330747d12c00e738f1aff5c0f0e332f7a (diff)
Don't build passthrough_ll under BSD.
-rw-r--r--example/meson.build9
-rwxr-xr-xtest/test_examples.py3
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):