Skip to content
Snippets Groups Projects
Commit 0a73db25 authored by Riccardo Maria Bianchi's avatar Riccardo Maria Bianchi :sunny: Committed by Johannes Junggeburth
Browse files

Move the I/O tests to a package

parent 5fa559ea
Branches
Tags
1 merge request!327New schema for the GeoModel SQLite database and updated I/O
...@@ -48,9 +48,3 @@ install( ...@@ -48,9 +48,3 @@ install(
list( APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake ) list( APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake )
include( GeoModelIOPackaging ) include( GeoModelIOPackaging )
# global I/O tests
add_executable(test_io_shared_serialtransformers tests/test_io_shared_serialtransformers.cpp)
target_link_libraries( test_io_shared_serialtransformers GeoModelIO::GeoModelDBManager GeoModelCore::GeoModelHelpers GeoModelCore::GeoModelKernel GeoModelIO::GeoModelIOHelpers)
add_test(NAME testIOSharedSerialTransformers
COMMAND test_io_shared_serialtransformers)
...@@ -46,3 +46,10 @@ install(TARGETS GeoModelIOHelpers ...@@ -46,3 +46,10 @@ install(TARGETS GeoModelIOHelpers
install( FILES ${HEADERS} install( FILES ${HEADERS}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/GeoModelIOHelpers DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/GeoModelIOHelpers
COMPONENT Development ) COMPONENT Development )
# global I/O tests
add_executable(test_io_shared_serialtransformers tests/test_io_shared_serialtransformers.cpp)
target_link_libraries( test_io_shared_serialtransformers GeoModelIO::GeoModelDBManager GeoModelCore::GeoModelHelpers GeoModelCore::GeoModelKernel GeoModelIO::GeoModelIOHelpers)
add_test(NAME testIOSharedSerialTransformers
COMMAND test_io_shared_serialtransformers)
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
* *
*/ */
//pipppo
// GeoModel includes // GeoModel includes
#include "GeoGenericFunctions/AbsFunction.h" #include "GeoGenericFunctions/AbsFunction.h"
#include "GeoGenericFunctions/Cos.h" #include "GeoGenericFunctions/Cos.h"
...@@ -153,7 +153,7 @@ int main(int argc, char *argv[]) { ...@@ -153,7 +153,7 @@ int main(int argc, char *argv[]) {
// --- I/O TESTS --- // --- I/O TESTS ---
std::cout << "\nTests:\n"; std::cout << "\nTests:\n";
unsigned loglevel = 3; unsigned loglevel = 2;
unsigned printtests = 1; unsigned printtests = 1;
const bool forceDelete = true; const bool forceDelete = true;
std::pair<bool, std::map<std::string, bool>> tests = std::pair<bool, std::map<std::string, bool>> tests =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment