From: ikemo Date: Sat, 24 Apr 2004 01:52:05 +0000 (+0000) Subject: add new tests X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=85dc54959da4fbe1ef62e34e032b38a7cfdb2946;p=kita%2Fkita.git add new tests git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/kita/kita/trunk@1001 56b19765-1e22-0410-a548-a0f45d66c51a --- diff --git a/kita/src/libkita/tests/Makefile.am b/kita/src/libkita/tests/Makefile.am index f4ebf57..a6170fb 100644 --- a/kita/src/libkita/tests/Makefile.am +++ b/kita/src/libkita/tests/Makefile.am @@ -4,5 +4,5 @@ check_PROGRAMS = test_libkita KDE_CXXFLAGS = $(USE_EXCEPTIONS) test_libkita_LDADD = $(top_builddir)/kita/src/libkita/libkita.la -lkio -lqt-mt -lcppunit -test_libkita_SOURCES = test_libkita.cpp k2ch_articlefiletest.cpp urlconverttest.cpp commenttest.cpp threadtest.cpp boardtest.cpp misctest.cpp favoritethreadstest.cpp favoriteboardstest.cpp commentlisttest.cpp -noinst_HEADERS = k2ch_articlefiletest.h urlconverttest.h commenttest.h threadtest.h boardtest.h misctest.h favoritethreadstest.h favoriteboardstest.h commentlisttest.h +test_libkita_SOURCES = test_libkita.cpp k2ch_articlefiletest.cpp urlconverttest.cpp commenttest.cpp threadtest.cpp boardtest.cpp misctest.cpp favoritethreadstest.cpp favoriteboardstest.cpp commentlisttest.cpp cachetest.cpp +noinst_HEADERS = k2ch_articlefiletest.h urlconverttest.h commenttest.h threadtest.h boardtest.h misctest.h favoritethreadstest.h favoriteboardstest.h commentlisttest.h cachetest.h diff --git a/kita/src/libkita/tests/cachetest.cpp b/kita/src/libkita/tests/cachetest.cpp new file mode 100644 index 0000000..fe5d1a9 --- /dev/null +++ b/kita/src/libkita/tests/cachetest.cpp @@ -0,0 +1,20 @@ +/*************************************************************************** +* Copyright (C) 2004 by Hideki Ikemoto * +* ikemo@wakaba.jp * +* * +* 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. * +***************************************************************************/ +#include "cachetest.h" + +using namespace Kita; + +void CacheTest::setUp() +{ +} + +void CacheTest::tearDown() +{ +} diff --git a/kita/src/libkita/tests/cachetest.h b/kita/src/libkita/tests/cachetest.h new file mode 100644 index 0000000..00f9a41 --- /dev/null +++ b/kita/src/libkita/tests/cachetest.h @@ -0,0 +1,29 @@ +/*************************************************************************** +* Copyright (C) 2004 by Hideki Ikemoto * +* ikemo@wakaba.jp * +* * +* 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. * +***************************************************************************/ +#ifndef CACHETEST_H +#define CACHETEST_H + +#include +#include "../cache.h" + +/** +@author Hideki Ikemoto +*/ +class CacheTest : public CppUnit::TestFixture +{ + CPPUNIT_TEST_SUITE( CacheTest ); + CPPUNIT_TEST_SUITE_END(); + +public: + void setUp(); + void tearDown(); +}; + +#endif diff --git a/kita/src/libkita/tests/test_libkita.cpp b/kita/src/libkita/tests/test_libkita.cpp index 64eb3ec..bdb7d6f 100644 --- a/kita/src/libkita/tests/test_libkita.cpp +++ b/kita/src/libkita/tests/test_libkita.cpp @@ -20,6 +20,7 @@ #include "favoritethreadstest.h" #include "favoriteboardstest.h" #include "commentlisttest.h" +#include "cachetest.h" int main( int argc, char* argv[] ) { @@ -34,6 +35,7 @@ int main( int argc, char* argv[] ) runner.addTest( FavoriteThreadsTest::suite() ); runner.addTest( FavoriteBoardsTest::suite() ); runner.addTest( CommentListTest::suite() ); + runner.addTest( CacheTest::suite() ); runner.run( "" ); return 0; }