summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorErnestas Kulik <ernestask@gnome.org>2017-12-13 20:13:54 +0200
committerErnestas Kulik <ernestask@gnome.org>2018-01-02 12:51:32 +0200
commit983892a656743cf2db89e6f824a9afb25c71b075 (patch)
tree80e657d23d6ce20fdbe62269149672eb5114fa59 /test
parent2ad72d3997a6f433716cb027be963c0748379095 (diff)
downloadnautilus-983892a656743cf2db89e6f824a9afb25c71b075.tar.gz
build: general cleanups
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.
Diffstat (limited to 'test')
-rw-r--r--test/meson.build49
1 files changed, 25 insertions, 24 deletions
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