mirror of https://github.com/djcb/mu.git
mu: move test sources to tests/
This commit is contained in:
parent
5e55ef7c79
commit
13c8879305
|
@ -68,6 +68,10 @@ EXTRA_DIST= \
|
|||
mu-help-strings.awk \
|
||||
mu-help-strings.txt
|
||||
|
||||
#
|
||||
# Tests
|
||||
#
|
||||
|
||||
noinst_PROGRAMS= $(TEST_PROGS)
|
||||
|
||||
test_cxxflags= \
|
||||
|
@ -80,17 +84,17 @@ test_cxxflags= \
|
|||
-DABS_SRCDIR=\"${abs_srcdir}\"
|
||||
|
||||
TEST_PROGS += test-query
|
||||
test_query_SOURCES= test-mu-query.cc
|
||||
test_query_SOURCES= tests/test-mu-query.cc
|
||||
test_query_CXXFLAGS=$(test_cxxflags)
|
||||
test_query_LDADD=${top_builddir}/lib/libtestmucommon.la $(CODE_COVERAGE_LIBS)
|
||||
|
||||
TEST_PROGS += test-cmd
|
||||
test_cmd_SOURCES= test-mu-cmd.cc
|
||||
test_cmd_SOURCES= tests/test-mu-cmd.cc
|
||||
test_cmd_CXXFLAGS=$(test_cxxflags)
|
||||
test_cmd_LDADD=${top_builddir}/lib/libtestmucommon.la $(CODE_COVERAGE_LIBS)
|
||||
|
||||
TEST_PROGS += test-cmd-cfind
|
||||
test_cmd_cfind_SOURCES= test-mu-cmd-cfind.cc
|
||||
test_cmd_cfind_SOURCES= tests/test-mu-cmd-cfind.cc
|
||||
test_cmd_cfind_CXXFLAGS=$(test_cxxflags)
|
||||
test_cmd_cfind_LDADD=${top_builddir}/lib/libtestmucommon.la $(CODE_COVERAGE_LIBS)
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ testmaildir=join_paths(meson.current_source_dir(),'../lib')
|
|||
|
||||
test('test_cmd',
|
||||
executable('test-cmd',
|
||||
'test-mu-cmd.cc',
|
||||
'tests/test-mu-cmd.cc',
|
||||
install: false,
|
||||
cpp_args: ['-DMU_PROGRAM="' + mu_binary + '"',
|
||||
'-DMU_TESTMAILDIR2="'+ join_paths(testmaildir, 'testdir2') + '"',
|
||||
|
@ -57,7 +57,7 @@ test('test_cmd',
|
|||
dependencies: [glib_dep, lib_test_mu_common_dep, config_h_dep, lib_mu_dep]))
|
||||
test('test_cmd_cfind',
|
||||
executable('test-cmd-cfind',
|
||||
'test-mu-cmd-cfind.cc',
|
||||
'tests/test-mu-cmd-cfind.cc',
|
||||
install: false,
|
||||
cpp_args: ['-DMU_PROGRAM="' + mu_binary + '"',
|
||||
'-DMU_TESTMAILDIR="'+ join_paths(testmaildir, 'testdir') + '"',
|
||||
|
@ -65,10 +65,17 @@ test('test_cmd_cfind',
|
|||
dependencies: [glib_dep, lib_test_mu_common_dep, config_h_dep]))
|
||||
test('test_cmd_query',
|
||||
executable('test-cmd-query',
|
||||
'test-mu-query.cc',
|
||||
'tests/test-mu-query.cc',
|
||||
install: false,
|
||||
cpp_args: ['-DMU_PROGRAM="' + mu_binary + '"',
|
||||
'-DMU_TESTMAILDIR="'+ join_paths(testmaildir, 'testdir') + '"',
|
||||
'-DMU_TESTMAILDIR2="'+ join_paths(testmaildir, 'testdir2') + '"'
|
||||
],
|
||||
dependencies: [glib_dep, lib_test_mu_common_dep, config_h_dep, lib_mu_dep]))
|
||||
|
||||
gmime_test = executable(
|
||||
'gmime-test', [
|
||||
'tests/gmime-test.c'
|
||||
],
|
||||
dependencies: [ glib_dep, gmime_dep ],
|
||||
install: false)
|
||||
|
|
Loading…
Reference in New Issue