Skip to content

Commit 91c000c

Browse files
committed
Travis: Try to reactivate the gui/test tests
1 parent bb00435 commit 91c000c

6 files changed

Lines changed: 37 additions & 44 deletions

File tree

‎.travis.yml‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -237,13 +237,13 @@ script:
237237
- make -s -j2
238238
- cd ../
239239
# Build gui/test
240-
# - cd gui/test
241-
# - qmake
242-
# - make
243-
# - filelist/test-filelist
244-
# - projectfile/test-projectfile
245-
# - xmlreportv2/test-xmlreportv2
246-
# - cd ../..
240+
- cd gui/test
241+
- qmake
242+
- make
243+
- filelist/test-filelist
244+
- projectfile/test-projectfile
245+
- xmlreportv2/test-xmlreportv2
246+
- cd ../..
247247
# Build triage
248248
- cd ./tools/triage
249249
- git clean -dfx .

‎gui/test/common.pri‎

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,7 @@
11
QT += testlib
22

3-
INCLUDEPATH += $${PWD}/..
4-
5-
LIBS += -L$$PWD/../../externals
6-
INCLUDEPATH += $${PWD}/../../externals
7-
8-
include($${PWD}/../../lib/lib.pri)
9-
10-
# GUI
11-
SOURCES += $${PWD}/../erroritem.cpp \
12-
$${PWD}/../filelist.cpp \
13-
$${PWD}/../projectfile.cpp \
14-
$${PWD}/../report.cpp \
15-
$${PWD}/../translationhandler.cpp \
16-
$${PWD}/../xmlreport.cpp \
17-
$${PWD}/../xmlreportv2.cpp
18-
19-
HEADERS += $${PWD}/../erroritem.h \
20-
$${PWD}/../filelist.h \
21-
$${PWD}/../projectfile.h \
22-
$${PWD}/../report.h \
23-
$${PWD}/../translationhandler.h \
24-
$${PWD}/../xmlreport.h \
25-
$${PWD}/../xmlreportv2.h
3+
INCLUDEPATH += $${PWD}/.. \
4+
$${PWD}/../../lib
265

276
contains(QMAKE_CC, gcc) {
287
QMAKE_CXXFLAGS += -std=c++11

‎gui/test/filelist/filelist.pro‎

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
11
TEMPLATE = app
22
TARGET = test-filelist
33
DEPENDPATH += .
4-
INCLUDEPATH += .
4+
INCLUDEPATH += . ../../../externals/simplecpp
55
OBJECTS_DIR = ../build
66
MOC_DIR = ../build
77
QT += testlib
88

99
include(../common.pri)
1010

11-
DEFINES += SRCDIR=\\\"$$PWD\\\"
12-
1311
# tests
14-
SOURCES += testfilelist.cpp
12+
SOURCES += testfilelist.cpp \
13+
../../filelist.cpp \
14+
../../../lib/pathmatch.cpp \
15+
../../../lib/path.cpp \
16+
../../../externals/simplecpp/simplecpp.cpp
1517

16-
HEADERS += testfilelist.h
18+
HEADERS += testfilelist.h \
19+
../../filelist.h \
20+
../../../lib/pathmatch.h \
21+
../../../lib/path.h \
22+
../../../externals/simplecpp/simplecpp.h

‎gui/test/projectfile/projectfile.pro‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ MOC_DIR = ../build
77

88
include(../common.pri)
99

10-
DEFINES += SRCDIR=\\\"$$PWD\\\"
11-
1210
# tests
13-
SOURCES += testprojectfile.cpp
11+
SOURCES += testprojectfile.cpp \
12+
../../projectfile.cpp
1413

15-
HEADERS += testprojectfile.h
14+
HEADERS += testprojectfile.h \
15+
../../projectfile.h

‎gui/test/test.pro‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
CONFIG += ordered
44
TEMPLATE = subdirs
55

6-
SUBDIRS = benchmark \
6+
SUBDIRS = \
77
filelist \
88
projectfile \
9-
translationhandler \
109
xmlreportv2
Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
11
TEMPLATE = app
22
TARGET = test-xmlreportv2
33
DEPENDPATH += .
4-
INCLUDEPATH += .
4+
INCLUDEPATH += . ../../../externals/simplecpp ../../../externals/tinyxml
55
OBJECTS_DIR = ../build
66
MOC_DIR = ../build
77

88
include(../common.pri)
9+
include(../../../lib/lib.pri)
910

1011
DEFINES += SRCDIR=\\\"$$PWD\\\"
1112

1213
# tests
13-
SOURCES += testxmlreportv2.cpp
14+
SOURCES += testxmlreportv2.cpp \
15+
../../erroritem.cpp \
16+
../../report.cpp \
17+
../../xmlreport.cpp \
18+
../../xmlreportv2.cpp
1419

15-
HEADERS += testxmlreportv2.h
20+
HEADERS += testxmlreportv2.h \
21+
../../erroritem.h \
22+
../../report.h \
23+
../../xmlreport.cpp \
24+
../../xmlreportv2.h

0 commit comments

Comments
 (0)