diff options
author | Rafael Roquetto <rafael.roquetto@kdab.com> | 2012-08-10 17:21:30 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-09-04 10:30:33 +0200 |
commit | 3d4fc578bd5cc0b6d39d16638aa6f3577eb31f69 (patch) | |
tree | deb4fa0473e37de48a6a299a0f9a6b65aea29f47 /tests/auto/tools/qmake/tst_qmake.cpp | |
parent | 53d0829aa1552dd1c7d5da008ec4b1a4052a7e5a (diff) |
Auto test for 'qmake -project' use case.
Change-Id: Ifb6d64828ba1cb42fd64299438b7eec302112edf
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'tests/auto/tools/qmake/tst_qmake.cpp')
-rw-r--r-- | tests/auto/tools/qmake/tst_qmake.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/auto/tools/qmake/tst_qmake.cpp b/tests/auto/tools/qmake/tst_qmake.cpp index 3d1faf2aac..54032ad750 100644 --- a/tests/auto/tools/qmake/tst_qmake.cpp +++ b/tests/auto/tools/qmake/tst_qmake.cpp @@ -89,6 +89,7 @@ private slots: #endif void includefunction(); void substitutes(); + void project(); private: TestCompiler test_compiler; @@ -516,5 +517,19 @@ void tst_qmake::substitutes() QVERIFY( test_compiler.makeDistClean( buildDir )); } +void tst_qmake::project() +{ + QString workDir = base_path + "/testdata/project"; + + QVERIFY( test_compiler.qmakeProject( workDir, "project" )); + QVERIFY( test_compiler.exists( workDir, "project.pro", Plain, "" )); + QVERIFY( test_compiler.qmake( workDir, "project" )); + QVERIFY( test_compiler.exists( workDir, "Makefile", Plain, "" )); + QVERIFY( test_compiler.make( workDir )); + QVERIFY( test_compiler.exists( workDir, "project", Exe, "" )); + QVERIFY( test_compiler.makeDistClean( workDir )); + QVERIFY( test_compiler.removeProject( workDir, "project" )); +} + QTEST_MAIN(tst_qmake) #include "tst_qmake.moc" |