text_input: implement wl_text_input and manager
[platform/core/uifw/libds-tizen.git] / tests / meson.build
index 19f1e1d..0405794 100644 (file)
-tests = [
-  { 'name': 'test-compositor' },
-  { 'name': 'test-backend' },
-  {
-    'name': 'test-surface',
-    'deps': [ dependency('wayland-client') ],
-  },
-  {
-    'name': 'test-subsurface',
-    'deps': [ dependency('wayland-client') ],
-  },
-]
-
-foreach t : tests
-  t_deps = [ dep_libds_tizen ]
-  t_deps += t.get('deps', [])
-
-  test('libds-tizen-' + t.get('name'),
-    executable('libds-tizen-' + t.get('name'), t.get('name') + '.c',
-      dependencies: t_deps ,
-      include_directories: common_inc,
-      install: false
-    )
-  )
-endforeach
+deps_test_common = [
+  deps_libds_tizen,
+  dependency('gmock', required: true),
+  dependency('wayland-client', required: true),
+]
+
+tc_mock_files = [
+  'mockclient.cpp',
+  'mockcompositor.cpp'
+]
+
+## allcoator_tbm tests
+tc_allocator_tbm_files = [
+  'tc_main.cpp',
+  'tc_allocator_tbm.cpp',
+]
+
+executable('libds-tizen-allocator-tbm-tests',
+  tc_allocator_tbm_files,
+  dependencies: [
+    deps_test_common,
+    deps_libds_tizen_allocator_tbm,
+    dependency('libdrm', required: true),
+  ],
+  install_dir: libds_tizen_bindir,
+  install : true
+)
+
+## indicator tests
+tc_indicator_files = [
+  'tc_main.cpp',
+  'tc_indicator.cpp',
+]
+
+executable('libds-tizen-indicator-tests',
+  [
+    tc_mock_files,
+    tc_indicator_files
+  ],
+  dependencies: [
+    deps_test_common,
+    deps_libds_tizen_indicator,
+    dependency('libdrm', required: true),
+  ],
+  install_dir: libds_tizen_bindir,
+  install : true
+)
+
+## clipboard tests
+tc_clipboard_files = [
+  'tc_main.cpp',
+  'tc_clipboard.cpp',
+]
+
+executable('libds-tizen-clipboard-tests',
+  [
+    tc_mock_files,
+    tc_clipboard_files
+  ],
+  dependencies: [
+    deps_test_common,
+    deps_libds_tizen_clipboard,
+    dependency('libdrm', required: true),
+  ],
+  install_dir: libds_tizen_bindir,
+  install : true
+)
+
+## appinfo tests
+tc_launch_appinfo_files = [
+  'tc_main.cpp',
+  'tc_launch_appinfo.cpp',
+]
+
+executable('libds-tizen-launch-appinfo-tests',
+  [
+    tc_mock_files,
+    tc_launch_appinfo_files
+  ],
+  dependencies: [
+    deps_test_common,
+    deps_libds_tizen_launch,
+  ],
+  install_dir: libds_tizen_bindir,
+  install : true
+)
+
+## launch effect tests
+tc_launch_effect_files = [
+  'tc_main.cpp',
+  'tc_launch_effect.cpp',
+]
+
+executable('libds-tizen-launch-effect-tests',
+  [
+    tc_mock_files,
+    tc_launch_effect_files
+  ],
+  dependencies: [
+    deps_test_common,
+    deps_libds_tizen_launch,
+  ],
+  install_dir: libds_tizen_bindir,
+  install : true
+)
+
+## display-policy tests
+tc_display_policy_files = [
+  'tc_main.cpp',
+  'tc_display_policy.cpp',
+]
+
+executable('libds-tizen-display-policy-tests',
+  [
+    tc_mock_files,
+    tc_display_policy_files
+  ],
+  dependencies: [
+    deps_test_common,
+    deps_libds_tizen_display_policy,
+    dependency('libdrm', required: true),
+  ],
+  install_dir: libds_tizen_bindir,
+  install : true
+)
+
+## memory-flusher tests
+tc_memory_flusher_files = [
+  'tc_main.cpp',
+  'tc_memory_flusher.cpp',
+]
+
+executable('libds-tizen-memory-flusher-tests',
+  [
+    tc_mock_files,
+    tc_memory_flusher_files
+  ],
+  dependencies: [
+    deps_test_common,
+    deps_libds_tizen_memory_flusher,
+    dependency('libdrm', required: true),
+    dependency('tizen-surface-client', required: true),
+  ],
+  install_dir: libds_tizen_bindir,
+  install : true
+)
+
+## renderer tests
+tc_renderer_files = [
+  'tc_main.cpp',
+  'tc_renderer.cpp',
+]
+
+executable('libds-tizen-renderer-tests',
+  [
+    tc_mock_files,
+    tc_renderer_files
+  ],
+  dependencies: [
+    deps_test_common,
+    deps_libds_tizen_renderer,
+    dependency('libdrm', required: true),
+    dependency('tizen-extension-client', required: true),
+  ],
+  install_dir: libds_tizen_bindir,
+  install : true
+)
+
+## screen-rotation tests
+tc_screen_rotation_files = [
+  'tc_main.cpp',
+  'tc_screen_rotation.cpp',
+]
+
+executable('libds-tizen-screen-rotation-tests',
+  [
+    tc_mock_files,
+    tc_screen_rotation_files
+  ],
+  dependencies: [
+    deps_test_common,
+    deps_libds_tizen_screen_rotation,
+    dependency('libdrm', required: true),
+    dependency('tizen-extension-client', required: true),
+  ],
+  install_dir: libds_tizen_bindir,
+  install : true
+)
+
+## global-resource tests
+tc_global_resource_files = [
+  'tc_main.cpp',
+  'tc_global_resource.cpp',
+]
+
+executable('libds-tizen-global-resource-tests',
+  [
+    tc_mock_files,
+    tc_global_resource_files
+  ],
+  dependencies: [
+    deps_test_common,
+    deps_libds_tizen_global_resource,
+    dependency('libdrm', required: true),
+    dependency('tizen-extension-client', required: true),
+  ],
+  install_dir: libds_tizen_bindir,
+  install : true
+)
+
+## embedded-compositor tests
+tc_embedded_compositor_files = [
+  'tc_main.cpp',
+  'tc_embedded_compositor.cpp',
+]
+
+executable('libds-tizen-embedded-compositor-tests',
+  [
+    tc_mock_files,
+    tc_embedded_compositor_files
+  ],
+  dependencies: [
+    deps_test_common,
+    deps_libds_tizen_embedded_compositor,
+    dependency('tizen-extension-client', required: true),
+  ],
+  install_dir: libds_tizen_bindir,
+  install : true
+)
+
+## input method tests
+tc_input_method_files = [
+  'tc_main.cpp',
+  'tc_input_method.cpp',
+]
+
+executable('libds-tizen-input-method-tests',
+  [
+    tc_mock_files,
+    tc_input_method_files
+  ],
+  dependencies: [
+    deps_test_common,
+    deps_libds_tizen_input_method,
+  ],
+  install_dir: libds_tizen_bindir,
+  install : true
+)
+
+## input method tests
+tc_input_method_manager_files = [
+  'tc_main.cpp',
+  'tc_input_method_manager.cpp',
+]
+
+executable('libds-tizen-input-method-manager-tests',
+  [
+    tc_mock_files,
+    tc_input_method_manager_files
+  ],
+  dependencies: [
+    deps_test_common,
+    deps_libds_tizen_input_method,
+  ],
+  install_dir: libds_tizen_bindir,
+  install : true
+)
+
+## text input tests
+tc_text_input_files = [
+  'tc_main.cpp',
+  'tc_text_input.cpp',
+]
+
+executable('libds-tizen-text-input-tests',
+  [
+    tc_mock_files,
+    tc_text_input_files
+  ],
+  dependencies: [
+    deps_test_common,
+    deps_libds_tizen_text_input,
+  ],
+  install_dir: libds_tizen_bindir,
+  install : true
+)
\ No newline at end of file