Travis: Try to reactivate the gui/test tests

This commit is contained in:
Daniel Marjamäki 2019-04-19 11:57:52 +02:00
parent bb00435736
commit 91c000c09d
6 changed files with 37 additions and 44 deletions

View File

@ -237,13 +237,13 @@ script:
- make -s -j2
- cd ../
# Build gui/test
# - cd gui/test
# - qmake
# - make
# - filelist/test-filelist
# - projectfile/test-projectfile
# - xmlreportv2/test-xmlreportv2
# - cd ../..
- cd gui/test
- qmake
- make
- filelist/test-filelist
- projectfile/test-projectfile
- xmlreportv2/test-xmlreportv2
- cd ../..
# Build triage
- cd ./tools/triage
- git clean -dfx .

View File

@ -1,28 +1,7 @@
QT += testlib
INCLUDEPATH += $${PWD}/..
LIBS += -L$$PWD/../../externals
INCLUDEPATH += $${PWD}/../../externals
include($${PWD}/../../lib/lib.pri)
# GUI
SOURCES += $${PWD}/../erroritem.cpp \
$${PWD}/../filelist.cpp \
$${PWD}/../projectfile.cpp \
$${PWD}/../report.cpp \
$${PWD}/../translationhandler.cpp \
$${PWD}/../xmlreport.cpp \
$${PWD}/../xmlreportv2.cpp
HEADERS += $${PWD}/../erroritem.h \
$${PWD}/../filelist.h \
$${PWD}/../projectfile.h \
$${PWD}/../report.h \
$${PWD}/../translationhandler.h \
$${PWD}/../xmlreport.h \
$${PWD}/../xmlreportv2.h
INCLUDEPATH += $${PWD}/.. \
$${PWD}/../../lib
contains(QMAKE_CC, gcc) {
QMAKE_CXXFLAGS += -std=c++11

View File

@ -1,16 +1,22 @@
TEMPLATE = app
TARGET = test-filelist
DEPENDPATH += .
INCLUDEPATH += .
INCLUDEPATH += . ../../../externals/simplecpp
OBJECTS_DIR = ../build
MOC_DIR = ../build
QT += testlib
include(../common.pri)
DEFINES += SRCDIR=\\\"$$PWD\\\"
# tests
SOURCES += testfilelist.cpp
SOURCES += testfilelist.cpp \
../../filelist.cpp \
../../../lib/pathmatch.cpp \
../../../lib/path.cpp \
../../../externals/simplecpp/simplecpp.cpp
HEADERS += testfilelist.h
HEADERS += testfilelist.h \
../../filelist.h \
../../../lib/pathmatch.h \
../../../lib/path.h \
../../../externals/simplecpp/simplecpp.h

View File

@ -7,9 +7,9 @@ MOC_DIR = ../build
include(../common.pri)
DEFINES += SRCDIR=\\\"$$PWD\\\"
# tests
SOURCES += testprojectfile.cpp
SOURCES += testprojectfile.cpp \
../../projectfile.cpp
HEADERS += testprojectfile.h
HEADERS += testprojectfile.h \
../../projectfile.h

View File

@ -3,8 +3,7 @@
CONFIG += ordered
TEMPLATE = subdirs
SUBDIRS = benchmark \
SUBDIRS = \
filelist \
projectfile \
translationhandler \
xmlreportv2

View File

@ -1,15 +1,24 @@
TEMPLATE = app
TARGET = test-xmlreportv2
DEPENDPATH += .
INCLUDEPATH += .
INCLUDEPATH += . ../../../externals/simplecpp ../../../externals/tinyxml
OBJECTS_DIR = ../build
MOC_DIR = ../build
include(../common.pri)
include(../../../lib/lib.pri)
DEFINES += SRCDIR=\\\"$$PWD\\\"
# tests
SOURCES += testxmlreportv2.cpp
SOURCES += testxmlreportv2.cpp \
../../erroritem.cpp \
../../report.cpp \
../../xmlreport.cpp \
../../xmlreportv2.cpp
HEADERS += testxmlreportv2.h
HEADERS += testxmlreportv2.h \
../../erroritem.h \
../../report.h \
../../xmlreport.cpp \
../../xmlreportv2.h