From 3ab194eb596995a101756fcb92f4294e2dcb3ba1 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Mon, 2 Nov 2009 22:14:53 +0100 Subject: Finally... unit tests!! First test is trivial, but it's a test (tabbar test). And now we have it! --- src/tests/CMakeLists.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/tests/CMakeLists.txt (limited to 'src/tests/CMakeLists.txt') diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt new file mode 100644 index 00000000..9963acd4 --- /dev/null +++ b/src/tests/CMakeLists.txt @@ -0,0 +1,22 @@ +### ---------- General Settings ------- + +SET( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} ) + +INCLUDE_DIRECTORIES ( ${CMAKE_CURRENT_BINARY_DIR}/.. + ${KDE4_INCLUDES} + ${QT4_INCLUDES} +) + +##### -------------tabbar test + +kde4_add_unit_test( tabbar_test TEST tabbar_test.cpp ) + +target_link_libraries( tabbar_test + kdeinit_rekonq + ${KDE4_KDECORE_LIBS} + ${KDE4_KDEUI_LIBS} + ${QT_QTCORE_LIBRARY} + ${QT_QTTEST_LIBRARY} +) + +# -------------- -- cgit v1.2.1 From e34963f2365d6352b8d1bc0761697cc0df5dd5ff Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Tue, 3 Nov 2009 16:19:53 +0100 Subject: Trivial MainView Test and now we have two.. :) --- src/tests/CMakeLists.txt | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'src/tests/CMakeLists.txt') diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt index 9963acd4..5df23e24 100644 --- a/src/tests/CMakeLists.txt +++ b/src/tests/CMakeLists.txt @@ -1,4 +1,4 @@ -### ---------- General Settings ------- +##### ---------- General Settings ---------- SET( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} ) @@ -7,16 +7,26 @@ INCLUDE_DIRECTORIES ( ${CMAKE_CURRENT_BINARY_DIR}/.. ${QT4_INCLUDES} ) -##### -------------tabbar test +##### ------------- tabbar test + +kde4_add_unit_test( tabbar_test tabbar_test.cpp ) -kde4_add_unit_test( tabbar_test TEST tabbar_test.cpp ) - target_link_libraries( tabbar_test kdeinit_rekonq ${KDE4_KDECORE_LIBS} ${KDE4_KDEUI_LIBS} - ${QT_QTCORE_LIBRARY} ${QT_QTTEST_LIBRARY} ) -# -------------- +##### ------------- mainview test + +kde4_add_unit_test( mainview_test mainview_test.cpp ) + +target_link_libraries( mainview_test + kdeinit_rekonq + ${KDE4_KDECORE_LIBS} + ${KDE4_KDEUI_LIBS} + ${QT_QTTEST_LIBRARY} +) + +############################################################ -- cgit v1.2.1