tools/tests: small end-to-end test suite for importing/pruning

As bigger changes lie ahead, we want a small end-to-end test suite
that ensures that our importing and tracing does not fall apart. With
this change, we add the infrastructure and two test-cases (fib, qsort)
including ELFs, traces, and injection results.

In order to run the basic-pruner test cases, one needs to setup a
MySQL table and set the CMake option ENABLE_DATABASE_TESTS.
This commit is contained in:
Christian Dietrich
2020-11-24 19:12:36 +01:00
committed by Horst Schirmeier
parent df44da9f33
commit f92b930acb
65 changed files with 198613 additions and 0 deletions

View File

@ -13,16 +13,21 @@ option(BUILD_DATA_AGGREGATOR "Build the data aggregation tools?" OFF)
include_directories(${CMAKE_CURRENT_BINARY_DIR}/../src/core)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../src/core)
set(TEST_DRIVER_ARGS )
if(BUILD_IMPORT_TRACE)
add_subdirectory(import-trace)
set(TEST_DRIVER_ARGS ${TEST_DRIVER_ARGS} --import-trace $<TARGET_FILE:import-trace>)
endif(BUILD_IMPORT_TRACE)
if(BUILD_PRUNE_TRACE)
add_subdirectory(prune-trace)
set(TEST_DRIVER_ARGS ${TEST_DRIVER_ARGS} --prune-trace $<TARGET_FILE:prune-trace>)
endif(BUILD_PRUNE_TRACE)
if(BUILD_DUMP_TRACE)
add_subdirectory(dump-trace)
set(TEST_DRIVER_ARGS ${TEST_DRIVER_ARGS} --dump-trace $<TARGET_FILE:dump-trace>)
endif(BUILD_DUMP_TRACE)
if(BUILD_CONVERT_TRACE)
@ -44,3 +49,5 @@ endif(BUILD_FAULTSPACEPLOT)
if(BUILD_DATA_AGGREGATOR)
add_subdirectory(analysis/data-aggregator)
endif(BUILD_DATA_AGGREGATOR)
add_subdirectory(tests)