From 983892a656743cf2db89e6f824a9afb25c71b075 Mon Sep 17 00:00:00 2001 From: Ernestas Kulik Date: Wed, 13 Dec 2017 20:13:54 +0200 Subject: build: general cleanups MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit does the following: * Canonicalize the style: * Use two-space indentations. * Un-Autotools-ify option names. * Don’t align arguments, simply increase indentation. * Don’t add a space before opening parenthesis in calls. * Remove unused variables. * Remove unused dependencies. * Remove config.h.meson. * Optimize dependencies. * Use disabler functionality for libselinux dependency, to save lines. --- test/meson.build | 49 +++++++++++++++++++++++++------------------------ 1 file changed, 25 insertions(+), 24 deletions(-) (limited to 'test') diff --git a/test/meson.build b/test/meson.build index f6ad5b007..928f9b157 100644 --- a/test/meson.build +++ b/test/meson.build @@ -1,26 +1,27 @@ -test_copy = executable ('test-copy', - ['test-copy.c', - 'test.c', - 'test.h'], - dependencies: libnautilus_dep) +test_copy = executable( + 'test-copy', [ + 'test-copy.c', + 'test.c', + 'test.h' + ], + dependencies: libnautilus_dep +) -test_nautilus_search_engine = executable ('test-nautilus-search-engine', - 'test-nautilus-search-engine.c', - dependencies: libnautilus_dep) +tests = [ + ['test-nautilus-search-engine', [ + 'test-nautilus-search-engine.c' + ]], + ['test-nautilus-directory-async', [ + 'test-nautilus-directory-async.c' + ]], + ['test-file-utilities-get-common-filename-prefix', [ + 'test-file-utilities-get-common-filename-prefix.c' + ]], + ['test-eel-string-get-common-prefix', [ + 'test-eel-string-get-common-prefix.c' + ]] +] -test_nautilus_directory_async = executable ('test-nautilus-directory-async', - 'test-nautilus-directory-async.c', - dependencies: libnautilus_dep) - -test_file_utilities_get_common_filename_prefix = executable ('test-file-utilities-get-common-filename-prefix', - 'test-file-utilities-get-common-filename-prefix.c', - dependencies: libnautilus_dep) - -test_eel_string_get_common_prefix = executable ('test-eel-string-get-common-prefix', - 'test-eel-string-get-common-prefix.c', - dependencies: libnautilus_dep) - -test ('test-nautilus-search-engine', test_nautilus_search_engine) -test ('test-nautilus-directory-async', test_nautilus_directory_async) -test ('test-file-utilities-get-common-filename-prefix', test_file_utilities_get_common_filename_prefix) -test ('test-eel-string-get-common-prefix', test_eel_string_get_common_prefix) +foreach t: tests + test(t[0], executable(t[0], t[1], dependencies: libnautilus_dep)) +endforeach -- cgit v1.2.1