summaryrefslogtreecommitdiffstats
path: root/Tests/QtAutogen/macosFW/test/testMacosFWLib.cpp
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2017-12-06 13:06:24 (GMT)
committerBrad King <brad.king@kitware.com>2017-12-07 14:05:58 (GMT)
commite4ccc68429d6a187f7e09d560a81e3b36cd06328 (patch)
tree2911dfa2fe5448132e545cf5e096fcef91e9d8bc /Tests/QtAutogen/macosFW/test/testMacosFWLib.cpp
parentfcbd02fd6ec56a6a4540e70082e899b45934dab8 (diff)
downloadCMake-e4ccc68429d6a187f7e09d560a81e3b36cd06328.zip
CMake-e4ccc68429d6a187f7e09d560a81e3b36cd06328.tar.gz
CMake-e4ccc68429d6a187f7e09d560a81e3b36cd06328.tar.bz2
Autogen: Tests: Add test for MacOS frameworks
Diffstat (limited to 'Tests/QtAutogen/macosFW/test/testMacosFWLib.cpp')
-rw-r--r--Tests/QtAutogen/macosFW/test/testMacosFWLib.cpp42
1 files changed, 42 insertions, 0 deletions
diff --git a/Tests/QtAutogen/macosFW/test/testMacosFWLib.cpp b/Tests/QtAutogen/macosFW/test/testMacosFWLib.cpp
new file mode 100644
index 0000000..3476d61
--- /dev/null
+++ b/Tests/QtAutogen/macosFW/test/testMacosFWLib.cpp
@@ -0,0 +1,42 @@
+#include <QObject>
+#include <QString>
+
+#include "macos_fw_lib.h"
+#include "testMacosFWLib.h"
+
+class TestMacosFWLib : public QObject
+{
+ Q_OBJECT
+
+private slots:
+ void initTestCase();
+ void cleanupTestCase();
+ void init() {}
+ void cleanup() {}
+
+ void testQtVersion();
+};
+
+void TestMacosFWLib::initTestCase()
+{
+}
+
+void TestMacosFWLib::cleanupTestCase()
+{
+}
+
+void TestMacosFWLib::testQtVersion()
+{
+ MacosFWLib* testLib = new MacosFWLib();
+ QVERIFY(testLib->qtVersionString().contains("5."));
+ testLib->deleteLater();
+}
+
+int main(int argc, char* argv[])
+{
+ QApplication app(argc, argv, false);
+ MacosFWLib testObject;
+ return QTest::qExec(&testObject, argc, argv);
+}
+
+#include "testMacosFWLib.moc"