Commit 61da49e2 authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

refs #5542 add simple test for ftdump


git-svn-id: file:///svn/toku/tokudb@48495 c7de825b-a66e-492c-adef-691d508d4ae1
parent d8545ca2
......@@ -103,6 +103,19 @@ if(BUILD_TESTING OR BUILD_FT_TESTS)
add_helgrind_test(ft/helgrind_test_partitioned_counter $<TARGET_FILE:test_partitioned_counter>)
configure_file(run_ftdump_test.sh . COPYONLY)
foreach(dump ftdump ftdump_static)
add_executable(ft-test-for-${dump} ft-test)
target_link_libraries(ft-test-for-${dump} ft ${LIBTOKUPORTABILITY})
add_common_options_to_binary_targets(ft-test-for-${dump})
set_property(TARGET ft-test-for-${dump} APPEND PROPERTY
COMPILE_DEFINITIONS "__SRCFILE__=\"ft-test-for-${dump}\";TOKUSVNROOT=\"${TOKU_SVNROOT}\"")
set_property(DIRECTORY APPEND PROPERTY ADDITIONAL_MAKE_CLEAN_FILES "ft-test-for-${dump}.ft_handle")
add_test(
NAME ft/${dump}-test
COMMAND run_ftdump_test.sh $<TARGET_FILE:ft-test-for-${dump}> "ft-test-for-${dump}.ft_handle" $<TARGET_FILE:${dump}>)
endforeach(dump)
foreach(test ${tests})
if(NOT "${test}" MATCHES "dir[.].*")
## add a default test rule that runs with no options
......
#!/usr/bin/env bash
if [[ $# -ne 3 ]]; then exit 1; fi
test=$1; shift
outf=$1; shift
dump=$1; shift
set -e
$test
$dump $outf
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