Restructured signon database and added unit tests
[accounts-sso:signon.git] / tests / signond-tests / signond-tests.pro
1 include( ../../common-project-config.pri )
2 include( $$TOP_SRC_DIR/common-vars.pri )
3
4 CONFIG += qtestlib qdbus
5
6 QT += core \
7     sql \
8     xml \
9     network \
10     dbus
11
12 QT -= gui
13
14 LIBS += -L/usr/lib \
15         -lcreds \
16         -lsignon-qt
17
18 #DEFINES += CAM_UNIT_TESTS_FIXED
19
20 HEADERS += \
21     timeouts.h \
22     $$TOP_SRC_DIR/src/signond/pluginproxy.h \
23     $$TOP_SRC_DIR/tests/pluginproxytest/testpluginproxy.h \
24     backuptest.h \
25     databasetest.h\
26            $$TOP_SRC_DIR/src/signond/credentialsdb.h
27 SOURCES = \
28     signond-tests.cpp \
29     timeouts.cpp \
30     $$TOP_SRC_DIR/tests/pluginproxytest/testpluginproxy.cpp \
31     $$TOP_SRC_DIR/tests/pluginproxytest/include.cpp \
32     backuptest.cpp \
33     databasetest.cpp \
34            $$TOP_SRC_DIR/src/signond/credentialsdb.cpp
35
36 contains(DEFINES, CAM_UNIT_TESTS_FIXED) {
37  HEADERS *=$$TOP_SRC_DIR/tests/credentialsaccessmanagertest/cam-test-server/credentialsaccessmanagertest.h \
38            $$TOP_SRC_DIR/tests/credentialsaccessmanagertest/cam-test-server/dbuspeer.h \
39            $$TOP_SRC_DIR/tests/credentialsaccessmanagertest/defs.h \
40            $$TOP_SRC_DIR/src/signond/credentialsaccessmanager.h \
41            $$TOP_SRC_DIR/src/signond/accesscodehandler.h \
42            $$TOP_SRC_DIR/src/signond/simdbusadaptor.h \
43            $$TOP_SRC_DIR/src/signond/cryptomanager.h \
44            $$TOP_SRC_DIR/src/signond/credentialsdb.h
45
46  SOURCES *= $$TOP_SRC_DIR/tests/credentialsaccessmanagertest/cam-test-server/credentialsaccessmanagertest.cpp \
47             $$TOP_SRC_DIR/tests/credentialsaccessmanagertest/cam-test-server/includes.cpp \
48             $$TOP_SRC_DIR/tests/credentialsaccessmanagertest/cam-test-server/dbuspeer.cpp
49 }
50
51 TARGET = signond-tests
52
53 INCLUDEPATH += . \
54     $$TOP_SRC_DIR/lib/plugins \
55     $$TOP_SRC_DIR/tests/pluginproxytest \
56     $$TOP_SRC_DIR/src/signond \
57     $$TOP_SRC_DIR/tests/credentialsaccessmanagertest/cam-test-server
58
59 DEFINES += SSO_CI_TESTMANAGEMENT
60
61 QMAKE_CXXFLAGS += -fno-exceptions \
62     -fno-rtti
63
64 target.path = /usr/bin
65 scripts.path = /usr/bin
66 scripts.files += signonremoteplugin-test.sh
67
68 testsuite.path  = /usr/share/$$TARGET
69 testsuite.files = tests.xml
70
71 INSTALLS += target \
72             testsuite \
73             scripts