1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

[Benchmarks+Autotests] Fixed building with Qt5 and KWallet

Autotests: No longer move autotests binary to $root/bin directory
Autotests: No longer needed to specify NO_SYSTEM_DATAPATH define
This commit is contained in:
David Rosca 2014-04-13 10:47:04 +02:00
parent 45635f6da8
commit ca160731b9
9 changed files with 9 additions and 23 deletions

View File

@ -8,8 +8,7 @@ if [ -n "$1" ]; then
fi fi
cd ../tests/autotests cd ../tests/autotests
($QMAKE DEFINES+=NO_SYSTEM_DATAPATH && make) || exit 1 ($QMAKE && make) || exit 1
cd ../../bin
./autotests ./autotests
exit $? exit $?

BIN
tests/autotests/autotests Executable file

Binary file not shown.

View File

@ -12,10 +12,10 @@ TARGET = autotests
!unix|mac: LIBS += -L$$PWD/../../bin -lQupZilla !unix|mac: LIBS += -L$$PWD/../../bin -lQupZilla
!mac:unix: LIBS += $$PWD/../../bin/libQupZilla.so !mac:unix: LIBS += $$PWD/../../bin/libQupZilla.so
unix:contains(DEFINES, "NO_SYSTEM_DATAPATH"): QMAKE_LFLAGS+=$${QMAKE_LFLAGS_RPATH}\\$\$ORIGIN QMAKE_LFLAGS+=$${QMAKE_LFLAGS_RPATH}$$PWD/../../bin
# KWallet plugin # KWallet plugin
exists($$PWD/../../bin/plugins/libKWalletPasswords.so) { isEqual(QT_MAJOR_VERSION, 4):exists($$PWD/../../bin/plugins/libKWalletPasswords.so) {
LIBS += $$PWD/../../bin/plugins/libKWalletPasswords.so LIBS += $$PWD/../../bin/plugins/libKWalletPasswords.so
DEFINES += HAVE_KDE_PASSWORDS_PLUGIN DEFINES += HAVE_KDE_PASSWORDS_PLUGIN
} }
@ -27,7 +27,7 @@ exists($$PWD/../../bin/plugins/libGnomeKeyringPasswords.so) {
} }
DESTDIR = $$PWD/../../bin DESTDIR =
OBJECTS_DIR = build OBJECTS_DIR = build
MOC_DIR = build MOC_DIR = build
RCC_DIR = build RCC_DIR = build

View File

@ -0,0 +1 @@
adblockparserule

View File

@ -1,6 +1,6 @@
/* ============================================================ /* ============================================================
* QupZilla - WebKit based browser * QupZilla - WebKit based browser
* Copyright (C) 2013 David Rosca <nowrep@gmail.com> * Copyright (C) 2014 David Rosca <nowrep@gmail.com>
* *
* This program is free software: you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License as published by
@ -33,7 +33,7 @@ void AdBlockParseRule::parseEasyList()
{ {
QBENCHMARK { QBENCHMARK {
AdBlockSubscription* subscription = new AdBlockSubscription("EasyList", this); AdBlockSubscription* subscription = new AdBlockSubscription("EasyList", this);
subscription->setFilePath("easylist.txt"); subscription->setFilePath("../files/easylist.txt");
subscription->loadSubscription(QStringList()); subscription->loadSubscription(QStringList());
} }
} }

View File

@ -10,19 +10,7 @@ isEqual(QT_MAJOR_VERSION, 5) {
!unix|mac: LIBS += -L$$PWD/../../bin -lQupZilla !unix|mac: LIBS += -L$$PWD/../../bin -lQupZilla
!mac:unix: LIBS += $$PWD/../../bin/libQupZilla.so !mac:unix: LIBS += $$PWD/../../bin/libQupZilla.so
unix:contains(DEFINES, "NO_SYSTEM_DATAPATH"): QMAKE_LFLAGS+=$${QMAKE_LFLAGS_RPATH}$$PWD/../../bin QMAKE_LFLAGS+=$${QMAKE_LFLAGS_RPATH}$$PWD/../../bin
# KWallet plugin
exists($$PWD/../../bin/plugins/libKWalletPasswords.so) {
LIBS += $$PWD/../../bin/plugins/libKWalletPasswords.so
DEFINES += HAVE_KDE_PASSWORDS_PLUGIN
}
# GnomeKeyring plugin
exists($$PWD/../../bin/plugins/libGnomeKeyringPasswords.so) {
LIBS += $$PWD/../../bin/plugins/libGnomeKeyringPasswords.so
DEFINES += HAVE_GNOME_PASSWORDS_PLUGIN
}
DESTDIR = DESTDIR =
OBJECTS_DIR = build OBJECTS_DIR = build

View File

@ -1,7 +1,5 @@
TEMPLATE = subdirs TEMPLATE = subdirs
include(benchmarks.pri)
defineTest(addSubdir) { defineTest(addSubdir) {
for(subdir, 1) { for(subdir, 1) {
entries = $$files($$subdir/*) entries = $$files($$subdir/*)
@ -17,4 +15,4 @@ defineTest(addSubdir) {
export (SUBDIRS) export (SUBDIRS)
} }
addSubdir($$PWD) addSubdir($$PWD)