From 1cb2144d29878702788796008b353555e711ec12 2018-11-01 14:41:07 From: Alexis Jeandet Date: 2018-11-01 14:41:07 Subject: [PATCH] Added MockPlugin PB11 wrapper Spectrograms plots are broken, this should help to investigate why and will be useful also for tests. Signed-off-by: Alexis Jeandet --- diff --git a/core b/core index cc47cd6..70eb884 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit cc47cd67a7b3418c7c0b065e7cb178abb63b0036 +Subproject commit 70eb884a0ee3f19fb2a7dc91d2f25f6348d4167d diff --git a/plugins/mockplugin/CMakeLists.txt b/plugins/mockplugin/CMakeLists.txt index 92e7e43..260a379 100644 --- a/plugins/mockplugin/CMakeLists.txt +++ b/plugins/mockplugin/CMakeLists.txt @@ -26,4 +26,6 @@ include(sciqlop_tests) add_definitions(-DMOCKPLUGIN_TESTS_RESOURCES_DIR="${CMAKE_CURRENT_LIST_DIR}/tests-resources") #declare_test(TestCosinusAcquisition TestCosinusAcquisition tests/TestCosinusAcquisition.cpp "mockplugin;Qt5::Test") - +pybind11_add_module(pytestmockplugin tests/PyTestMockPluginWrapper.cpp) +target_link_libraries(pytestmockplugin PUBLIC mockplugin) +target_link_libraries(pytestmockplugin PUBLIC pysciqlop) diff --git a/plugins/mockplugin/tests/PyTestMockPluginWrapper.cpp b/plugins/mockplugin/tests/PyTestMockPluginWrapper.cpp new file mode 100644 index 0000000..a35f4ac --- /dev/null +++ b/plugins/mockplugin/tests/PyTestMockPluginWrapper.cpp @@ -0,0 +1,85 @@ +/*------------------------------------------------------------------------------ +-- This file is a part of the SciQLOP Software +-- Copyright (C) 2018, Plasma Physics Laboratory - CNRS +-- +-- This program is free software; you can redistribute it and/or modify +-- it under the terms of the GNU General Public License as published by +-- the Free Software Foundation; either version 2 of the License, or +-- (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +-------------------------------------------------------------------------------*/ +/*-- Author : Alexis Jeandet +-- Mail : alexis.jeandet@member.fsf.org +----------------------------------------------------------------------------*/ +#include +#include +#include + +#include +#include +#include +#include +#include + +#include +#include +#include