summaryrefslogtreecommitdiff
path: root/tests/session-test.c
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2013-12-11 19:55:50 +0100
committerDan Winship <danw@gnome.org>2013-12-11 19:55:50 +0100
commit27ffa8198f19eb57120f30826e70792d666e864b (patch)
treeaa8f3ae4649ae839bf4732b9d9386ef900f6a515 /tests/session-test.c
parent1ef5769bf20fb3def1410928729e37c617d8d43e (diff)
downloadlibsoup-installed-tests.tar.gz
tests: use TAP, and install the testsinstalled-tests
Import glib-tap.mk to run the tests in TAP mode, and to provide rules to install the tests. This required some restructuring of httpd.conf-related stuff in order to come up with a configuration that would work for all three cases (srcdir==buildir, srcdir!=builddir, and installed).
Diffstat (limited to 'tests/session-test.c')
-rw-r--r--tests/session-test.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/session-test.c b/tests/session-test.c
index a6ce2c45..21d97a85 100644
--- a/tests/session-test.c
+++ b/tests/session-test.c
@@ -333,7 +333,13 @@ do_property_tests (void)
* so we can only do this test if we have a real TLS backend.
*/
if (tls_available) {
- tlsdb = g_tls_file_database_new (SRCDIR "/test-cert.pem", NULL);
+ GError *error = NULL;
+
+ tlsdb = g_tls_file_database_new (g_test_get_filename (G_TEST_DIST,
+ "test-cert.pem",
+ NULL), &error);
+ g_assert_no_error (error);
+
session = g_object_new (SOUP_TYPE_SESSION,
SOUP_SESSION_TLS_DATABASE, tlsdb,
NULL);