4
0
mirror of https://github.com/QuasarApp/qca.git synced 2025-05-11 02:09:33 +00:00
Brad Hards f3d4868398 Rework the MD5 and SHA1 file tests to remove reliance
on additional files (not provided with QCA). 

This also makes the tests run much, much faster.

svn path=/trunk/kdesupport/qca/; revision=685152
2007-07-08 04:50:36 +00:00

16 lines
615 B
CMake

ENABLE_TESTING()
set(hashunittest_bin_SRCS hashunittest.cpp)
MY_AUTOMOC( hashunittest_bin_SRCS )
add_executable( hashunittest ${hashunittest_bin_SRCS} )
target_link_libraries( hashunittest qca ${QT_QTTEST_LIBRARY})
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/data/empty ${CMAKE_CURRENT_BINARY_DIR}/data/empty COPYONLY)
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/data/twobytes ${CMAKE_CURRENT_BINARY_DIR}/data/twobytes COPYONLY)
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/data/twohundredbytes ${CMAKE_CURRENT_BINARY_DIR}/data/twohundredbytes COPYONLY)
ADD_TEST(Hashing ${EXECUTABLE_OUTPUT_PATH}/hashunittest)