1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
quiver_test_cpp_sources = files([
'ParameterSettings.cpp',
'TestCoverage.cpp',
'TestDiploidQuiver.cpp',
'TestMatrixFacades.cpp',
'TestMultiReadMutationScorer.cpp',
'TestMutationEnumerator.cpp',
'TestMutationScorer.cpp',
'TestMutations.cpp',
'TestPairwiseAlignment.cpp',
'TestPoaConsensus.cpp',
'TestQvEvaluator.cpp',
'TestRecursors.cpp',
'TestSparseVector.cpp'])
# find GoogleTest and GoogleMock
quiver_gtest_dep = dependency('gtest_main', fallback : ['gtest', 'gtest_dep'])
quiver_gmock_dep = dependency('gmock_main', fallback : ['gtest', 'gmock_main_dep'])
quiver_test = executable(
'quiver_test',
quiver_test_cpp_sources,
dependencies : [
quiver_boost_dep,
quiver_gtest_dep,
quiver_gmock_dep],
include_directories : [
quiver_include_directories],
link_with : quiver_cc1_lib,
cpp_args : quiver_flags,
install : false)
#########
# tests #
#########
test(
'quiver formatting check',
quiver_clang_formatter,
args : [
'--all'],
workdir : meson.source_root())
test(
'quiver gtest unittests',
quiver_test,
args : [
'--gtest_output=xml:' + join_paths(meson.build_root(), 'quiver-gtest-unittests.xml')],
env : [
'ARGS=-V',
'VERBOSE=1'],
timeout : 1800)
if get_option('swig')
test(
'quiver python3 import',
quiver_python,
args : [
files('test_import.py')],
env : [
'PYTHONPATH=' + quiver_pythonpath],
timeout : 1800)
endif
|