From 7e920912dcc2d0d363b7eadabf67a6e5fe7e12c9 Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Mon, 17 Sep 2007 18:33:07 +0000 Subject: [PATCH] Add a 1==1 test for keduvocdocument to expand upon. svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=713531 --- keduvocdocument/tests/CMakeLists.txt | 13 ++++++ .../tests/keduvocdocumentvalidatortest.cpp | 43 +++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 keduvocdocument/tests/keduvocdocumentvalidatortest.cpp diff --git a/keduvocdocument/tests/CMakeLists.txt b/keduvocdocument/tests/CMakeLists.txt index 62175e8..d9b6252 100644 --- a/keduvocdocument/tests/CMakeLists.txt +++ b/keduvocdocument/tests/CMakeLists.txt @@ -1,4 +1,13 @@ + +kde4_add_unit_test(keduvocdocumentvalidatortest keduvocdocumentvalidatortest.cpp) +target_link_libraries(keduvocdocumentvalidatortest keduvocdocument + ${KDE4_KDECORE_LIBS} ${QT_QTGUI_LIBRARY} ${QT_QTTEST_LIBRARY}) + + +# CONVERTER: + + include_directories( ${CMAKE_SOURCE_DIR}/libkdeedu/keduvocdocument/ ) @@ -12,3 +21,7 @@ kde4_add_executable(converter ${converter_SRCS}) target_link_libraries(converter keduvocdocument ) + + + + diff --git a/keduvocdocument/tests/keduvocdocumentvalidatortest.cpp b/keduvocdocument/tests/keduvocdocumentvalidatortest.cpp new file mode 100644 index 0000000..52f3d88 --- /dev/null +++ b/keduvocdocument/tests/keduvocdocumentvalidatortest.cpp @@ -0,0 +1,43 @@ +/* + Copyright 2007 Frederik Gladhorn + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 + USA +*/ + +#include "../keduvocdocument.h" + +#include + +#include +#include + +class KEduVocDocumentValidatorTest + : public QObject +{ + Q_OBJECT + +private slots: + void testDocumentAboutInfo(); +}; + +void KEduVocDocumentValidatorTest::testDocumentAboutInfo() +{ + QVERIFY( 1==1 ); +} + +QTEST_KDEMAIN_CORE( KEduVocDocumentValidatorTest ) + +#include "keduvocdocumentvalidatortest.moc" -- 2.47.3