Commit 57b961db authored by Philipp Schäfer's avatar Philipp Schäfer
Browse files

Tests

- added switches to all RAVEN dependent tests
parent 8470fa9e
......@@ -21,15 +21,24 @@ set( ProjectSources "all_tests.cpp"
"replacement_filter_test.cpp"
"worker_interface_test.cpp"
"audibility_filter_interface_test.cpp"
"raven_simulator_test.cpp"
"utils_test.cpp"
"raven_worker_thread_test.cpp"
"raven_worker_interface_test.cpp"
"complete_test.cpp"
"filter_test.cpp"
"filter_network_test.cpp"
)
if( ITA_SIMULATION_SCHEDULER_RAVEN_MODULE )
list( APPEND ProjectSources
"raven_worker_interface_test.cpp"
"raven_worker_thread_test.cpp"
"raven_simulator_test.cpp"
"complete_test.cpp"
)
endif ( )
if( ITA_SIMULATION_SCHEDULER_ART_MODULE )
list( APPEND ProjectSources
)
endif ( )
add_executable( all_tests ${ProjectSources} )
target_link_libraries( all_tests ${VISTA_USE_PACKAGE_LIBRARIES} ITASimulationScheduler )
......
......@@ -2,6 +2,9 @@
#include "mocks.hpp"
// STD
#include <memory>
// GTest
#include "gtest/gtest.h"
#include "ITA/SimulationScheduler/AudibilityFilter/rate_filter.h"
......@@ -30,9 +33,9 @@ TEST ( FilterFactoryTest, configFactoryTest )
MockAudibilityFilter::createFilter,
std::make_shared<MockAudibilityFilter::MockFilterConfig> );
const auto config = dynamic_pointer_cast< MockAudibilityFilter::MockFilterConfig >(CAudibilityFilterFactory::CreateConfig ( "MockFilter" ));
const auto config = std::dynamic_pointer_cast< MockAudibilityFilter::MockFilterConfig >(CAudibilityFilterFactory::CreateConfig ( "MockFilter" ));
EXPECT_NE ( config, nullptr );
const auto config2 = dynamic_pointer_cast< CRateFilter::RateFilterConfig >( CAudibilityFilterFactory::CreateConfig ( CRateFilter::GetType() ) );
const auto config2 = std::dynamic_pointer_cast< CRateFilter::RateFilterConfig >( CAudibilityFilterFactory::CreateConfig ( CRateFilter::GetType() ) );
EXPECT_NE ( config2, nullptr );
}
\ No newline at end of file
......@@ -9,7 +9,6 @@
#include <ITA/SimulationScheduler/update_message.h>
#include <ITA/SimulationScheduler/update_scene.h>
#include <ITA/SimulationScheduler/update_config.h>
#include "../src/ITA/SimulationScheduler/replacement_filter.h"
#include <ITA/SimulationScheduler/RoomAcoustics/rir_simulation_result.h>
#include <ITA/SimulationScheduler/AudibilityFilter/filter_network.h>
#include <ITA/SimulationScheduler/AudibilityFilter/audibility_filter_interface.h>
......
......@@ -5,10 +5,15 @@
#include <ITA/SimulationScheduler/worker_interface.h>
#include <ITA/SimulationScheduler/RoomAcoustics/master_simulation_controller.h>
#include <ITA/SimulationScheduler/AudibilityFilter/audibility_filter_interface.h>
#ifdef WITH_RAVEN
#include <ITA/SimulationScheduler/RoomAcoustics/raven/simulator.h>
#include "ITA/SimulationScheduler/RoomAcoustics/Raven/worker_thread.h"
#endif
#include <VistaBase/VistaTimeUtils.h>
#include "ITA/SimulationScheduler/RoomAcoustics/Raven/worker_thread.h"
#include "ITAException.h"
using namespace ITA::SimulationScheduler;
......
......@@ -2,9 +2,12 @@
#include <ITA/SimulationScheduler/scheduler_interface.h>
#include <ITA/SimulationScheduler/worker_interface.h>
#include <ITA/SimulationScheduler/RoomAcoustics/master_simulation_controller.h>
#include <ITA/SimulationScheduler/scheduler.h>
#include <ITA/SimulationScheduler/RoomAcoustics/master_simulation_controller.h>
#ifdef WITH_RAVEN
#include <ITA/SimulationScheduler/RoomAcoustics/raven/worker_thread.h>
#endif
#include "mocks.hpp"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment