diff options
author | Nikolaus Rath <Nikolaus@rath.org> | 2016-10-05 20:03:18 -0700 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2016-10-05 20:03:18 -0700 |
commit | 2680c5b9951b022351dd698b1ba21e965355ad16 (patch) | |
tree | efb734b51e5db6aeb0a275b652cc963b14fa4bb7 /test | |
parent | ecc291b7beb8020f0b4b729458144057ca4f9d74 (diff) |
Test more combinations of low-level options.
Diffstat (limited to 'test')
-rwxr-xr-x | test/test_examples.py | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/test/test_examples.py b/test/test_examples.py index 5ddc860..3f8892b 100755 --- a/test/test_examples.py +++ b/test/test_examples.py @@ -27,12 +27,16 @@ def name_generator(__ctr=[0]): __ctr[0] += 1 return 'testfile_%d' % __ctr[0] +LL_OPTIONS = [ ['-o', 'splice_move,splice_write,splice_read' ], + ['-o', 'clone_fd,big_writes,writeback_cache' ] ] + @pytest.mark.parametrize("name", ('hello', 'hello_ll')) -def test_hello(tmpdir, name): +@pytest.mark.parametrize("options", LL_OPTIONS) +def test_hello(tmpdir, name, options): mnt_dir = str(tmpdir) cmdline = base_cmdline + \ [ pjoin(basename, 'example', name), - '-f', mnt_dir ] + '-f', mnt_dir ] + options if name == 'hello_ll': # supports single-threading only cmdline.append('-s') @@ -55,13 +59,14 @@ def test_hello(tmpdir, name): else: umount(mount_process, mnt_dir) -def test_fuse_lo_plus(tmpdir): +@pytest.mark.parametrize("options", LL_OPTIONS) +def test_fuse_lo_plus(tmpdir, options): mnt_dir = str(tmpdir.mkdir('mnt')) src_dir = str(tmpdir.mkdir('src')) cmdline = base_cmdline + \ [ pjoin(basename, 'example', 'fuse_lo-plus'), - '-f', '-s', mnt_dir ] + '-f', '-s', mnt_dir ] + options mount_process = subprocess.Popen(cmdline) try: wait_for_mount(mount_process, mnt_dir) @@ -88,14 +93,15 @@ def test_fuse_lo_plus(tmpdir): umount(mount_process, mnt_dir) @pytest.mark.parametrize("name", ('fusexmp', 'fusexmp_fh')) -def test_fusexmp_fh(tmpdir, name): +@pytest.mark.parametrize("options", LL_OPTIONS) +def test_fusexmp_fh(tmpdir, name, options): mnt_dir = str(tmpdir.mkdir('mnt')) src_dir = str(tmpdir.mkdir('src')) cmdline = base_cmdline + \ [ pjoin(basename, 'example', name), '-f', '-o', 'use_ino,readdir_ino,kernel_cache', - mnt_dir ] + mnt_dir ] + options mount_process = subprocess.Popen(cmdline) try: wait_for_mount(mount_process, mnt_dir) |