1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-06-24 01:49:36 +02:00

fixing unit tests for removed modules and rearranged INCLUDEPATH

This commit is contained in:
Vadim Kurland
2012-03-22 22:17:10 -07:00
parent c086283bc5
commit a1af722d69
39 changed files with 61 additions and 154 deletions

View File

@@ -31,7 +31,6 @@
#include "FWWindow.h"
#include "FWBSettings.h"
#include "FWBApplication.h"
#include "UserWorkflow.h"
using namespace std;
@@ -41,14 +40,13 @@ int fwbdebug = 0;
FWWindow *mw = NULL;
FWBSettings *st = NULL;
FWBApplication *app = NULL;
UserWorkflow *wfl;
int sig = FWB_SIG;
extern void build_app(int argc, char** argv,
FWBApplication** app,
FWBSettings** st,
UserWorkflow** wfl);
FWBSettings** st);
int main(int argc, char** argv)
{
@@ -56,7 +54,7 @@ int main(int argc, char** argv)
app->setOrganizationName(QLatin1String("NetCitadel"));
app->setApplicationName(QLatin1String("Firewall Builder"));
build_app(argc, argv, &app, &st, &wfl);
build_app(argc, argv, &app, &st);
QTest::qExec(new AddressRangeDialogTest());

View File

@@ -12,7 +12,7 @@ LIBS += $$CPPUNIT_LIBS
SOURCES += main.cpp AddressTableTest.cpp
HEADERS += AddressTableTest.h
INCLUDEPATH += ../../libfwbuilder/src
INCLUDEPATH += ../../.. ../../libfwbuilder/src
DEPENDPATH += ../../libfwbuilder/src
LIBS += ../../libfwbuilder/src/fwbuilder/libfwbuilder.a
run_tests.commands = echo "Running tests..." && ./${TARGET}

View File

@@ -32,7 +32,6 @@
#include "FWWindow.h"
#include "FWBSettings.h"
#include "FWBApplication.h"
#include "UserWorkflow.h"
using namespace std;
@@ -42,14 +41,12 @@ int fwbdebug = 0;
FWWindow *mw = NULL;
FWBSettings *st = NULL;
FWBApplication *app = NULL;
UserWorkflow *wfl;
int sig = FWB_SIG;
extern void build_app(int argc, char** argv,
FWBApplication** app,
FWBSettings** st,
UserWorkflow** wfl);
FWBSettings** st);
int main(int argc, char** argv)
{
@@ -57,7 +54,7 @@ int main(int argc, char** argv)
app->setOrganizationName(QLatin1String("NetCitadel"));
app->setApplicationName(QLatin1String("Firewall Builder"));
build_app(argc, argv, &app, &st, &wfl);
build_app(argc, argv, &app, &st);
QTest::qExec(new CustomServiceDialogTest());

View File

@@ -12,7 +12,7 @@ LIBS += $$CPPUNIT_LIBS
SOURCES += main.cpp DNSTest.cpp
HEADERS += DNSTest.h
INCLUDEPATH += ../../libfwbuilder/src
INCLUDEPATH += ../../.. ../../libfwbuilder/src
DEPENDPATH += ../../libfwbuilder/src
LIBS += ../../libfwbuilder/src/fwbuilder/libfwbuilder.a
run_tests.commands = echo "Running tests..." && ./${TARGET}

View File

@@ -11,7 +11,7 @@ LIBS += $$CPPUNIT_LIBS
SOURCES += main.cpp FWObjectTest.cpp
HEADERS += FWObjectTest.h
INCLUDEPATH += ../../libfwbuilder/src
INCLUDEPATH += ../../.. ../../libfwbuilder/src
DEPENDPATH += ../../libfwbuilder/src
LIBS += ../../libfwbuilder/src/fwbuilder/libfwbuilder.a
run_tests.commands = echo "Running tests..." && ./${TARGET}

View File

@@ -32,7 +32,6 @@
#include "FWWindow.h"
#include "FWBSettings.h"
#include "FWBApplication.h"
#include "UserWorkflow.h"
using namespace std;
@@ -42,14 +41,12 @@ int fwbdebug = 0;
FWWindow *mw = NULL;
FWBSettings *st = NULL;
FWBApplication *app = NULL;
UserWorkflow *wfl;
int sig = FWB_SIG;
extern void build_app(int argc, char** argv,
FWBApplication** app,
FWBSettings** st,
UserWorkflow** wfl);
FWBSettings** st);
int main(int argc, char** argv)
{
@@ -57,7 +54,7 @@ int main(int argc, char** argv)
app->setOrganizationName(QLatin1String("NetCitadel"));
app->setApplicationName(QLatin1String("Firewall Builder"));
build_app(argc, argv, &app, &st, &wfl);
build_app(argc, argv, &app, &st);
QTest::qExec(new FWWindowTest());

View File

@@ -32,7 +32,6 @@
#include "FWWindow.h"
#include "FWBSettings.h"
#include "FWBApplication.h"
#include "UserWorkflow.h"
using namespace std;
@@ -42,14 +41,12 @@ int fwbdebug = 0;
FWWindow *mw = NULL;
FWBSettings *st = NULL;
FWBApplication *app = NULL;
UserWorkflow *wfl;
int sig = FWB_SIG;
extern void build_app(int argc, char** argv,
FWBApplication** app,
FWBSettings** st,
UserWorkflow** wfl);
FWBSettings** st);
int main(int argc, char** argv)
{
@@ -57,7 +54,7 @@ int main(int argc, char** argv)
app->setOrganizationName(QLatin1String("NetCitadel"));
app->setApplicationName(QLatin1String("Firewall Builder"));
build_app(argc, argv, &app, &st, &wfl);
build_app(argc, argv, &app, &st);
QTest::qExec(new FirewallDialogTest());

View File

@@ -32,7 +32,6 @@
#include "FWWindow.h"
#include "FWBSettings.h"
#include "FWBApplication.h"
#include "UserWorkflow.h"
using namespace std;
@@ -42,14 +41,12 @@ int fwbdebug = 0;
FWWindow *mw = NULL;
FWBSettings *st = NULL;
FWBApplication *app = NULL;
UserWorkflow *wfl;
int sig = FWB_SIG;
extern void build_app(int argc, char** argv,
FWBApplication** app,
FWBSettings** st,
UserWorkflow** wfl);
FWBSettings** st);
int main(int argc, char** argv)
{
@@ -57,7 +54,7 @@ int main(int argc, char** argv)
app->setOrganizationName(QLatin1String("NetCitadel"));
app->setApplicationName(QLatin1String("Firewall Builder"));
build_app(argc, argv, &app, &st, &wfl);
build_app(argc, argv, &app, &st);
QTest::qExec(new GroupObjectDialogTest());

View File

@@ -32,7 +32,6 @@
#include "FWWindow.h"
#include "FWBSettings.h"
#include "FWBApplication.h"
#include "UserWorkflow.h"
using namespace std;
@@ -42,14 +41,12 @@ int fwbdebug = 0;
FWWindow *mw = NULL;
FWBSettings *st = NULL;
FWBApplication *app = NULL;
UserWorkflow *wfl;
int sig = FWB_SIG;
extern void build_app(int argc, char** argv,
FWBApplication** app,
FWBSettings** st,
UserWorkflow** wfl);
FWBSettings** st);
int main(int argc, char** argv)
{
@@ -57,7 +54,7 @@ int main(int argc, char** argv)
app->setOrganizationName(QLatin1String("NetCitadel"));
app->setApplicationName(QLatin1String("Firewall Builder"));
build_app(argc, argv, &app, &st, &wfl);
build_app(argc, argv, &app, &st);
QTest::qExec(new ICMP6ServiceDialogTest());

View File

@@ -32,7 +32,6 @@
#include "FWWindow.h"
#include "FWBSettings.h"
#include "FWBApplication.h"
#include "UserWorkflow.h"
using namespace std;
@@ -42,14 +41,12 @@ int fwbdebug = 0;
FWWindow *mw = NULL;
FWBSettings *st = NULL;
FWBApplication *app = NULL;
UserWorkflow *wfl;
int sig = FWB_SIG;
extern void build_app(int argc, char** argv,
FWBApplication** app,
FWBSettings** st,
UserWorkflow** wfl);
FWBSettings** st);
int main(int argc, char** argv)
{
@@ -57,7 +54,7 @@ int main(int argc, char** argv)
app->setOrganizationName(QLatin1String("NetCitadel"));
app->setApplicationName(QLatin1String("Firewall Builder"));
build_app(argc, argv, &app, &st, &wfl);
build_app(argc, argv, &app, &st);
QTest::qExec(new ICMPServiceDialogTest());

View File

@@ -31,7 +31,6 @@
#include "FWWindow.h"
#include "FWBSettings.h"
#include "FWBApplication.h"
#include "UserWorkflow.h"
using namespace std;
@@ -41,14 +40,12 @@ int fwbdebug = 0;
FWWindow *mw = NULL;
FWBSettings *st = NULL;
FWBApplication *app = NULL;
UserWorkflow *wfl;
int sig = FWB_SIG;
extern void build_app(int argc, char** argv,
FWBApplication** app,
FWBSettings** st,
UserWorkflow** wfl);
FWBSettings** st);
int main(int argc, char** argv)
{
@@ -56,7 +53,7 @@ int main(int argc, char** argv)
app->setOrganizationName(QLatin1String("NetCitadel"));
app->setApplicationName(QLatin1String("Firewall Builder"));
build_app(argc, argv, &app, &st, &wfl);
build_app(argc, argv, &app, &st);
QTest::qExec(new IPDialogTest());

View File

@@ -31,7 +31,6 @@
#include "FWWindow.h"
#include "FWBSettings.h"
#include "FWBApplication.h"
#include "UserWorkflow.h"
using namespace std;
@@ -41,14 +40,12 @@ int fwbdebug = 0;
FWWindow *mw = NULL;
FWBSettings *st = NULL;
FWBApplication *app = NULL;
UserWorkflow *wfl;
int sig = FWB_SIG;
extern void build_app(int argc, char** argv,
FWBApplication** app,
FWBSettings** st,
UserWorkflow** wfl);
FWBSettings** st);
int main(int argc, char** argv)
{
@@ -56,7 +53,7 @@ int main(int argc, char** argv)
app->setOrganizationName(QLatin1String("NetCitadel"));
app->setApplicationName(QLatin1String("Firewall Builder"));
build_app(argc, argv, &app, &st, &wfl);
build_app(argc, argv, &app, &st);
QTest::qExec(new IPServiceDialogTest());

View File

@@ -31,7 +31,6 @@
#include "FWWindow.h"
#include "FWBSettings.h"
#include "FWBApplication.h"
#include "UserWorkflow.h"
#include <QApplication>
#include <QString>
@@ -44,7 +43,6 @@ int fwbdebug = 0;
FWWindow *mw = NULL;
FWBSettings *st = NULL;
FWBApplication *app = NULL;
UserWorkflow *wfl;
int sig = FWB_SIG;
std::string platform;

View File

@@ -11,7 +11,7 @@ LIBS += $$CPPUNIT_LIBS
SOURCES += main.cpp Inet6AddrMaskTest.cpp
HEADERS += Inet6AddrMaskTest.h
INCLUDEPATH += ../../libfwbuilder/src
INCLUDEPATH += ../../.. ../../libfwbuilder/src
DEPENDPATH += ../../libfwbuilder/src
LIBS += ../../libfwbuilder/src/fwbuilder/libfwbuilder.a
run_tests.commands = echo "Running tests..." && ./${TARGET}

View File

@@ -11,7 +11,7 @@ LIBS += $$CPPUNIT_LIBS
SOURCES += main.cpp InetAddrMaskTest.cpp
HEADERS += InetAddrMaskTest.h
INCLUDEPATH += ../../libfwbuilder/src
INCLUDEPATH += ../../.. ../../libfwbuilder/src
DEPENDPATH += ../../libfwbuilder/src
LIBS += ../../libfwbuilder/src/fwbuilder/libfwbuilder.a
run_tests.commands = echo "Running tests..." && ./${TARGET}

View File

@@ -31,7 +31,6 @@
#include "FWWindow.h"
#include "FWBSettings.h"
#include "FWBApplication.h"
#include "UserWorkflow.h"
using namespace std;
@@ -41,14 +40,12 @@ int fwbdebug = 0;
FWWindow *mw = NULL;
FWBSettings *st = NULL;
FWBApplication *app = NULL;
UserWorkflow *wfl;
int sig = FWB_SIG;
extern void build_app(int argc, char** argv,
FWBApplication** app,
FWBSettings** st,
UserWorkflow** wfl);
FWBSettings** st);
int main(int argc, char** argv)
{
@@ -56,7 +53,7 @@ int main(int argc, char** argv)
app->setOrganizationName(QLatin1String("NetCitadel"));
app->setApplicationName(QLatin1String("Firewall Builder"));
build_app(argc, argv, &app, &st, &wfl);
build_app(argc, argv, &app, &st);
QTest::qExec(new InterfaceDialogTest());

View File

@@ -31,7 +31,6 @@
#include "FWWindow.h"
#include "FWBSettings.h"
#include "FWBApplication.h"
#include "UserWorkflow.h"
using namespace std;
@@ -41,14 +40,12 @@ int fwbdebug = 0;
FWWindow *mw = NULL;
FWBSettings *st = NULL;
FWBApplication *app = NULL;
UserWorkflow *wfl;
int sig = FWB_SIG;
extern void build_app(int argc, char** argv,
FWBApplication** app,
FWBSettings** st,
UserWorkflow** wfl);
FWBSettings** st);
int main(int argc, char** argv)
{
@@ -56,7 +53,7 @@ int main(int argc, char** argv)
app->setOrganizationName(QLatin1String("NetCitadel"));
app->setApplicationName(QLatin1String("Firewall Builder"));
build_app(argc, argv, &app, &st, &wfl);
build_app(argc, argv, &app, &st);
QTest::qExec(new NetworkDialogTest());

View File

@@ -32,7 +32,6 @@
#include "FWWindow.h"
#include "FWBSettings.h"
#include "FWBApplication.h"
#include "UserWorkflow.h"
using namespace std;
@@ -42,14 +41,12 @@ int fwbdebug = 0;
FWWindow *mw = NULL;
FWBSettings *st = NULL;
FWBApplication *app = NULL;
UserWorkflow *wfl;
int sig = FWB_SIG;
extern void build_app(int argc, char** argv,
FWBApplication** app,
FWBSettings** st,
UserWorkflow** wfl);
FWBSettings** st);
int main(int argc, char** argv)
{
@@ -57,7 +54,7 @@ int main(int argc, char** argv)
app->setOrganizationName(QLatin1String("NetCitadel"));
app->setApplicationName(QLatin1String("Firewall Builder"));
build_app(argc, argv, &app, &st, &wfl);
build_app(argc, argv, &app, &st);
QTest::qExec(new ObjectManipulatorTest());

View File

@@ -11,7 +11,7 @@ LIBS += $$CPPUNIT_LIBS
SOURCES += main.cpp ObjectMatcherTest.cpp
HEADERS += ObjectMatcherTest.h
INCLUDEPATH += ../../libfwbuilder/src
INCLUDEPATH += ../../.. ../../libfwbuilder/src
DEPENDPATH += ../../libfwbuilder/src
LIBS += ../../libfwbuilder/src/fwbuilder/libfwbuilder.a
run_tests.commands = echo "Running tests..." && ./${TARGET}

View File

@@ -29,7 +29,6 @@
#include "FWWindow.h"
#include "FWBSettings.h"
#include "FWBApplication.h"
#include "UserWorkflow.h"
#include <QApplication>
#include <QString>
@@ -42,7 +41,6 @@ int fwbdebug = 0;
FWWindow *mw = NULL;
FWBSettings *st = NULL;
FWBApplication *app = NULL;
UserWorkflow *wfl;
int sig = FWB_SIG;
std::string platform;

View File

@@ -29,7 +29,6 @@
#include "FWWindow.h"
#include "FWBSettings.h"
#include "FWBApplication.h"
#include "UserWorkflow.h"
#include <QApplication>
#include <QString>
@@ -42,7 +41,6 @@ int fwbdebug = 0;
FWWindow *mw = NULL;
FWBSettings *st = NULL;
FWBApplication *app = NULL;
UserWorkflow *wfl;
int sig = FWB_SIG;
std::string platform;

View File

@@ -32,7 +32,6 @@
#include "FWWindow.h"
#include "FWBSettings.h"
#include "FWBApplication.h"
#include "UserWorkflow.h"
using namespace std;
@@ -42,14 +41,12 @@ int fwbdebug = 0;
FWWindow *mw = NULL;
FWBSettings *st = NULL;
FWBApplication *app = NULL;
UserWorkflow *wfl;
int sig = FWB_SIG;
extern void build_app(int argc, char** argv,
FWBApplication** app,
FWBSettings** st,
UserWorkflow** wfl);
FWBSettings** st);
int main(int argc, char** argv)
{
@@ -57,7 +54,7 @@ int main(int argc, char** argv)
app->setOrganizationName(QLatin1String("NetCitadel"));
app->setApplicationName(QLatin1String("Firewall Builder"));
build_app(argc, argv, &app, &st, &wfl);
build_app(argc, argv, &app, &st);
QTest::qExec(new RuleSetViewContextMenuTest());

View File

@@ -32,7 +32,6 @@
#include "FWWindow.h"
#include "FWBSettings.h"
#include "FWBApplication.h"
#include "UserWorkflow.h"
using namespace std;
@@ -42,14 +41,12 @@ int fwbdebug = 0;
FWWindow *mw = NULL;
FWBSettings *st = NULL;
FWBApplication *app = NULL;
UserWorkflow *wfl;
int sig = FWB_SIG;
extern void build_app(int argc, char** argv,
FWBApplication** app,
FWBSettings** st,
UserWorkflow** wfl);
FWBSettings** st);
int main(int argc, char** argv)
{
@@ -57,7 +54,7 @@ int main(int argc, char** argv)
app->setOrganizationName(QLatin1String("NetCitadel"));
app->setApplicationName(QLatin1String("Firewall Builder"));
build_app(argc, argv, &app, &st, &wfl);
build_app(argc, argv, &app, &st);
QTest::qExec(new RuleSetViewTest());

View File

@@ -31,7 +31,6 @@
#include "FWWindow.h"
#include "FWBSettings.h"
#include "FWBApplication.h"
#include "UserWorkflow.h"
using namespace std;
@@ -41,14 +40,12 @@ int fwbdebug = 0;
FWWindow *mw = NULL;
FWBSettings *st = NULL;
FWBApplication *app = NULL;
UserWorkflow *wfl;
int sig = FWB_SIG;
extern void build_app(int argc, char** argv,
FWBApplication** app,
FWBSettings** st,
UserWorkflow** wfl);
FWBSettings** st);
int main(int argc, char** argv)
{
@@ -56,7 +53,7 @@ int main(int argc, char** argv)
app->setOrganizationName(QLatin1String("NetCitadel"));
app->setApplicationName(QLatin1String("Firewall Builder"));
build_app(argc, argv, &app, &st, &wfl);
build_app(argc, argv, &app, &st);
QTest::qExec(new TCPServiceDialogTest());

View File

@@ -32,7 +32,6 @@
#include "FWWindow.h"
#include "FWBSettings.h"
#include "FWBApplication.h"
#include "UserWorkflow.h"
using namespace std;
@@ -42,14 +41,12 @@ int fwbdebug = 0;
FWWindow *mw = NULL;
FWBSettings *st = NULL;
FWBApplication *app = NULL;
UserWorkflow *wfl;
int sig = FWB_SIG;
extern void build_app(int argc, char** argv,
FWBApplication** app,
FWBSettings** st,
UserWorkflow** wfl);
FWBSettings** st);
int main(int argc, char** argv)
{
@@ -57,7 +54,7 @@ int main(int argc, char** argv)
app->setOrganizationName(QLatin1String("NetCitadel"));
app->setApplicationName(QLatin1String("Firewall Builder"));
build_app(argc, argv, &app, &st, &wfl);
build_app(argc, argv, &app, &st);
QTest::qExec(new TagServiceDialogTest());

View File

@@ -31,7 +31,6 @@
#include "FWWindow.h"
#include "FWBSettings.h"
#include "FWBApplication.h"
#include "UserWorkflow.h"
using namespace std;
@@ -41,14 +40,12 @@ int fwbdebug = 0;
FWWindow *mw = NULL;
FWBSettings *st = NULL;
FWBApplication *app = NULL;
UserWorkflow *wfl;
int sig = FWB_SIG;
extern void build_app(int argc, char** argv,
FWBApplication** app,
FWBSettings** st,
UserWorkflow** wfl);
FWBSettings** st);
int main(int argc, char** argv)
{
@@ -56,7 +53,7 @@ int main(int argc, char** argv)
app->setOrganizationName(QLatin1String("NetCitadel"));
app->setApplicationName(QLatin1String("Firewall Builder"));
build_app(argc, argv, &app, &st, &wfl);
build_app(argc, argv, &app, &st);
QTest::qExec(new UDPServiceDialogTest());

View File

@@ -31,7 +31,6 @@
#include "FWWindow.h"
#include "FWBSettings.h"
#include "FWBApplication.h"
#include "UserWorkflow.h"
using namespace std;
@@ -41,14 +40,12 @@ int fwbdebug = 0;
FWWindow *mw = NULL;
FWBSettings *st = NULL;
FWBApplication *app = NULL;
UserWorkflow *wfl;
int sig = FWB_SIG;
extern void build_app(int argc, char** argv,
FWBApplication** app,
FWBSettings** st,
UserWorkflow** wfl);
FWBSettings** st);
int main(int argc, char** argv)
{
@@ -56,7 +53,7 @@ int main(int argc, char** argv)
app->setOrganizationName(QLatin1String("NetCitadel"));
app->setApplicationName(QLatin1String("Firewall Builder"));
build_app(argc, argv, &app, &st, &wfl);
build_app(argc, argv, &app, &st);
QTest::qExec(new UserServiceDialogTest());

View File

@@ -73,7 +73,6 @@
#include "RoutingRuleOptionsDialog.h"
#include "platforms.h"
#include "NATRuleOptionsDialog.h"
#include "UserWorkflow.h"
using namespace std;
using namespace libfwbuilder;
@@ -82,7 +81,6 @@ void genericDialogTest::initTestCase()
{
new FWObjectClipboard();
mw = new FWWindow();
wfl = new UserWorkflow();
mw->show();
mw->startupLoad();
mw->resize(1200, 600);

View File

@@ -32,7 +32,6 @@
#include "FWWindow.h"
#include "FWBSettings.h"
#include "FWBApplication.h"
#include "UserWorkflow.h"
using namespace std;
@@ -42,14 +41,12 @@ int fwbdebug = 0;
FWWindow *mw = NULL;
FWBSettings *st = NULL;
FWBApplication *app = NULL;
UserWorkflow *wfl;
int sig = FWB_SIG;
extern void build_app(int argc, char** argv,
FWBApplication** app,
FWBSettings** st,
UserWorkflow** wfl);
FWBSettings** st);
int main(int argc, char** argv)
{
@@ -57,7 +54,7 @@ int main(int argc, char** argv)
app->setOrganizationName(QLatin1String("NetCitadel"));
app->setApplicationName(QLatin1String("Firewall Builder"));
build_app(argc, argv, &app, &st, &wfl);
build_app(argc, argv, &app, &st);
QTest::qExec(new genericDialogTest());

View File

@@ -69,7 +69,6 @@
#include <QCoreApplication>
#include "FWBApplication.h"
#include "UserWorkflow.h"
#include "FWObjectClipboard.h"
#include "StartTipDialog.h"
@@ -82,7 +81,6 @@ void instDialogClusterTest::initTestCase()
{
new FWObjectClipboard();
mw = new FWWindow();
wfl = new UserWorkflow();
mw->show();
mw->startupLoad();

View File

@@ -32,7 +32,6 @@
#include "FWWindow.h"
#include "FWBSettings.h"
#include "FWBApplication.h"
#include "UserWorkflow.h"
using namespace std;
@@ -42,14 +41,12 @@ int fwbdebug = 0;
FWWindow *mw = NULL;
FWBSettings *st = NULL;
FWBApplication *app = NULL;
UserWorkflow *wfl;
int sig = FWB_SIG;
extern void build_app(int argc, char** argv,
FWBApplication** app,
FWBSettings** st,
UserWorkflow** wfl);
FWBSettings** st);
int main(int argc, char** argv)
{
@@ -57,7 +54,7 @@ int main(int argc, char** argv)
app->setOrganizationName(QLatin1String("NetCitadel"));
app->setApplicationName(QLatin1String("Firewall Builder"));
build_app(argc, argv, &app, &st, &wfl);
build_app(argc, argv, &app, &st);
QTest::qExec(new instDialogClusterTest());

View File

@@ -32,7 +32,6 @@
#include "FWWindow.h"
#include "FWBSettings.h"
#include "FWBApplication.h"
#include "UserWorkflow.h"
using namespace std;
@@ -42,14 +41,12 @@ int fwbdebug = 0;
FWWindow *mw = NULL;
FWBSettings *st = NULL;
FWBApplication *app = NULL;
UserWorkflow *wfl;
int sig = FWB_SIG;
extern void build_app(int argc, char** argv,
FWBApplication** app,
FWBSettings** st,
UserWorkflow** wfl);
FWBSettings** st);
int main(int argc, char** argv)
{
@@ -57,7 +54,7 @@ int main(int argc, char** argv)
app->setOrganizationName(QLatin1String("NetCitadel"));
app->setApplicationName(QLatin1String("Firewall Builder"));
build_app(argc, argv, &app, &st, &wfl);
build_app(argc, argv, &app, &st);
QTest::qExec(new instDialogCompileTest());

View File

@@ -32,7 +32,6 @@
#include "FWWindow.h"
#include "FWBSettings.h"
#include "FWBApplication.h"
#include "UserWorkflow.h"
using namespace std;
@@ -42,14 +41,12 @@ int fwbdebug = 0;
FWWindow *mw = NULL;
FWBSettings *st = NULL;
FWBApplication *app = NULL;
UserWorkflow *wfl;
int sig = FWB_SIG;
extern void build_app(int argc, char** argv,
FWBApplication** app,
FWBSettings** st,
UserWorkflow** wfl);
FWBSettings** st);
int main(int argc, char** argv)
{
@@ -57,7 +54,7 @@ int main(int argc, char** argv)
app->setOrganizationName(QLatin1String("NetCitadel"));
app->setApplicationName(QLatin1String("Firewall Builder"));
build_app(argc, argv, &app, &st, &wfl);
build_app(argc, argv, &app, &st);
QTest::qExec(new instDialogInspectTest());

View File

@@ -32,7 +32,6 @@
#include "FWWindow.h"
#include "FWBSettings.h"
#include "FWBApplication.h"
#include "UserWorkflow.h"
using namespace std;
@@ -42,14 +41,12 @@ int fwbdebug = 0;
FWWindow *mw = NULL;
FWBSettings *st = NULL;
FWBApplication *app = NULL;
UserWorkflow *wfl;
int sig = FWB_SIG;
extern void build_app(int argc, char** argv,
FWBApplication** app,
FWBSettings** st,
UserWorkflow** wfl);
FWBSettings** st);
int main(int argc, char** argv)
{
@@ -57,7 +54,7 @@ int main(int argc, char** argv)
app->setOrganizationName(QLatin1String("NetCitadel"));
app->setApplicationName(QLatin1String("Firewall Builder"));
build_app(argc, argv, &app, &st, &wfl);
build_app(argc, argv, &app, &st);
QTest::qExec(new instDialogInstallTest());

View File

@@ -32,7 +32,6 @@
#include "FWWindow.h"
#include "FWBSettings.h"
#include "FWBApplication.h"
#include "UserWorkflow.h"
using namespace std;
@@ -42,14 +41,12 @@ int fwbdebug = 0;
FWWindow *mw = NULL;
FWBSettings *st = NULL;
FWBApplication *app = NULL;
UserWorkflow *wfl;
int sig = FWB_SIG;
extern void build_app(int argc, char** argv,
FWBApplication** app,
FWBSettings** st,
UserWorkflow** wfl);
FWBSettings** st);
int main(int argc, char** argv)
{
@@ -57,7 +54,7 @@ int main(int argc, char** argv)
app->setOrganizationName(QLatin1String("NetCitadel"));
app->setApplicationName(QLatin1String("Firewall Builder"));
build_app(argc, argv, &app, &st, &wfl);
build_app(argc, argv, &app, &st);
QTest::qExec(new instDialogObjectListTest());

View File

@@ -24,7 +24,6 @@
#include "FWWindow.h"
#include "FWBSettings.h"
#include "FWBApplication.h"
#include "UserWorkflow.h"
#include "FWObjectClipboard.h"
#include "common/commoninit.h"
@@ -49,8 +48,7 @@ extern void init_platforms(); // defined in platforms.cpp
void build_app(int argc, char** argv,
FWBApplication** app,
FWBSettings** st,
UserWorkflow** wfl)
FWBSettings** st)
{
Q_INIT_RESOURCE(MainRes);
@@ -65,8 +63,6 @@ void build_app(int argc, char** argv,
(*st)->setIntroDialogEnabled(false);
(*st)->suppressReminderAboutStandardLib(true);
*wfl = new UserWorkflow();
string full_res_path = Constants::getResourcesFilePath();
new Resources(full_res_path);

View File

@@ -32,7 +32,6 @@
#include "FWWindow.h"
#include "FWBSettings.h"
#include "FWBApplication.h"
#include "UserWorkflow.h"
using namespace std;
@@ -42,14 +41,12 @@ int fwbdebug = 0;
FWWindow *mw = NULL;
FWBSettings *st = NULL;
FWBApplication *app = NULL;
UserWorkflow *wfl;
int sig = FWB_SIG;
extern void build_app(int argc, char** argv,
FWBApplication** app,
FWBSettings** st,
UserWorkflow** wfl);
FWBSettings** st);
int main(int argc, char** argv)
{
@@ -57,7 +54,7 @@ int main(int argc, char** argv)
app->setOrganizationName(QLatin1String("NetCitadel"));
app->setApplicationName(QLatin1String("Firewall Builder"));
build_app(argc, argv, &app, &st, &wfl);
build_app(argc, argv, &app, &st);
QTest::qExec(new newClusterDialogTest());

View File

@@ -32,7 +32,6 @@
#include "FWWindow.h"
#include "FWBSettings.h"
#include "FWBApplication.h"
#include "UserWorkflow.h"
using namespace std;
@@ -42,14 +41,12 @@ int fwbdebug = 0;
FWWindow *mw = NULL;
FWBSettings *st = NULL;
FWBApplication *app = NULL;
UserWorkflow *wfl;
int sig = FWB_SIG;
extern void build_app(int argc, char** argv,
FWBApplication** app,
FWBSettings** st,
UserWorkflow** wfl);
FWBSettings** st);
int main(int argc, char** argv)
{
@@ -57,7 +54,7 @@ int main(int argc, char** argv)
app->setOrganizationName(QLatin1String("NetCitadel"));
app->setApplicationName(QLatin1String("Firewall Builder"));
build_app(argc, argv, &app, &st, &wfl);
build_app(argc, argv, &app, &st);
QTest::qExec(new startTipDialogTest());

View File

@@ -9,9 +9,7 @@ build() {
local _d="$1"
shift
(
cd "$_d" &&
([ -f Makefile ] || $QMAKE $QMAKEPARAMS) &&
"$@"
cd "$_d" && $QMAKE $QMAKEPARAMS && "$@"
)
}