Encrypt communication with plugins
[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 += \
5     qtestlib \
6     qdbus \
7     link_pkgconfig
8
9 QT += core \
10     sql \
11     xml \
12     network \
13     dbus
14
15 QT -= gui
16
17 PKGCONFIG += \
18     libsignoncrypto-qt
19
20 LIBS += -L/usr/lib \
21         -lcreds \
22         -lcrypto \
23         -lsignon-qt
24
25 #DEFINES += CAM_UNIT_TESTS_FIXED
26
27 DEFINES += TESTS_TRACE
28 DEFINES += SIGNON_PLUGIN_TRACE
29
30 HEADERS += \
31     timeouts.h \
32     $$TOP_SRC_DIR/src/signond/pluginproxy.h \
33     $$TOP_SRC_DIR/tests/pluginproxytest/testpluginproxy.h \
34     backuptest.h \
35     databasetest.h \
36     $$TOP_SRC_DIR/src/signond/credentialsdb.h \
37     $${TOP_SRC_DIR}/lib/plugins/signon-plugins-common/SignOn/blobiohandler.h \
38     $${TOP_SRC_DIR}/lib/plugins/signon-plugins-common/SignOn/encrypteddevice.h
39
40 SOURCES = \
41     signond-tests.cpp \
42     timeouts.cpp \
43     $$TOP_SRC_DIR/tests/pluginproxytest/testpluginproxy.cpp \
44     $$TOP_SRC_DIR/tests/pluginproxytest/include.cpp \
45     backuptest.cpp \
46     databasetest.cpp \
47     $${TOP_SRC_DIR}/lib/plugins/signon-plugins-common/SignOn/encrypteddevice.cpp \
48            $$TOP_SRC_DIR/src/signond/credentialsdb.cpp
49
50 contains(DEFINES, CAM_UNIT_TESTS_FIXED) {
51  HEADERS *=$$TOP_SRC_DIR/tests/credentialsaccessmanagertest/cam-test-server/credentialsaccessmanagertest.h \
52            $$TOP_SRC_DIR/tests/credentialsaccessmanagertest/cam-test-server/dbuspeer.h \
53            $$TOP_SRC_DIR/tests/credentialsaccessmanagertest/defs.h \
54            $$TOP_SRC_DIR/src/signond/credentialsaccessmanager.h \
55            $$TOP_SRC_DIR/src/signond/accesscodehandler.h \
56            $$TOP_SRC_DIR/src/signond/simdbusadaptor.h \
57            $$TOP_SRC_DIR/src/signond/cryptomanager.h \
58            $$TOP_SRC_DIR/src/signond/credentialsdb.h
59
60  SOURCES *= $$TOP_SRC_DIR/tests/credentialsaccessmanagertest/cam-test-server/credentialsaccessmanagertest.cpp \
61             $$TOP_SRC_DIR/tests/credentialsaccessmanagertest/cam-test-server/includes.cpp \
62             $$TOP_SRC_DIR/tests/credentialsaccessmanagertest/cam-test-server/dbuspeer.cpp
63 }
64
65 TARGET = signon-tests
66
67 INCLUDEPATH += . \
68     $$TOP_SRC_DIR/lib/plugins \
69     $$TOP_SRC_DIR/tests/pluginproxytest \
70     $$TOP_SRC_DIR/src/signond \
71     $${TOP_SRC_DIR}/lib/plugins/signon-plugins-common \
72     $${TOP_SRC_DIR}/lib/plugins/signon-plugins-common/SignOn \
73     $$TOP_SRC_DIR/tests/credentialsaccessmanagertest/cam-test-server
74
75 DEFINES += SSO_CI_TESTMANAGEMENT
76
77 QMAKE_CXXFLAGS += -fno-exceptions \
78     -fno-rtti
79
80 target.path = /usr/bin
81 scripts.path = /usr/bin
82 scripts.files += signonremoteplugin-test.sh
83
84 testsuite.path  = /usr/share/signond-tests
85 testsuite.files = tests.xml
86
87 INSTALLS += target \
88             testsuite \
89             scripts