| 427 | } |
| 428 | |
| 429 | void TestQMakeFile::testInclude() |
| 430 | { |
| 431 | QTemporaryDir tempDir; |
| 432 | QVERIFY(tempDir.isValid()); |
| 433 | QTemporaryFile includeFile(tempDir.path() + "/qmake-include"); |
| 434 | QVERIFY(includeFile.open()); |
| 435 | includeFile.write("DEFINES += SOME_INCLUDE_DEF\n" |
| 436 | "SOURCES += includedFile.cpp\n" |
| 437 | "INCLUDEPATH += $$PWD\n" |
| 438 | "QT += webkit\n"); |
| 439 | includeFile.close(); |
| 440 | |
| 441 | QTemporaryFile baseFile; |
| 442 | baseFile.open(); |
| 443 | baseFile.write("TEMPLATE = app\n" |
| 444 | "TARGET = includeTest\n" |
| 445 | "QT += network\n" |
| 446 | "DEFINES += SOME_DEF\n" |
| 447 | "SOURCES += file.cpp\n" |
| 448 | /* |
| 449 | "CONFIG += console" |
| 450 | "# Comment to enable Debug Messages" |
| 451 | "DEFINES += QT_NO_DEBUG_OUTPUT" |
| 452 | "DESTDIR = ../bin" |
| 453 | "RESOURCES = phantomjs.qrc" |
| 454 | "HEADERS += csconverter.h \\" |
| 455 | " phantom.h \\" |
| 456 | " webpage.h \\" |
| 457 | " consts.h \\" |
| 458 | " utils.h \\" |
| 459 | " networkaccessmanager.h \\" |
| 460 | " cookiejar.h \\" |
| 461 | " filesystem.h \\" |
| 462 | " terminal.h \\" |
| 463 | " encoding.h \\" |
| 464 | " config.h \\" |
| 465 | " mimesniffer.cpp \\" |
| 466 | " third_party/mongoose/mongoose.h \\" |
| 467 | " webserver.h" |
| 468 | "SOURCES += phantom.cpp \\" |
| 469 | " webpage.cpp \\" |
| 470 | " main.cpp \\" |
| 471 | " csconverter.cpp \\" |
| 472 | " utils.cpp \\" |
| 473 | " networkaccessmanager.cpp \\" |
| 474 | " cookiejar.cpp \\" |
| 475 | " filesystem.cpp \\" |
| 476 | " terminal.cpp \\" |
| 477 | " encoding.cpp \\" |
| 478 | " config.cpp \\" |
| 479 | " mimesniffer.cpp \\" |
| 480 | " third_party/mongoose/mongoose.c \\" |
| 481 | " webserver.cpp" |
| 482 | "" |
| 483 | "OTHER_FILES += usage.txt \\" |
| 484 | " bootstrap.js \\" |
| 485 | " configurator.js \\" |
| 486 | " modules/fs.js \\" |
nothing calls this directly
no test coverage detected