From 2e883759a2fd827467cef28c0f119c95718e7fff 2017-09-20 08:24:49 From: Alexandre Leroux Date: 2017-09-20 08:24:49 Subject: [PATCH] Updates meson.build --- diff --git a/plugins/mockplugin/meson.build b/plugins/mockplugin/meson.build index 91bb964..25101a2 100644 --- a/plugins/mockplugin/meson.build +++ b/plugins/mockplugin/meson.build @@ -30,3 +30,16 @@ sciqlop_mockplugin = library('mockplugin', install : true ) +tests = [ + [['tests/TestCosinusAcquisition.cpp'],'test_cosinus_acquisition','Cosinus Acquisition test'] +] + +foreach unit_test : tests + test_moc_files = qt5.preprocess(moc_sources : unit_test[0]) + test_exe = executable(unit_test[1],unit_test[0] , test_moc_files, + link_with : [sciqlop_mockplugin], + include_directories : [mockplugin_inc], + cpp_args : ['-DMOCKPLUGIN_TESTS_RESOURCES_DIR="'+meson.current_source_dir()+'/tests-resources"'], + dependencies : [sciqlop_core, sciqlop_gui, qt5test]) + test(unit_test[2], test_exe, args: ['-teamcity', '-o', '@0@.teamcity.txt'.format(unit_test[1])], timeout: 3 * 60) +endforeach \ No newline at end of file