mirror of
https://github.com/openharmony/third_party_libfuse.git
synced 2026-07-21 00:45:56 -04:00
Build tests by default.
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
+1
-1
@@ -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' ])
|
||||
|
||||
#
|
||||
|
||||
+6
-7
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user