gplugin/gplugin
Clone
Summary
Browse
Changes
Graph
Bump the glib requirement to 2.40.0
develop
2018-05-05, Gary Kramlich
46f92694369c
Bump the glib requirement to 2.40.0
###############################################################################
# Subdirectories
###############################################################################
subdir
(
'plugins'
)
subdir
(
'bad-plugins'
)
subdir
(
'dynamic-type'
)
subdir
(
'id-collision'
)
subdir
(
'load-on-query-pass'
)
subdir
(
'load-on-query-fail'
)
subdir
(
'versioned-dependencies'
)
subdir
(
'bind-local'
)
subdir
(
'unresolved-symbol'
)
###############################################################################
# Tests
###############################################################################
#######################################
# Simple Tests (single file)
#######################################
e
=
executable
(
'test-core'
,
'test-core.c'
,
c_args
:
[
'-DTEST_DIR="@0@/plugins/"'
.
format
(
meson
.
current_build_dir
()),
'-DTEST_ID_DIR="@0@/id-collision/"'
.
format
(
meson
.
current_build_dir
()),
],
dependencies
:
[
gplugin_dep
,
GLIB
,
GOBJECT
])
test
(
'Core'
,
e
)
e
=
executable
(
'test-option-group'
,
'test-option-group.c'
,
dependencies
:
[
gplugin_dep
,
GLIB
,
GOBJECT
])
test
(
'Option Group'
,
e
)
e
=
executable
(
'test-plugin-manager-paths'
,
'test-plugin-manager-paths.c'
,
dependencies
:
[
gplugin_dep
,
GLIB
,
GOBJECT
])
test
(
'Plugin Manager Paths'
,
e
)
e
=
executable
(
'test-plugin-info'
,
'test-plugin-info.c'
,
dependencies
:
[
gplugin_dep
,
GLIB
,
GOBJECT
])
test
(
'Plugin Info'
,
e
)
e
=
executable
(
'test-signals'
,
'test-signals.c'
,
c_args
:
[
'-DTEST_DIR="@0@/plugins/"'
.
format
(
meson
.
current_build_dir
())],
dependencies
:
[
gplugin_dep
,
GLIB
,
GOBJECT
])
test
(
'Signals'
,
e
)
e
=
executable
(
'test-version-compare'
,
'test-version-compare.c'
,
dependencies
:
[
gplugin_dep
,
GLIB
,
GOBJECT
])
test
(
'Version Compare'
,
e
)
#######################################
# Dynamic Type
#######################################
e
=
executable
(
'test-dynamic-type'
,
'test-dynamic-type.c'
,
c_args
:
[
'-DTEST_DYNAMIC_DIR="@0@/dynamic-type/"'
.
format
(
meson
.
current_build_dir
())
],
dependencies
:
[
gplugin_dep
,
GLIB
,
GOBJECT
])
test
(
'Dynamic Type'
,
e
)
#######################################
# ID Collision
#######################################
e
=
executable
(
'test-id-collision'
,
'test-id-collision.c'
,
c_args
:
[
'-DTEST_ID_DIR="@0@/id-collision/"'
.
format
(
meson
.
current_build_dir
()),
],
dependencies
:
[
gplugin_dep
,
GLIB
,
GOBJECT
])
test
(
'ID Collision'
,
e
)
#######################################
# Load On Query
#######################################
e
=
executable
(
'test-load-on-query'
,
'test-load-on-query.c'
,
c_args
:
[
'-DTEST_DIR="@0@/plugins/"'
.
format
(
meson
.
current_build_dir
()),
'-DTEST_LOAD_ON_QUERY_PASS_DIR="@0@/load-on-query-pass"'
.
format
(
meson
.
current_build_dir
()),
'-DTEST_LOAD_ON_QUERY_FAIL_DIR="@0@/load-on-query-fail"'
.
format
(
meson
.
current_build_dir
())
],
dependencies
:
[
gplugin_dep
,
GLIB
,
GOBJECT
])
test
(
'Load On Query'
,
e
)
#######################################
# Versioned Dependencies
#######################################
e
=
executable
(
'test-versioned-dependencies'
,
'test-versioned-dependencies.c'
,
c_args
:
[
'-DTEST_VERSIONED_DEPENDENCY_DIR="@0@/versioned-dependencies"'
.
format
(
meson
.
current_build_dir
()),
],
dependencies
:
[
gplugin_dep
,
GLIB
,
GOBJECT
])
test
(
'Versioned Dependencies'
,
e
)
#######################################
# Native Loader
#######################################
e
=
executable
(
'test-native-loader'
,
'test-native-loader.c'
,
c_args
:
[
'-DTEST_DIR="@0@/plugins/"'
.
format
(
meson
.
current_build_dir
()),
'-DTEST_BAD_DIR="@0@/bad-plugins/"'
.
format
(
meson
.
current_build_dir
()),
'-DTEST_ID_DIR="@0@/id-collision/"'
.
format
(
meson
.
current_build_dir
()),
],
link_with
:
gplugin_loader_tests
,
dependencies
:
[
gplugin_dep
,
GLIB
,
GOBJECT
])
test
(
'Native Loader'
,
e
)
###############################################################################
# Bind Local
###############################################################################
e
=
executable
(
'test-bind-local'
,
'test-bind-local.c'
,
c_args
:
[
'-DTEST_BIND_LOCAL_DIR="@0@/bind-local/"'
.
format
(
meson
.
current_build_dir
()),
'-DTEST_BAD_DIR="@0@/bad-plugins/"'
.
format
(
meson
.
current_build_dir
()),
'-DTEST_ID_DIR="@0@/id-collision/"'
.
format
(
meson
.
current_build_dir
()),
],
dependencies
:
[
gplugin_dep
,
GLIB
,
GOBJECT
])
test
(
'Bind Local'
,
e
)
###############################################################################
# Unresolved Symbol
###############################################################################
e
=
executable
(
'test-unresolved-symbol'
,
'test-unresolved-symbol.c'
,
c_args
:
[
'-DPLUGIN_DIR="@0@/unresolved-symbol/"'
.
format
(
meson
.
current_build_dir
()),
],
dependencies
:
[
gplugin_dep
,
GLIB
,
GOBJECT
])
# test('Unresolved Symbol', e)