summaryrefslogtreecommitdiffstats
path: root/tests/auto/tools/qmake/tst_qmake.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/tools/qmake/tst_qmake.cpp')
-rw-r--r--tests/auto/tools/qmake/tst_qmake.cpp15
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"