diff options
Diffstat (limited to 'src/tests')
| -rw-r--r-- | src/tests/CMakeLists.txt | 93 | ||||
| -rw-r--r-- | src/tests/kretest.cpp | 7 | ||||
| -rw-r--r-- | src/tests/mmftest.cpp | 7 | ||||
| -rw-r--r-- | src/tests/mx2test.cpp | 7 | ||||
| -rw-r--r-- | src/tests/mxptest.cpp | 7 | ||||
| -rw-r--r-- | src/tests/nyctest.cpp | 7 | ||||
| -rw-r--r-- | src/tests/recipemltest.cpp | 7 | ||||
| -rw-r--r-- | src/tests/rezkonvtest.cpp | 7 |
8 files changed, 135 insertions, 7 deletions
diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt new file mode 100644 index 0000000..8047d10 --- /dev/null +++ b/src/tests/CMakeLists.txt @@ -0,0 +1,93 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/src + ${CMAKE_SOURCE_DIR}/src/importers + ${CMAKE_SOURCE_DIR}/src/exporters + ${CMAKE_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + + +link_directories( + ${TQT_LIBRARY_DIRS} + ${TDE_LIB_DIR} +) + + +##### kretest (executable) + +tde_add_check_executable( kretest AUTOMOC + SOURCES kretest.cpp + LINK + krecipesexporters-static krecipesimporters-static + krecipesdbs-static datablocks-static + tdecore-shared tdeio-shared +) + + +##### mmftest (executable) + +tde_add_check_executable( mmftest AUTOMOC + SOURCES mmftest.cpp + LINK + krecipesexporters-static krecipesimporters-static + krecipesdbs-static datablocks-static + tdecore-shared tdeio-shared +) + + +##### mx2test (executable) + +tde_add_check_executable( mx2test AUTOMOC + SOURCES mx2test.cpp + LINK + krecipesexporters-static krecipesimporters-static + krecipesdbs-static datablocks-static + tdecore-shared tdeio-shared +) + + +##### mxptest (executable) + +tde_add_check_executable( mxptest AUTOMOC + SOURCES mxptest.cpp + LINK + krecipesexporters-static krecipesimporters-static + krecipesdbs-static datablocks-static + tdecore-shared tdeio-shared +) + + +##### rezkonvtest (executable) + +tde_add_check_executable( rezkonvtest AUTOMOC + SOURCES rezkonvtest.cpp + LINK + krecipesexporters-static krecipesimporters-static + krecipesdbs-static datablocks-static + tdecore-shared tdeio-shared +) + + +##### nyctest (executable) + +tde_add_check_executable( nyctest AUTOMOC + SOURCES nyctest.cpp + LINK + krecipesexporters-static krecipesimporters-static + krecipesdbs-static datablocks-static + tdecore-shared tdeio-shared +) + + +##### recipemltest (executable) + +tde_add_check_executable( recipemltest AUTOMOC + SOURCES recipemltest.cpp + LINK + krecipesexporters-static krecipesimporters-static + krecipesdbs-static datablocks-static + tdecore-shared tdeio-shared +) diff --git a/src/tests/kretest.cpp b/src/tests/kretest.cpp index 10c88c2..941e30d 100644 --- a/src/tests/kretest.cpp +++ b/src/tests/kretest.cpp @@ -8,7 +8,9 @@ * (at your option) any later version. * ***************************************************************************/ +#include <tdeaboutdata.h> #include <tdeapplication.h> +#include <tdecmdlineargs.h> #include <tqstring.h> #include <tqfile.h> @@ -23,7 +25,10 @@ int main(int argc, char *argv[]) { - TDEApplication a(argc, argv, "kretest"); + TDEAboutData *about = new TDEAboutData("kretest", I18N_NOOP("kretest"), "1.0", + nullptr, TDEAboutData::License_GPL, nullptr, nullptr, nullptr, nullptr); + TDECmdLineArgs::init(argc, argv, about); + TDEApplication a; printf("Creating KreImporter.\n"); KreImporter importer; diff --git a/src/tests/mmftest.cpp b/src/tests/mmftest.cpp index 453fcaa..a534721 100644 --- a/src/tests/mmftest.cpp +++ b/src/tests/mmftest.cpp @@ -8,7 +8,9 @@ * (at your option) any later version. * ***************************************************************************/ +#include <tdeaboutdata.h> #include <tdeapplication.h> +#include <tdecmdlineargs.h> #include <tqstring.h> @@ -24,7 +26,10 @@ using std::endl; int main(int argc, char *argv[]) { - TDEApplication a(argc, argv, "mmftest"); + TDEAboutData *about = new TDEAboutData("mmftest", I18N_NOOP("mmftest"), "1.0", + nullptr, TDEAboutData::License_GPL, nullptr, nullptr, nullptr, nullptr); + TDECmdLineArgs::init(argc, argv, about); + TDEApplication a; printf("Creating MMFImporter.\n"); MMFImporter importer; diff --git a/src/tests/mx2test.cpp b/src/tests/mx2test.cpp index daa379e..5388b20 100644 --- a/src/tests/mx2test.cpp +++ b/src/tests/mx2test.cpp @@ -8,7 +8,9 @@ * (at your option) any later version. * ***************************************************************************/ +#include <tdeaboutdata.h> #include <tdeapplication.h> +#include <tdecmdlineargs.h> #include <tqstring.h> @@ -22,7 +24,10 @@ using std::endl; int main(int argc, char *argv[]) { - TDEApplication a(argc, argv, "mx2test"); + TDEAboutData *about = new TDEAboutData("mx2test", I18N_NOOP("mx2test"), "1.0", + nullptr, TDEAboutData::License_GPL, nullptr, nullptr, nullptr, nullptr); + TDECmdLineArgs::init(argc, argv, about); + TDEApplication a; printf("Creating MX2Importer.\n"); MX2Importer importer; diff --git a/src/tests/mxptest.cpp b/src/tests/mxptest.cpp index 3c56a6f..b765a99 100644 --- a/src/tests/mxptest.cpp +++ b/src/tests/mxptest.cpp @@ -8,7 +8,9 @@ * (at your option) any later version. * ***************************************************************************/ +#include <tdeaboutdata.h> #include <tdeapplication.h> +#include <tdecmdlineargs.h> #include <tqstring.h> @@ -22,7 +24,10 @@ using std::endl; int main(int argc, char *argv[]) { - TDEApplication a(argc, argv, "mxptest"); + TDEAboutData *about = new TDEAboutData("mxptest", I18N_NOOP("mxptest"), "1.0", + nullptr, TDEAboutData::License_GPL, nullptr, nullptr, nullptr, nullptr); + TDECmdLineArgs::init(argc, argv, about); + TDEApplication a; printf("Creating MXPImporter.\n"); MXPImporter importer; diff --git a/src/tests/nyctest.cpp b/src/tests/nyctest.cpp index 724b6a0..ecc01bb 100644 --- a/src/tests/nyctest.cpp +++ b/src/tests/nyctest.cpp @@ -8,7 +8,9 @@ * (at your option) any later version. * ***************************************************************************/ +#include <tdeaboutdata.h> #include <tdeapplication.h> +#include <tdecmdlineargs.h> #include <tqstring.h> @@ -22,7 +24,10 @@ using std::endl; int main(int argc, char *argv[]) { - TDEApplication a(argc, argv, "nyctest"); + TDEAboutData *about = new TDEAboutData("nyctest", I18N_NOOP("nyctest"), "1.0", + nullptr, TDEAboutData::License_GPL, nullptr, nullptr, nullptr, nullptr); + TDECmdLineArgs::init(argc, argv, about); + TDEApplication a; printf("Creating NYCGenericImporter.\n"); NYCGenericImporter importer; diff --git a/src/tests/recipemltest.cpp b/src/tests/recipemltest.cpp index eb11880..cef3adb 100644 --- a/src/tests/recipemltest.cpp +++ b/src/tests/recipemltest.cpp @@ -8,7 +8,9 @@ * (at your option) any later version. * ***************************************************************************/ +#include <tdeaboutdata.h> #include <tdeapplication.h> +#include <tdecmdlineargs.h> #include <tqstring.h> @@ -24,7 +26,10 @@ using std::endl; int main(int argc, char *argv[]) { - TDEApplication a(argc, argv, "recipemltest"); + TDEAboutData *about = new TDEAboutData("recipemltest", I18N_NOOP("recipemltest"), "1.0", + nullptr, TDEAboutData::License_GPL, nullptr, nullptr, nullptr, nullptr); + TDECmdLineArgs::init(argc, argv, about); + TDEApplication a; printf("Creating RecipeMLImporter.\n"); RecipeMLImporter importer; diff --git a/src/tests/rezkonvtest.cpp b/src/tests/rezkonvtest.cpp index d9b8022..f2773ce 100644 --- a/src/tests/rezkonvtest.cpp +++ b/src/tests/rezkonvtest.cpp @@ -8,7 +8,9 @@ * (at your option) any later version. * ***************************************************************************/ +#include <tdeaboutdata.h> #include <tdeapplication.h> +#include <tdecmdlineargs.h> #include <tqstring.h> @@ -24,7 +26,10 @@ using std::endl; int main(int argc, char *argv[]) { - TDEApplication a(argc, argv, "rezkonvtest"); + TDEAboutData *about = new TDEAboutData("rezkonvtest", I18N_NOOP("rezkonvtest"), "1.0", + nullptr, TDEAboutData::License_GPL, nullptr, nullptr, nullptr, nullptr); + TDECmdLineArgs::init(argc, argv, about); + TDEApplication a; printf("Creating RezkonvImporter.\n"); RezkonvImporter importer; |
