diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tests/CMakeLists.txt | 13 | ||||
-rw-r--r-- | src/tests/kretest.cpp | 1 | ||||
-rw-r--r-- | src/tests/mmftest.cpp | 3 | ||||
-rw-r--r-- | src/tests/mx2test.cpp | 3 | ||||
-rw-r--r-- | src/tests/mxptest.cpp | 3 | ||||
-rw-r--r-- | src/tests/nyctest.cpp | 3 | ||||
-rw-r--r-- | src/tests/recipemltest.cpp | 3 | ||||
-rw-r--r-- | src/tests/rezkonvtest.cpp | 3 |
8 files changed, 20 insertions, 12 deletions
diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt index 412812b..0b5495d 100644 --- a/src/tests/CMakeLists.txt +++ b/src/tests/CMakeLists.txt @@ -45,6 +45,7 @@ endfunction() ##### kretest (executable) +# The test needs X11 for TQPixmap to run, hence not running it automatically tde_add_check_executable( kretest AUTOMOC SOURCES kretest.cpp LINK @@ -57,7 +58,7 @@ setup_test_data( kretest kretest.txt test_photo.jpg ) ##### mmftest (executable) -tde_add_check_executable( mmftest AUTOMOC +tde_add_check_executable( mmftest AUTOMOC TEST SOURCES mmftest.cpp LINK krecipesexporters-static krecipesimporters-static @@ -69,7 +70,7 @@ setup_test_data( mmftest mmftest.txt ) ##### mx2test (executable) -tde_add_check_executable( mx2test AUTOMOC +tde_add_check_executable( mx2test AUTOMOC TEST SOURCES mx2test.cpp LINK krecipesexporters-static krecipesimporters-static @@ -81,7 +82,7 @@ setup_test_data( mx2test mx2test.txt ) ##### mxptest (executable) -tde_add_check_executable( mxptest AUTOMOC +tde_add_check_executable( mxptest AUTOMOC TEST SOURCES mxptest.cpp LINK krecipesexporters-static krecipesimporters-static @@ -93,7 +94,7 @@ setup_test_data( mxptest mxptest.txt ) ##### nyctest (executable) -tde_add_check_executable( nyctest AUTOMOC +tde_add_check_executable( nyctest AUTOMOC TEST SOURCES nyctest.cpp LINK krecipesexporters-static krecipesimporters-static @@ -105,7 +106,7 @@ setup_test_data( nyctest nyctest.txt ) ##### recipemltest (executable) -tde_add_check_executable( recipemltest AUTOMOC +tde_add_check_executable( recipemltest AUTOMOC TEST SOURCES recipemltest.cpp LINK krecipesexporters-static krecipesimporters-static @@ -117,7 +118,7 @@ setup_test_data( recipemltest recipemltest.txt ) ##### rezkonvtest (executable) -tde_add_check_executable( rezkonvtest AUTOMOC +tde_add_check_executable( rezkonvtest AUTOMOC TEST SOURCES rezkonvtest.cpp LINK krecipesexporters-static krecipesimporters-static diff --git a/src/tests/kretest.cpp b/src/tests/kretest.cpp index 3b2d098..93c1e1e 100644 --- a/src/tests/kretest.cpp +++ b/src/tests/kretest.cpp @@ -28,6 +28,7 @@ main(int argc, char *argv[]) TDEAboutData *about = new TDEAboutData("kretest", I18N_NOOP("kretest"), "1.0", nullptr, TDEAboutData::License_GPL, nullptr, nullptr, nullptr, nullptr); TDECmdLineArgs::init(argc, argv, about); + // The test needs GUI for TQPixmap TDEApplication a; printf("Creating KreImporter.\n"); diff --git a/src/tests/mmftest.cpp b/src/tests/mmftest.cpp index b45a9c4..dd48066 100644 --- a/src/tests/mmftest.cpp +++ b/src/tests/mmftest.cpp @@ -29,7 +29,8 @@ main(int argc, char *argv[]) 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; + TDEApplication::disableAutoDcopRegistration(); // will reduce noise when we run without X11 + TDEApplication a(/* allowStyles =*/ false, /* GUIenabled =*/ false); printf("Creating MMFImporter.\n"); MMFImporter importer; diff --git a/src/tests/mx2test.cpp b/src/tests/mx2test.cpp index 676eb8b..63a9e37 100644 --- a/src/tests/mx2test.cpp +++ b/src/tests/mx2test.cpp @@ -28,7 +28,8 @@ main(int argc, char *argv[]) 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; + TDEApplication::disableAutoDcopRegistration(); // will reduce noise when we run without X11 + TDEApplication a(/* allowStyles =*/ false, /* GUIenabled =*/ false); printf("Creating MX2Importer.\n"); MX2Importer importer; diff --git a/src/tests/mxptest.cpp b/src/tests/mxptest.cpp index a023481..1c6db99 100644 --- a/src/tests/mxptest.cpp +++ b/src/tests/mxptest.cpp @@ -27,7 +27,8 @@ main(int argc, char *argv[]) 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; + TDEApplication::disableAutoDcopRegistration(); // will reduce noise when we run without X11 + TDEApplication a(/* allowStyles =*/ false, /* GUIenabled =*/ false); printf("Creating MXPImporter.\n"); MXPImporter importer; diff --git a/src/tests/nyctest.cpp b/src/tests/nyctest.cpp index ecc01bb..a228cba 100644 --- a/src/tests/nyctest.cpp +++ b/src/tests/nyctest.cpp @@ -27,7 +27,8 @@ main(int argc, char *argv[]) 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; + TDEApplication::disableAutoDcopRegistration(); // will reduce noise when we run without X11 + TDEApplication a(/* allowStyles =*/ false, /* GUIenabled =*/ false); printf("Creating NYCGenericImporter.\n"); NYCGenericImporter importer; diff --git a/src/tests/recipemltest.cpp b/src/tests/recipemltest.cpp index d800345..8051e51 100644 --- a/src/tests/recipemltest.cpp +++ b/src/tests/recipemltest.cpp @@ -29,7 +29,8 @@ main(int argc, char *argv[]) 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; + TDEApplication::disableAutoDcopRegistration(); // will reduce noise when we run without X11 + TDEApplication a(/* allowStyles =*/ false, /* GUIenabled =*/ false); printf("Creating RecipeMLImporter.\n"); RecipeMLImporter importer; diff --git a/src/tests/rezkonvtest.cpp b/src/tests/rezkonvtest.cpp index b4430d1..044a90e 100644 --- a/src/tests/rezkonvtest.cpp +++ b/src/tests/rezkonvtest.cpp @@ -29,7 +29,8 @@ main(int argc, char *argv[]) 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; + TDEApplication::disableAutoDcopRegistration(); // will reduce noise when we run without X11 + TDEApplication a(/* allowStyles =*/ false, /* GUIenabled =*/ false); printf("Creating RezkonvImporter.\n"); RezkonvImporter importer; |