summaryrefslogtreecommitdiffstats
path: root/tests/auto/qmake/tst_qmake.cpp
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2011-05-13 04:14:30 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2011-05-13 04:14:30 (GMT)
commit8592bcc80b7ec245b485fa54f8bd41c4484e93e0 (patch)
tree3cda496d06c89d337e37583df6d9af8546c30124 /tests/auto/qmake/tst_qmake.cpp
parent85b089dec584fcc51ad7703ea015ea724c132ed4 (diff)
parent2caea6081fc46217636f0ab70d09891efd2d2864 (diff)
downloadQt-8592bcc80b7ec245b485fa54f8bd41c4484e93e0.zip
Qt-8592bcc80b7ec245b485fa54f8bd41c4484e93e0.tar.gz
Qt-8592bcc80b7ec245b485fa54f8bd41c4484e93e0.tar.bz2
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qt-qa-team
* 'master' of git://scm.dev.nokia.troll.no/qt/qt-qa-team: Fixed license header. Ensure that recursive QMAKE_EXTRA_TARGETS use the correct makefile
Diffstat (limited to 'tests/auto/qmake/tst_qmake.cpp')
-rw-r--r--tests/auto/qmake/tst_qmake.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/auto/qmake/tst_qmake.cpp b/tests/auto/qmake/tst_qmake.cpp
index 81a51e1..afd28e1 100644
--- a/tests/auto/qmake/tst_qmake.cpp
+++ b/tests/auto/qmake/tst_qmake.cpp
@@ -69,6 +69,7 @@ private slots:
void simple_lib();
void simple_dll();
void subdirs();
+ void subdir_via_pro_file_extra_target();
void functions();
void operators();
void variables();
@@ -234,6 +235,19 @@ void tst_qmake::subdirs()
QVERIFY( test_compiler.removeMakefile( workDir ) );
}
+void tst_qmake::subdir_via_pro_file_extra_target()
+{
+ QString workDir = base_path + "/testdata/subdir_via_pro_file_extra_target";
+
+ QDir D;
+ D.remove( workDir + "/Makefile");
+ D.remove( workDir + "/Makefile.subdir");
+ D.remove( workDir + "/simple/Makefile");
+ D.remove( workDir + "/simple/Makefile.subdir");
+ QVERIFY( test_compiler.qmake( workDir, "subdir_via_pro_file_extra_target" ));
+ QVERIFY( test_compiler.make( workDir, "extratarget" ));
+}
+
void tst_qmake::functions()
{
QString workDir = base_path + "/testdata/functions";