Commit 973251e4 authored by Pascal Palenda's avatar Pascal Palenda
Browse files

Add test framework - WIP

parent c6132419
......@@ -143,6 +143,7 @@ endif( )
if( ITA_SIMULATION_SCHEDULER_TESTS )
add_subdirectory( "tests/simsched_add_task" )
add_subdirectory( "tests/all_tests" )
if( ITA_SIMULATION_SCHEDULER_RAVEN_MODULE )
......
cmake_minimum_required( VERSION 2.8 )
project( ITASimulationSchedulerTests )
list( APPEND CMAKE_MODULE_PATH "$ENV{VISTA_CMAKE_COMMON}" )
include( VistaCommon )
vista_use_package( ITASimulationScheduler REQUIRED FIND_DEPENDENCIES )
vista_use_package( Gtest REQUIRED FIND_DEPENDENCIES )
set( ProjectSources "all_tests.cpp"
"3d_object.cpp"
"enum_to_int.cpp"
)
add_executable( all_tests ${ProjectSources} )
target_link_libraries( all_tests ${VISTA_USE_PACKAGE_LIBRARIES} ITASimulationScheduler )
#vista_set_target_msvc_arguments( all_tests "1000" )
vista_configure_app( all_tests )
vista_install( all_tests )
vista_create_default_info_file( all_tests )
set_property( TARGET all_tests PROPERTY FOLDER "ITASimulationScheduler/Tests" )
/*
* ----------------------------------------------------------------
*
* ITA simulation scheduler
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2019-2020
*
* ----------------------------------------------------------------
* ____ __________ _______
* // / //__ ___/ // _ |
* // / // / // /_| |
* // / // / // ___ |
* //__/ //__/ //__/ |__|
*
* ----------------------------------------------------------------
*
*/
// GTest
#include "gtest/gtest.h"
int main ( int argc, char** argv )
{
testing::InitGoogleTest ( &argc, argv );
return RUN_ALL_TESTS ( );
}
\ No newline at end of file
#include <type_traits>
template <typename Enumeration>
auto as_integer ( Enumeration const value )
-> typename std::underlying_type<Enumeration>::type
{
return static_cast< typename std::underlying_type<Enumeration>::type >( value );
}
\ No newline at end of file
Supports Markdown
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