diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2017-12-06 13:06:24 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-12-07 14:05:58 (GMT) |
commit | e4ccc68429d6a187f7e09d560a81e3b36cd06328 (patch) | |
tree | 2911dfa2fe5448132e545cf5e096fcef91e9d8bc /Tests/QtAutogen/macosFW/test/testMacosFWLib.cpp | |
parent | fcbd02fd6ec56a6a4540e70082e899b45934dab8 (diff) | |
download | CMake-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.cpp | 42 |
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" |