[libsoup/wip/meson] Compile the unit tests



commit 3bbb3733a62b736a4ac20cc7e2b4b6beb7ee7b0d
Author: Tomas Popela <tpopela redhat com>
Date:   Wed Oct 4 14:42:28 2017 +0200

    Compile the unit tests
    
    Also rename some tests to be consistent with the names.

 tests/{date.c => date-test.c}                     |    0
 tests/{header-parsing.c => header-parsing-test.c} |    0
 tests/meson.build                                 |  156 +++++++++++++++++++++
 tests/{pull-api.c => pull-api-test.c}             |    0
 tests/{uri-parsing.c => uri-parsing-test.c}       |    0
 5 files changed, 156 insertions(+), 0 deletions(-)
---
diff --git a/tests/date.c b/tests/date-test.c
similarity index 100%
rename from tests/date.c
rename to tests/date-test.c
diff --git a/tests/header-parsing.c b/tests/header-parsing-test.c
similarity index 100%
rename from tests/header-parsing.c
rename to tests/header-parsing-test.c
diff --git a/tests/meson.build b/tests/meson.build
index 4025e53..acfcfde 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -1,3 +1,159 @@
+libtest = library('libtest', 'test-utils.c', 'test-utils.h',
+    install : false,
+    c_args : '-DAPACHE_HTTPD=' + cdata.get('APACHE_HTTPD'),
+    dependencies : [glib_dep, libsoup_dep])
+
+auth_test = executable('auth-test', 'auth-test.c',
+    link_with: libtest,
+    dependencies : [glib_dep, libsoup_dep])
+
+cache_test = executable('cache-test', 'cache-test.c',
+    link_with: libtest,
+    dependencies : [glib_dep, libsoup_dep])
+
+chunk_test = executable('chunk-test', 'chunk-test.c',
+    link_with: libtest,
+    dependencies : [glib_dep, libsoup_dep])
+
+chunk_io_test = executable('chunk-io-test', 'chunk-io-test.c',
+    link_with: libtest,
+    dependencies : [glib_dep, libsoup_dep])
+
+coding_test = executable('coding-test', 'coding-test.c',
+    link_with: libtest,
+    dependencies : [glib_dep, libsoup_dep])
+
+connection_test = executable('connection-test', 'connection-test.c',
+    link_with: libtest,
+    dependencies : [glib_dep, libsoup_dep])
+
+context_test = executable('context-test', 'context-test.c',
+    link_with: libtest,
+    dependencies : [glib_dep, libsoup_dep])
+
+continue_test = executable('continue-test', 'continue-test.c',
+    link_with: libtest,
+    dependencies : [glib_dep, libsoup_dep])
+
+cookies_test = executable('cookies-test', 'cookies-test.c',
+    link_with: libtest,
+    dependencies : [glib_dep, libsoup_dep])
+
+date_test = executable('date-test', 'date-test.c',
+    link_with: libtest,
+    dependencies : [glib_dep, libsoup_dep])
+
+forms_test = executable('forms-test', 'forms-test.c',
+    link_with: libtest,
+    dependencies : [glib_dep, libsoup_dep])
+
+header_parsing_test = executable('header-parsing-test', 'header-parsing-test.c',
+    link_with: libtest,
+    dependencies : [glib_dep, libsoup_dep])
+
+misc_test = executable('misc-test', 'misc-test.c',
+    link_with: libtest,
+    dependencies : [glib_dep, libsoup_dep])
+
+multipart_test = executable('multipart-test', 'multipart-test.c',
+    link_with: libtest,
+    dependencies : [glib_dep, libsoup_dep])
+
+no_ssl_test = executable('no-ssl-test', 'no-ssl-test.c',
+    link_with: libtest,
+    dependencies : [glib_dep, libsoup_dep])
+
+ntlm_test = executable('ntlm-test', 'ntlm-test.c',
+    link_with: libtest,
+    dependencies : [glib_dep, libsoup_dep])
+
+proxy_test = executable('proxy-test', 'proxy-test.c',
+    link_with: libtest,
+    dependencies : [glib_dep, libsoup_dep])
+
+pull_api_test = executable('pull-api-test', 'pull-api-test.c',
+    link_with: libtest,
+    dependencies : [glib_dep, libsoup_dep])
+
+range_test = executable('range-test', 'range-test.c',
+    link_with: libtest,
+    dependencies : [glib_dep, libsoup_dep])
+
+redirect_test = executable('redirect-test', 'redirect-test.c',
+    link_with: libtest,
+    dependencies : [glib_dep, libsoup_dep])
+
+requester_test = executable('requester-test', 'requester-test.c',
+    link_with: libtest,
+    dependencies : [glib_dep, libsoup_dep])
+
+resource_test = executable('resource-test', 'resource-test.c',
+    link_with: libtest,
+    dependencies : [glib_dep, libsoup_dep])
+
+session_test = executable('session-test', 'session-test.c',
+    link_with: libtest,
+    dependencies : [glib_dep, libsoup_dep])
+
+server_auth_test = executable('server-auth-test', 'server-auth-test.c',
+    link_with: libtest,
+    dependencies : [glib_dep, libsoup_dep])
+
+server_test = executable('server-test', 'server-test.c',
+    link_with: libtest,
+    dependencies : [glib_dep, libsoup_dep])
+
+sniffing_test = executable('sniffing-test', 'sniffing-test.c',
+    link_with: libtest,
+    dependencies : [glib_dep, libsoup_dep])
+
+socket_test = executable('socket-test', 'socket-test.c',
+    link_with: libtest,
+    dependencies : [glib_dep, libsoup_dep])
+
+ssl_test = executable('ssl-test', 'ssl-test.c',
+    link_with: libtest,
+    dependencies : [glib_dep, libsoup_dep])
+
+streaming_test = executable('streaming-test', 'streaming-test.c',
+    link_with: libtest,
+    dependencies : [glib_dep, libsoup_dep])
+
+timeout_test = executable('timeout-test', 'timeout-test.c',
+    link_with: libtest,
+    dependencies : [glib_dep, libsoup_dep])
+
+tld_test = executable('tld-test', 'tld-test.c',
+    link_with: libtest,
+    dependencies : [glib_dep, libsoup_dep])
+
+uri_parsing_test = executable('uri-parsing-test', 'uri-parsing-test.c',
+    link_with: libtest,
+    dependencies : [glib_dep, libsoup_dep])
+
+websocket_test = executable('websocket-test', 'websocket-test.c',
+    link_with: libtest,
+    dependencies : [glib_dep, libsoup_dep])
+
+xmlrpc_old_server_test = executable('xmlrpc-old-server-test', 'xmlrpc-old-server-test.c',
+    link_with: libtest,
+    dependencies : [glib_dep, libsoup_dep])
+
+xmlrpc_old_test = executable('xmlrpc-old-test', 'xmlrpc-old-test.c',
+    link_with: libtest,
+    dependencies : [glib_dep, libsoup_dep])
+
+xmlrpc_server_test = executable('xmlrpc-server-test', 'xmlrpc-server-test.c',
+    link_with: libtest,
+    dependencies : [glib_dep, libsoup_dep])
+
+xmlrpc_test = executable('xmlrpc-test', 'xmlrpc-test.c',
+    link_with: libtest,
+    dependencies : [glib_dep, libsoup_dep])
+
+xmlrpc_test = executable('ntlm-test-helper', 'ntlm-test-helper.c',
+    dependencies : [glib_dep, libsoup_dep])
+
 configure_file(output : 'httpd.conf',
     input : 'httpd.conf.in',
     configuration : cdata)
diff --git a/tests/pull-api.c b/tests/pull-api-test.c
similarity index 100%
rename from tests/pull-api.c
rename to tests/pull-api-test.c
diff --git a/tests/uri-parsing.c b/tests/uri-parsing-test.c
similarity index 100%
rename from tests/uri-parsing.c
rename to tests/uri-parsing-test.c


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]