Build tests by default.
authorNikolaus Rath <Nikolaus@rath.org>
Mon, 10 Apr 2017 23:46:35 +0000 (16:46 -0700)
committerNikolaus Rath <Nikolaus@rath.org>
Mon, 10 Apr 2017 23:57:32 +0000 (16:57 -0700)
README.md
meson.build
test/meson.build

index 00b423ea539c3fc679747265b1528e4f0da1f6e2..c1f050954bc38b836f73452d500219e19c5207b1 100644 (file)
--- a/README.md
+++ b/README.md
@@ -29,7 +29,7 @@ Installation
 
 You can download libfuse from
 https://github.com/libfuse/libfuse/releases. To build and install, we
-recommend to use [Meson](http://mesonbuild.com/) (version 0.37 or
+recommend to use [Meson](http://mesonbuild.com/) (version 0.38 or
 newer) and [Ninja](https://ninja-build.org).  After extracting the
 libfuse tarball, create a (temporary) build directory and run Meson:
 
index 71c8ae23d855f249a3488f371b68947b2bdf7916..b13ed06b0971972c3e704895cfa52e363c3345ac 100644 (file)
@@ -2,7 +2,7 @@
 # (even though this isn't actually Python code)
 
 project('libfuse3', 'c', version: '3.1.0',
-        meson_version: '>= 0.37',
+        meson_version: '>= 0.38',
         default_options: [ 'buildtype=plain' ])
 
 #
index 7f07e657a825acf9050b9ccefeac06d87d6a487a..44c0eb4301c181aec5887a4a5f9e03ed2033d549 100644 (file)
@@ -14,13 +14,12 @@ td += executable('test_syscalls', 'test_syscalls.c',
                  include_directories: include_dirs,
                  install: false)
 
-# Actual tests are written in Python and can simply be copied.
-foreach fname : [ 'conftest.py', 'pytest.ini', 'test_examples.py',
-                  'util.py' ]
-    td += custom_target(fname, input: fname, output: fname,
-                        command: ['cp', '-fPu', '--preserve=mode',
-                                  '@INPUT@', '@OUTPUT@'])
-endforeach
+test_scripts = [ 'conftest.py', 'pytest.ini', 'test_examples.py',
+                 'util.py' ]
+td += custom_target('test_scripts', input: test_scripts,
+                      output: test_scripts, build_by_default: true,
+                      command: ['cp', '-fPu', '--preserve=mode',
+                                '@INPUT@', meson.current_build_dir() ])
 
 # Create a new 'tests' target that we can run with Ninja
 run_target('tests', depends: td,