Don't build passthrough_ll under BSD.
authorNikolaus Rath <Nikolaus@rath.org>
Fri, 11 Aug 2017 08:41:58 +0000 (10:41 +0200)
committerNikolaus Rath <Nikolaus@rath.org>
Fri, 11 Aug 2017 08:41:58 +0000 (10:41 +0200)
example/meson.build
test/test_examples.py

index 4497288a331fdd0e37bc753b8a96c07aaec4711e..b6f4418da16c9a270e47f4859c3c00cbfdfd2429 100644 (file)
@@ -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',
index e20b47c815161a62d9e22ace9c28398c57c450fb..30a9337717feae75f54ccca5477b640512d85cc3 100755 (executable)
@@ -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):