1if !OS_WIN32 2mockup_tests = \ 3 test-atom \ 4 test-factory \ 5 test-gdrive \ 6 test-onedrive \ 7 test-sharepoint \ 8 test-ws 9endif 10 11check_PROGRAMS = \ 12 test-json \ 13 test-utils \ 14 ${mockup_tests} 15 16check_LIBRARIES = \ 17 libtest.a 18 19libtest_a_SOURCES = \ 20 test-helpers.cxx \ 21 test-helpers.hxx \ 22 test-main.cxx 23 24if !OS_WIN32 25libtest_a_SOURCES += \ 26 test-mockup-helpers.cxx \ 27 test-mockup-helpers.hxx 28endif 29 30libtest_a_CPPFLAGS = \ 31 -I$(top_srcdir)/inc \ 32 -I$(top_srcdir)/src/libcmis \ 33 -I$(top_srcdir)/qa/mockup \ 34 $(XML2_CFLAGS) \ 35 $(CURL_CFLAGS) \ 36 $(BOOST_CPPFLAGS) 37 38test_utils_SOURCES = \ 39 test-commons.cxx \ 40 test-decoder.cxx \ 41 test-soap.cxx \ 42 test-xmlutils.cxx 43 44test_utils_CPPFLAGS = \ 45 -I$(top_srcdir)/inc \ 46 -I$(top_srcdir)/src/libcmis \ 47 $(XML2_CFLAGS) \ 48 $(CURL_CFLAGS) \ 49 $(BOOST_CPPFLAGS) 50 51test_utils_LDADD = \ 52 libtest.a \ 53 $(top_builddir)/src/libcmis/libcmis.la \ 54 $(XML2_LIBS) \ 55 $(CURL_LIBS) \ 56 $(CPPUNIT_LIBS) \ 57 $(BOOST_DATE_TIME_LIBS) 58 59test_atom_SOURCES = \ 60 test-atom.cxx 61 62test_atom_CPPFLAGS = \ 63 -I$(top_srcdir)/inc \ 64 -I$(top_srcdir)/src/libcmis \ 65 -I$(top_srcdir)/qa/mockup \ 66 $(XML2_CFLAGS) \ 67 $(BOOST_CPPFLAGS) \ 68 -DDATA_DIR=\"$(top_srcdir)/qa/libcmis/data\" 69 70test_atom_LDADD = \ 71 libtest.a \ 72 $(top_builddir)/qa/mockup/libcmis-mockup.la \ 73 $(XML2_LIBS) \ 74 $(CPPUNIT_LIBS) \ 75 $(BOOST_DATE_TIME_LIBS) 76 77test_gdrive_SOURCES = \ 78 test-gdrive.cxx 79 80test_gdrive_CPPFLAGS = \ 81 -I$(top_srcdir)/inc \ 82 -I$(top_srcdir)/src/libcmis \ 83 -I$(top_srcdir)/qa/mockup \ 84 $(XML2_CFLAGS) \ 85 $(BOOST_CPPFLAGS) \ 86 -DDATA_DIR=\"$(top_srcdir)/qa/libcmis/data\" 87 88test_gdrive_LDADD = \ 89 libtest.a \ 90 $(top_builddir)/qa/mockup/libcmis-mockup.la \ 91 $(XML2_LIBS) \ 92 $(CPPUNIT_LIBS) \ 93 $(BOOST_DATE_TIME_LIBS) 94 95test_onedrive_SOURCES = \ 96 test-onedrive.cxx 97 98test_onedrive_CPPFLAGS = \ 99 -I$(top_srcdir)/inc \ 100 -I$(top_srcdir)/src/libcmis \ 101 -I$(top_srcdir)/qa/mockup \ 102 $(XML2_CFLAGS) \ 103 $(BOOST_CPPFLAGS) \ 104 -DDATA_DIR=\"$(top_srcdir)/qa/libcmis/data\" 105 106test_onedrive_LDADD = \ 107 libtest.a \ 108 $(top_builddir)/qa/mockup/libcmis-mockup.la \ 109 $(XML2_LIBS) \ 110 $(CPPUNIT_LIBS) \ 111 $(BOOST_DATE_TIME_LIBS) 112 113test_sharepoint_SOURCES = \ 114 test-sharepoint.cxx 115 116test_sharepoint_CPPFLAGS = \ 117 -I$(top_srcdir)/inc \ 118 -I$(top_srcdir)/src/libcmis \ 119 -I$(top_srcdir)/qa/mockup \ 120 $(XML2_CFLAGS) \ 121 $(BOOST_CPPFLAGS) \ 122 -DDATA_DIR=\"$(top_srcdir)/qa/libcmis/data\" 123 124test_sharepoint_LDADD = \ 125 libtest.a \ 126 $(top_builddir)/qa/mockup/libcmis-mockup.la \ 127 $(XML2_LIBS) \ 128 $(CPPUNIT_LIBS) \ 129 $(BOOST_DATE_TIME_LIBS) 130 131 132test_ws_SOURCES = \ 133 test-ws.cxx 134 135test_ws_CPPFLAGS = \ 136 -I$(top_srcdir)/inc \ 137 -I$(top_srcdir)/src/libcmis \ 138 -I$(top_srcdir)/qa/mockup \ 139 $(XML2_CFLAGS) \ 140 $(BOOST_CPPFLAGS) \ 141 -DDATA_DIR=\"$(top_srcdir)/qa/libcmis/data\" 142 143test_ws_LDADD = \ 144 libtest.a \ 145 $(top_builddir)/qa/mockup/libcmis-mockup.la \ 146 $(XML2_LIBS) \ 147 $(CPPUNIT_LIBS) \ 148 $(BOOST_DATE_TIME_LIBS) 149 150test_json_SOURCES = \ 151 test-jsonutils.cxx 152 153test_json_CPPFLAGS = \ 154 -I$(top_srcdir)/inc \ 155 -I$(top_srcdir)/src/libcmis \ 156 $(XML2_CFLAGS) \ 157 $(BOOST_CPPFLAGS) \ 158 -DDATA_DIR=\"$(top_srcdir)/qa/libcmis/data\" 159 160test_json_LDADD = \ 161 libtest.a \ 162 $(top_builddir)/src/libcmis/libcmis.la \ 163 $(XML2_LIBS) \ 164 $(CPPUNIT_LIBS) \ 165 $(CURL_LIBS) \ 166 $(BOOST_DATE_TIME_LIBS) 167 168 169test_factory_SOURCES = \ 170 test-factory.cxx 171 172test_factory_CPPFLAGS = \ 173 -I$(top_srcdir)/inc \ 174 -I$(top_srcdir)/src/libcmis \ 175 -I$(top_srcdir)/qa/mockup \ 176 $(XML2_CFLAGS) \ 177 $(BOOST_CPPFLAGS) \ 178 -DDATA_DIR=\"$(top_srcdir)/qa/libcmis/data\" 179 180test_factory_LDADD = \ 181 libtest.a \ 182 $(top_builddir)/qa/mockup/libcmis-mockup.la \ 183 $(XML2_LIBS) \ 184 $(CPPUNIT_LIBS) \ 185 $(BOOST_DATE_TIME_LIBS) 186 187TESTS = test-utils test-json ${mockup_tests} 188