Hello. ( I use KUbuntu 16.04 and Qt Creator 3.6.1 based on Qt 5.6.0)
I've been trying to run tests. My tests exists in digikam-software-compilation/core/tests/database folder
I go to the above folder in terminal and run "qmake ; make" command. A database.pro file is created.
######################################################################
# Automatically generated by qmake (2.01a) Tue Jun 14 14:57:30 2016
######################################################################
CONFIG+=qtestlib
TEMPLATE = app
TARGET =
DEPENDPATH += .
INCLUDEPATH += /home/swati/digikam-software-compilation/core/libs/database/coredb/
# Input
HEADERS += databasefieldstest.h databasetagstest.h
SOURCES += databasefieldstest.cpp databasetagstest.cpp testdatabase.cpp
######################################################################
# Automatically generated by qmake (2.01a) Tue Jun 14 14:57:30 2016
######################################################################
CONFIG+=qtestlib
TEMPLATE = app
TARGET =
DEPENDPATH += .
INCLUDEPATH += /home/swati/digikam-software-compilation/core/libs/database/coredb/
# Input
HEADERS += databasefieldstest.h databasetagstest.h
SOURCES += databasefieldstest.cpp databasetagstest.cpp testdatabase.cpp
To copy to clipboard, switch view to plain text mode
Now, there was only one file ( #include "coredbfields.h") in databasefieldstest.cpp and for that I've already added the path in INCLUDEPATH above.
If I run "qmake ; make" again, I get error for the files included in the include file i.e "coredbfields.h"
I tried to include that file too, i again gave error for the next included file.... This way I'm getting recursive errors.
Please tell me how to fix this?
I want to implement unit tests.
Bookmarks