diff options
author | Anne Jan Brouwer <brouwer@annejan.com> | 2016-12-13 09:46:43 +0100 |
---|---|---|
committer | Anne Jan Brouwer <brouwer@annejan.com> | 2016-12-13 09:46:43 +0100 |
commit | 15a29cdce0e5da587e58da82e9c8a8b43f15ea59 (patch) | |
tree | d2ec79be54f279cf95d124b6f65d674b7a8f4cc1 /tests | |
parent | a5716caaa2be383bc35542774ecf1fcba8e4f1c5 (diff) |
My first working QtPass test
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/util/tst_util.cpp | 6 | ||||
-rw-r--r-- | tests/auto/util/util.pro | 12 | ||||
-rw-r--r-- | tests/tests.pri | 2 |
3 files changed, 15 insertions, 5 deletions
diff --git a/tests/auto/util/tst_util.cpp b/tests/auto/util/tst_util.cpp index 9788bddb..76d84405 100644 --- a/tests/auto/util/tst_util.cpp +++ b/tests/auto/util/tst_util.cpp @@ -1,5 +1,6 @@ #include "../../../src/util.h" -#include <QtTest/QtTest> +#include <QCoreApplication> +#include <QtTest> class tst_util : public QObject { Q_OBJECT @@ -31,7 +32,8 @@ void tst_util::initTestCase() {} void tst_util::cleanupTestCase() {} void tst_util::normalizeFolderPath() { - // QCOMPARE(Util::normalizeFolderPath("test"), "test/"); + QCOMPARE(Util::normalizeFolderPath("test"), QString("test/")); + QCOMPARE(Util::normalizeFolderPath("test/"), QString("test/")); } QTEST_MAIN(tst_util) diff --git a/tests/auto/util/util.pro b/tests/auto/util/util.pro index d9f4ef02..d5a395e9 100644 --- a/tests/auto/util/util.pro +++ b/tests/auto/util/util.pro @@ -1,3 +1,13 @@ !include(../auto.pri) { error("Couldn't find the auto.pri file!") } -SOURCES += tst_util.cpp +SOURCES += tst_util.cpp \ + util.cpp \ + settingsconstants.cpp \ + qtpasssettings.cpp + +HEADERS += qtpasssettings.h \ + settingsconstants.h \ + util.h + +VPATH += ../../../src +INCLUDEPATH += ../../../src diff --git a/tests/tests.pri b/tests/tests.pri index 248c55e8..951bc957 100644 --- a/tests/tests.pri +++ b/tests/tests.pri @@ -6,5 +6,3 @@ QT += testlib widgets target.path = $$[QT_INSTALL_TESTS]/qtpass/$$TARGET INSTALLS += target -VPATH += ../src -INCLUDEPATH += ../src |