mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-05-01 14:47:27 +02:00
test: Make unit tests compile
However, not all tests run.
This commit is contained in:
parent
d31619a572
commit
1b6e8ce7cc
@ -32,9 +32,9 @@
|
||||
#include "global.h"
|
||||
#include "utils.h"
|
||||
|
||||
#include <qdialog.h>
|
||||
#include <qtreewidget.h>
|
||||
#include <qtooltip.h>
|
||||
#include <QDialog>
|
||||
#include <QTreeWidget>
|
||||
#include <QToolTip>
|
||||
#include <QMenu>
|
||||
|
||||
#include <ui_objectmanipulator_q.h>
|
||||
|
||||
@ -25,12 +25,12 @@
|
||||
|
||||
#include "AddressRangeDialogTest.h"
|
||||
|
||||
#include "../../../../config.h"
|
||||
#include "../../../config.h"
|
||||
//#include "../../global.h"
|
||||
|
||||
#include <qapplication.h>
|
||||
#include <qfile.h>
|
||||
#include <qtextstream.h>
|
||||
#include <QApplication>
|
||||
#include <QFile>
|
||||
#include <QTextStream>
|
||||
#include <QTest>
|
||||
#include <iostream>
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
include(../tests_common.pri)
|
||||
|
||||
QT += testlib network gui
|
||||
QT += testlib network gui widgets printsupport
|
||||
TARGET = AddressRangeDialogTest
|
||||
CONFIG += console
|
||||
CONFIG -= app_bundle
|
||||
|
||||
@ -25,12 +25,12 @@
|
||||
|
||||
#include "CustomServiceDialogTest.h"
|
||||
|
||||
#include "../../../../config.h"
|
||||
#include "../../../config.h"
|
||||
//#include "../../global.h"
|
||||
|
||||
#include <qapplication.h>
|
||||
#include <qfile.h>
|
||||
#include <qtextstream.h>
|
||||
#include <QApplication>
|
||||
#include <QFile>
|
||||
#include <QTextStream>
|
||||
#include <QTest>
|
||||
#include <iostream>
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
include(../tests_common.pri)
|
||||
|
||||
QT += testlib network gui
|
||||
QT += testlib network gui widgets printsupport
|
||||
TARGET = CustomServiceDialogTest
|
||||
CONFIG += console
|
||||
CONFIG -= app_bundle
|
||||
|
||||
@ -26,7 +26,7 @@
|
||||
#ifndef FWWINDOWTEST_H
|
||||
#define FWWINDOWTEST_H
|
||||
|
||||
#include <QtGui/QMainWindow>
|
||||
#include <QMainWindow>
|
||||
#include <QTest>
|
||||
#include <QMessageBox>
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
include(../tests_common.pri)
|
||||
|
||||
QT += testlib network gui
|
||||
QT += testlib network gui widgets printsupport
|
||||
|
||||
TARGET = FWWindowTest
|
||||
HEADERS += FWWindowTest.h
|
||||
|
||||
@ -25,12 +25,12 @@
|
||||
|
||||
#include "FirewallDialogTest.h"
|
||||
|
||||
#include "../../../../config.h"
|
||||
#include "../../../config.h"
|
||||
//#include "../../global.h"
|
||||
|
||||
#include <qapplication.h>
|
||||
#include <qfile.h>
|
||||
#include <qtextstream.h>
|
||||
#include <QApplication>
|
||||
#include <QFile>
|
||||
#include <QTextStream>
|
||||
#include <QTest>
|
||||
#include <iostream>
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
include(../tests_common.pri)
|
||||
|
||||
QT += testlib network gui
|
||||
QT += testlib network gui widgets printsupport
|
||||
TARGET = FirewallDialogTest
|
||||
SOURCES += main_FirewallDialogTest.cpp \
|
||||
FirewallDialogTest.cpp
|
||||
|
||||
@ -25,12 +25,12 @@
|
||||
|
||||
#include "GroupObjectDialogTest.h"
|
||||
|
||||
#include "../../../../config.h"
|
||||
#include "../../../config.h"
|
||||
//#include "../../global.h"
|
||||
|
||||
#include <qapplication.h>
|
||||
#include <qfile.h>
|
||||
#include <qtextstream.h>
|
||||
#include <QApplication>
|
||||
#include <QFile>
|
||||
#include <QTextStream>
|
||||
#include <QTest>
|
||||
#include <iostream>
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
include(../tests_common.pri)
|
||||
|
||||
QT += testlib network gui
|
||||
QT += testlib network gui widgets printsupport
|
||||
TARGET = GroupObjectDialogTest
|
||||
SOURCES += main_GroupObjectDialogTest.cpp \
|
||||
GroupObjectDialogTest.cpp
|
||||
|
||||
@ -25,12 +25,12 @@
|
||||
|
||||
#include "ICMP6ServiceDialogTest.h"
|
||||
|
||||
#include "../../../../config.h"
|
||||
#include "../../../config.h"
|
||||
//#include "../../global.h"
|
||||
|
||||
#include <qapplication.h>
|
||||
#include <qfile.h>
|
||||
#include <qtextstream.h>
|
||||
#include <QApplication>
|
||||
#include <QFile>
|
||||
#include <QTextStream>
|
||||
#include <QTest>
|
||||
#include <iostream>
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
include(../tests_common.pri)
|
||||
|
||||
QT += testlib network gui
|
||||
QT += testlib network gui widgets printsupport
|
||||
TARGET = ICMP6ServiceDialogTest
|
||||
SOURCES += main_ICMP6ServiceDialogTest.cpp \
|
||||
ICMP6ServiceDialogTest.cpp
|
||||
|
||||
@ -25,12 +25,12 @@
|
||||
|
||||
#include "ICMPServiceDialogTest.h"
|
||||
|
||||
#include "../../../../config.h"
|
||||
#include "../../../config.h"
|
||||
//#include "../../global.h"
|
||||
|
||||
#include <qapplication.h>
|
||||
#include <qfile.h>
|
||||
#include <qtextstream.h>
|
||||
#include <QApplication>
|
||||
#include <QFile>
|
||||
#include <QTextStream>
|
||||
#include <QTest>
|
||||
#include <iostream>
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
include(../tests_common.pri)
|
||||
|
||||
QT += testlib network gui
|
||||
QT += testlib network gui widgets printsupport
|
||||
TARGET = ICMPServiceDialogTest
|
||||
SOURCES += main_ICMPServiceDialogTest.cpp \
|
||||
ICMPServiceDialogTest.cpp
|
||||
|
||||
@ -25,12 +25,12 @@
|
||||
|
||||
#include "IPDialogTest.h"
|
||||
|
||||
#include "../../../../config.h"
|
||||
#include "../../../config.h"
|
||||
//#include "../../global.h"
|
||||
|
||||
#include <qapplication.h>
|
||||
#include <qfile.h>
|
||||
#include <qtextstream.h>
|
||||
#include <QApplication>
|
||||
#include <QFile>
|
||||
#include <QTextStream>
|
||||
#include <QTest>
|
||||
#include <iostream>
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
include(../tests_common.pri)
|
||||
|
||||
QT += testlib network gui
|
||||
QT += testlib network gui widgets printsupport
|
||||
TARGET = IPDialogTest
|
||||
SOURCES += main_IPDialogTest.cpp \
|
||||
IPDialogTest.cpp
|
||||
|
||||
@ -25,12 +25,12 @@
|
||||
|
||||
#include "IPServiceDialogTest.h"
|
||||
|
||||
#include "../../../../config.h"
|
||||
#include "../../../config.h"
|
||||
//#include "../../global.h"
|
||||
|
||||
#include <qapplication.h>
|
||||
#include <qfile.h>
|
||||
#include <qtextstream.h>
|
||||
#include <QApplication>
|
||||
#include <QFile>
|
||||
#include <QTextStream>
|
||||
#include <QTest>
|
||||
#include <iostream>
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
include(../tests_common.pri)
|
||||
|
||||
QT += testlib network gui
|
||||
QT += testlib network gui widgets printsupport
|
||||
TARGET = IPServiceDialogTest
|
||||
SOURCES += main_IPServiceDialogTest.cpp \
|
||||
IPServiceDialogTest.cpp
|
||||
|
||||
@ -131,7 +131,7 @@ void ImporterTest::compareResults(QueueLogger* logger,
|
||||
|
||||
QFile rw(obtained_result_file_name);
|
||||
rw.open(QFile::WriteOnly);
|
||||
rw.write(result.toAscii());
|
||||
rw.write(result.toLocal8Bit());
|
||||
rw.close();
|
||||
|
||||
QFile rr(expected_result_file_name);
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
include(../tests_common.pri)
|
||||
|
||||
QT += widgets printsupport
|
||||
TARGET = ImporterTest
|
||||
HEADERS += ImporterTest.h
|
||||
SOURCES += main_ImporterTest.cpp \
|
||||
ImporterTest.cpp
|
||||
ImporterTest.cpp
|
||||
|
||||
@ -25,12 +25,12 @@
|
||||
|
||||
#include "InterfaceDialogTest.h"
|
||||
|
||||
#include "../../../../config.h"
|
||||
#include "../../../config.h"
|
||||
//#include "../../global.h"
|
||||
|
||||
#include <qapplication.h>
|
||||
#include <qfile.h>
|
||||
#include <qtextstream.h>
|
||||
#include <QApplication>
|
||||
#include <QFile>
|
||||
#include <QTextStream>
|
||||
#include <QTest>
|
||||
#include <iostream>
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
include(../tests_common.pri)
|
||||
|
||||
QT += testlib network gui
|
||||
QT += testlib network gui widgets printsupport
|
||||
TARGET = InterfaceDialogTest
|
||||
SOURCES += main_InterfaceDialogTest.cpp \
|
||||
InterfaceDialogTest.cpp
|
||||
|
||||
@ -25,12 +25,12 @@
|
||||
|
||||
#include "NetworkDialogTest.h"
|
||||
|
||||
#include "../../../../config.h"
|
||||
#include "../../../config.h"
|
||||
//#include "../../global.h"
|
||||
|
||||
#include <qapplication.h>
|
||||
#include <qfile.h>
|
||||
#include <qtextstream.h>
|
||||
#include <QApplication>
|
||||
#include <QFile>
|
||||
#include <QTextStream>
|
||||
#include <QTest>
|
||||
#include <iostream>
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
include(../tests_common.pri)
|
||||
|
||||
QT += testlib network gui
|
||||
QT += testlib network gui widgets printsupport
|
||||
TARGET = NetworkDialogTests
|
||||
SOURCES += main_NetworkDialogTest.cpp \
|
||||
NetworkDialogTest.cpp
|
||||
|
||||
@ -25,12 +25,12 @@
|
||||
|
||||
#include "ObjectManipulatorTest.h"
|
||||
|
||||
#include "../../../../config.h"
|
||||
#include "../../../config.h"
|
||||
//#include "../../global.h"
|
||||
|
||||
#include <qapplication.h>
|
||||
#include <qfile.h>
|
||||
#include <qtextstream.h>
|
||||
#include <QApplication>
|
||||
#include <QFile>
|
||||
#include <QTextStream>
|
||||
#include <QTest>
|
||||
#include <iostream>
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
include(../tests_common.pri)
|
||||
|
||||
QT += testlib network gui
|
||||
QT += testlib network gui widgets printsupport
|
||||
TARGET = ObjectManipulatorTest
|
||||
SOURCES += main_ObjectManipulatorTest.cpp \
|
||||
ObjectManipulatorTest.cpp
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
include(../tests_common.pri)
|
||||
|
||||
QT += widgets printsupport
|
||||
TARGET = PFImporterTest
|
||||
HEADERS += PFImporterTest.h
|
||||
SOURCES += main_PFImporterTest.cpp \
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
include(../tests_common.pri)
|
||||
|
||||
QT += widgets printsupport
|
||||
TARGET = PIXImporterTest
|
||||
HEADERS += PIXImporterTest.h
|
||||
SOURCES += main_PIXImporterTest.cpp \
|
||||
|
||||
@ -25,13 +25,13 @@
|
||||
|
||||
#include "RCSTest.h"
|
||||
|
||||
#include "../../../../config.h"
|
||||
#include "../../../config.h"
|
||||
//#include "../../global.h"
|
||||
#include "../../libgui/RCS.h"
|
||||
|
||||
#include <qapplication.h>
|
||||
#include <qfile.h>
|
||||
#include <qtextstream.h>
|
||||
#include <QApplication>
|
||||
#include <QFile>
|
||||
#include <QTextStream>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
include(../tests_common.pri)
|
||||
|
||||
QT += gui network
|
||||
QT += gui widgets printsupport network
|
||||
|
||||
HEADERS += RCSTest.h
|
||||
SOURCES += main_RCS.cpp \
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
include(../tests_common.pri)
|
||||
|
||||
QT += testlib network gui
|
||||
QT += testlib network gui widgets printsupport
|
||||
TARGET = RuleSetViewContextMenuTest
|
||||
SOURCES += main_RuleSetViewContextMenuTest.cpp \
|
||||
RuleSetViewContextMenuTest.cpp
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
include(../tests_common.pri)
|
||||
|
||||
QT += testlib network gui
|
||||
QT += testlib network gui widgets printsupport
|
||||
TARGET = RuleSetViewTest
|
||||
SOURCES += main_RuleSetViewTest.cpp \
|
||||
RuleSetViewTest.cpp
|
||||
|
||||
@ -25,12 +25,12 @@
|
||||
|
||||
#include "TCPServiceDialogTest.h"
|
||||
|
||||
#include "../../../../config.h"
|
||||
#include "../../../config.h"
|
||||
//#include "../../global.h"
|
||||
|
||||
#include <qapplication.h>
|
||||
#include <qfile.h>
|
||||
#include <qtextstream.h>
|
||||
#include <QApplication>
|
||||
#include <QFile>
|
||||
#include <QTextStream>
|
||||
#include <QTest>
|
||||
#include <iostream>
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
include(../tests_common.pri)
|
||||
|
||||
QT += testlib network gui
|
||||
QT += testlib network gui widgets printsupport
|
||||
TARGET = TCPServiceDialogTest
|
||||
SOURCES += main_TCPServiceDialogTest.cpp \
|
||||
TCPServiceDialogTest.cpp
|
||||
|
||||
@ -25,12 +25,12 @@
|
||||
|
||||
#include "TagServiceDialogTest.h"
|
||||
|
||||
#include "../../../../config.h"
|
||||
#include "../../../config.h"
|
||||
//#include "../../global.h"
|
||||
|
||||
#include <qapplication.h>
|
||||
#include <qfile.h>
|
||||
#include <qtextstream.h>
|
||||
#include <QApplication>
|
||||
#include <QFile>
|
||||
#include <QTextStream>
|
||||
#include <QTest>
|
||||
#include <iostream>
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
include(../tests_common.pri)
|
||||
|
||||
QT += testlib network gui
|
||||
QT += testlib network gui widgets printsupport
|
||||
TARGET = TagServiceDialogTest
|
||||
SOURCES += main_TagServiceDialogTest.cpp \
|
||||
TagServiceDialogTest.cpp
|
||||
|
||||
@ -25,12 +25,12 @@
|
||||
|
||||
#include "UDPServiceDialogTest.h"
|
||||
|
||||
#include "../../../../config.h"
|
||||
#include "../../../config.h"
|
||||
//#include "../../global.h"
|
||||
|
||||
#include <qapplication.h>
|
||||
#include <qfile.h>
|
||||
#include <qtextstream.h>
|
||||
#include <QApplication>
|
||||
#include <QFile>
|
||||
#include <QTextStream>
|
||||
#include <QTest>
|
||||
#include <iostream>
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
include(../tests_common.pri)
|
||||
|
||||
QT += testlib network gui
|
||||
QT += testlib network gui widgets printsupport
|
||||
TARGET = UDPServiceDialogTest
|
||||
SOURCES += main_UDPServiceDialogTest.cpp \
|
||||
UDPServiceDialogTest.cpp
|
||||
|
||||
@ -25,12 +25,12 @@
|
||||
|
||||
#include "UserServiceDialogTest.h"
|
||||
|
||||
#include "../../../../config.h"
|
||||
#include "../../../config.h"
|
||||
//#include "../../global.h"
|
||||
|
||||
#include <qapplication.h>
|
||||
#include <qfile.h>
|
||||
#include <qtextstream.h>
|
||||
#include <QApplication>
|
||||
#include <QFile>
|
||||
#include <QTextStream>
|
||||
#include <QTest>
|
||||
#include <iostream>
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
include(../tests_common.pri)
|
||||
|
||||
QT += testlib network gui
|
||||
QT += testlib network gui widgets printsupport
|
||||
TARGET = UserServiceDialogTest
|
||||
SOURCES += main_UserServiceDialogTest.cpp \
|
||||
UserServiceDialogTest.cpp
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
include(../tests_common.pri)
|
||||
QT += gui network
|
||||
QT += gui widgets printsupport network
|
||||
|
||||
HEADERS = generatedScriptTestsIpfilter.h
|
||||
|
||||
|
||||
@ -47,7 +47,6 @@ int main(int argc, char **argv)
|
||||
QApplication app(argc, argv, false);
|
||||
|
||||
// compilers always write file names into manifest in Utf8
|
||||
QTextCodec::setCodecForCStrings(QTextCodec::codecForName("Utf8"));
|
||||
QTextCodec::setCodecForLocale(QTextCodec::codecForName("Utf8"));
|
||||
|
||||
init(argv);
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
include(../tests_common.pri)
|
||||
QT += gui network
|
||||
QT += gui widgets printsupport network
|
||||
|
||||
HEADERS = generatedScriptTestsIpfw.h
|
||||
|
||||
|
||||
@ -47,7 +47,6 @@ int main(int argc, char **argv)
|
||||
QApplication app(argc, argv, false);
|
||||
|
||||
// compilers always write file names into manifest in Utf8
|
||||
QTextCodec::setCodecForCStrings(QTextCodec::codecForName("Utf8"));
|
||||
QTextCodec::setCodecForLocale(QTextCodec::codecForName("Utf8"));
|
||||
|
||||
init(argv);
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
include(../tests_common.pri)
|
||||
QT += gui network
|
||||
QT += gui widgets printsupport network
|
||||
|
||||
HEADERS = generatedScriptTestsLinux.h
|
||||
SOURCES = main_generatedScriptTestsLinux.cpp \
|
||||
|
||||
@ -47,7 +47,6 @@ int main(int argc, char **argv)
|
||||
QApplication app(argc, argv, false);
|
||||
|
||||
// compilers always write file names into manifest in Utf8
|
||||
QTextCodec::setCodecForCStrings(QTextCodec::codecForName("Utf8"));
|
||||
QTextCodec::setCodecForLocale(QTextCodec::codecForName("Utf8"));
|
||||
|
||||
init(argv);
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
include(../tests_common.pri)
|
||||
QT += gui network
|
||||
QT += gui widgets printsupport network
|
||||
HEADERS = generatedScriptTestsPF.h
|
||||
SOURCES = main_generatedScriptTestsPF.cpp \
|
||||
generatedScriptTestsPF.cpp
|
||||
|
||||
@ -47,7 +47,6 @@ int main(int argc, char **argv)
|
||||
QApplication app(argc, argv, false);
|
||||
|
||||
// compilers always write file names into manifest in Utf8
|
||||
QTextCodec::setCodecForCStrings(QTextCodec::codecForName("Utf8"));
|
||||
QTextCodec::setCodecForLocale(QTextCodec::codecForName("Utf8"));
|
||||
|
||||
init(argv);
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
include(../tests_common.pri)
|
||||
QT += gui network
|
||||
QT += gui widgets printsupport network
|
||||
HEADERS = generatedScriptTestsSecuwall.h
|
||||
SOURCES = main_generatedScriptTestsSecuwall.cpp \
|
||||
generatedScriptTestsSecuwall.cpp
|
||||
|
||||
@ -37,7 +37,6 @@ int main(int argc, char **argv)
|
||||
QApplication app(argc, argv, false);
|
||||
|
||||
// compilers always write file names into manifest in Utf8
|
||||
QTextCodec::setCodecForCStrings(QTextCodec::codecForName("Utf8"));
|
||||
QTextCodec::setCodecForLocale(QTextCodec::codecForName("Utf8"));
|
||||
|
||||
init(argv);
|
||||
|
||||
@ -25,12 +25,12 @@
|
||||
|
||||
#include "genericDialogTest.h"
|
||||
|
||||
#include "../../../../config.h"
|
||||
#include "../../../config.h"
|
||||
//#include "../../global.h"
|
||||
|
||||
#include <qapplication.h>
|
||||
#include <qfile.h>
|
||||
#include <qtextstream.h>
|
||||
#include <QApplication>
|
||||
#include <QFile>
|
||||
#include <QTextStream>
|
||||
#include <QTest>
|
||||
#include <iostream>
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
include(../tests_common.pri)
|
||||
|
||||
QT += testlib network gui
|
||||
QT += testlib network gui widgets printsupport
|
||||
TARGET = genericDialogTest
|
||||
SOURCES += main_genericDialogTest.cpp \
|
||||
genericDialogTest.cpp
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
include(../tests_common.pri)
|
||||
|
||||
QT += testlib network gui
|
||||
QT += testlib network gui widgets printsupport
|
||||
TARGET = instDialogClusterTest
|
||||
SOURCES += main_instDialogClusterTest.cpp \
|
||||
instDialogClusterTest.cpp
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
include(../tests_common.pri)
|
||||
|
||||
QT += testlib network gui
|
||||
QT += testlib network gui widgets printsupport
|
||||
TARGET = instDialogCompileTest
|
||||
SOURCES += main_instDialogCompileTest.cpp \
|
||||
instDialogCompileTest.cpp
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
include(../tests_common.pri)
|
||||
|
||||
QT += testlib network gui
|
||||
QT += testlib network gui widgets printsupport
|
||||
TARGET = instDialogInspectTest
|
||||
SOURCES += main_instDialogInspectTest.cpp \
|
||||
instDialogInspectTest.cpp
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
include(../tests_common.pri)
|
||||
|
||||
QT += testlib network gui
|
||||
QT += testlib network gui widgets printsupport
|
||||
TARGET = instDialogInstallTest
|
||||
SOURCES += main_instDialogInstallTest.cpp \
|
||||
instDialogInstallTest.cpp
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
include(../tests_common.pri)
|
||||
|
||||
QT += testlib network gui
|
||||
QT += testlib network gui widgets printsupport
|
||||
TARGET = instDialogObjectListTest
|
||||
SOURCES += main_instDialogObjectListTest.cpp \
|
||||
instDialogObjectListTest.cpp
|
||||
|
||||
@ -26,7 +26,7 @@ DEPENDPATH += ../../.. \
|
||||
../../compiler_lib \
|
||||
../../common
|
||||
|
||||
QT += testlib network gui
|
||||
QT += testlib network gui widgets printsupport
|
||||
|
||||
TEMPLATE = lib
|
||||
|
||||
|
||||
@ -132,7 +132,7 @@ void newClusterDialogTest::test1()
|
||||
for (int i=1; i<dialog->getUi()->interfaceEditor->count(); i++)
|
||||
dynamic_cast<InterfaceEditorWidget*>(dialog->getUi()->interfaceEditor->widget(i))->setProtocolIndex(2);
|
||||
|
||||
InterfaceEditorWidget* eth0 = qFindChild<InterfaceEditorWidget*>(dialog->getUi()->interfaceEditor, "eth0_widget");
|
||||
InterfaceEditorWidget* eth0 = dialog->getUi()->interfaceEditor->findChild<InterfaceEditorWidget*>("eth0_widget");
|
||||
eth0->setProtocolIndex(0);
|
||||
eth0->addNewAddress("123.45.67.89", "24", true);
|
||||
|
||||
@ -168,7 +168,7 @@ void newClusterDialogTest::test1()
|
||||
}
|
||||
|
||||
dialog->getUi()->interfaceEditor->setCurrentIndex(1);
|
||||
InterfaceEditorWidget* eth1 = qFindChild<InterfaceEditorWidget*>(dialog->getUi()->interfaceEditor, "eth1_widget");
|
||||
InterfaceEditorWidget* eth1 = dialog->getUi()->interfaceEditor->findChild<InterfaceEditorWidget*>("eth1_widget");
|
||||
eth1->setProtocolIndex(0);
|
||||
QTableWidget *addrs = eth1->findChild<QTableWidget*>("addresses");
|
||||
QVERIFY(addrs != NULL);
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
include(../tests_common.pri)
|
||||
|
||||
QT += testlib network gui
|
||||
QT += testlib network gui widgets printsupport
|
||||
TARGET = newClusterDialogTest
|
||||
SOURCES += main_newClusterDialogTest.cpp \
|
||||
newClusterDialogTest.cpp
|
||||
|
||||
@ -28,9 +28,9 @@
|
||||
#include "config.h"
|
||||
#include "utils.h"
|
||||
|
||||
#include <qapplication.h>
|
||||
#include <qfile.h>
|
||||
#include <qtextstream.h>
|
||||
#include <QApplication>
|
||||
#include <QFile>
|
||||
#include <QTextStream>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
include(../tests_common.pri)
|
||||
|
||||
QT += gui network
|
||||
QT += gui widgets printsupport network
|
||||
|
||||
HEADERS += parseCommandLineTest.h
|
||||
SOURCES += main_parseCommandLineTest.cpp parseCommandLineTest.cpp
|
||||
|
||||
@ -26,7 +26,7 @@
|
||||
#ifndef FWWINDOWTEST_H
|
||||
#define FWWINDOWTEST_H
|
||||
|
||||
#include <QtGui/QMainWindow>
|
||||
#include <QMainWindow>
|
||||
#include <QTest>
|
||||
#include <QMessageBox>
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
include(../tests_common.pri)
|
||||
|
||||
QT += testlib network gui
|
||||
QT += testlib network gui widgets printsupport
|
||||
TARGET = startTipDialogTest
|
||||
HEADERS += startTipDialogTest.h
|
||||
SOURCES += main_startTipDialogTest.cpp \
|
||||
|
||||
@ -23,6 +23,7 @@ INCLUDEPATH += ../../.. \
|
||||
../../iptlib \
|
||||
../../pflib \
|
||||
../../cisco_lib \
|
||||
../../juniper_lib \
|
||||
../../libfwbuilder/src
|
||||
|
||||
DEPENDPATH += ../../.. \
|
||||
@ -36,6 +37,7 @@ DEPENDPATH += ../../.. \
|
||||
../../iptlib \
|
||||
../../pflib \
|
||||
../../cisco_lib \
|
||||
../../juniper_lib \
|
||||
../../libfwbuilder/src
|
||||
|
||||
run_tests.commands = echo "Running tests..."; ./${TARGET}
|
||||
@ -52,6 +54,7 @@ DEPENDPATH = ../../common \
|
||||
../../iptlib \
|
||||
../../pflib \
|
||||
../../cisco_lib/ \
|
||||
../../juniper_lib/ \
|
||||
../../compiler_lib \
|
||||
../../libgui \
|
||||
../../libfwbuilder/src/fwbuilder \
|
||||
@ -65,6 +68,7 @@ STATIC_LIBS += \
|
||||
../../iptlib/libiptlib.a \
|
||||
../../pflib/libfwbpf.a \
|
||||
../../cisco_lib/libfwbcisco.a \
|
||||
../../juniper_lib/libfwbjuniper.a \
|
||||
../../compiler_lib/libcompilerdriver.a \
|
||||
../../libfwbuilder/src/fwcompiler/libfwcompiler.a \
|
||||
../../libfwbuilder/src/fwbuilder/libfwbuilder.a \
|
||||
@ -77,6 +81,7 @@ PRE_TARGETDEPS += ../../common/libcommon.a \
|
||||
../../iptlib/libiptlib.a \
|
||||
../../pflib/libfwbpf.a \
|
||||
../../cisco_lib/libfwbcisco.a \
|
||||
../../juniper_lib/libfwbjuniper.a \
|
||||
../../compiler_lib/libcompilerdriver.a \
|
||||
../../parsers/libfwbparser.a \
|
||||
../../import/libimport.a \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user