From 27ffa8198f19eb57120f30826e70792d666e864b Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Wed, 11 Dec 2013 19:55:50 +0100 Subject: tests: use TAP, and install the 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). --- tests/forms-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/forms-test.c') diff --git a/tests/forms-test.c b/tests/forms-test.c index 8fd0de4a..d8db4b00 100644 --- a/tests/forms-test.c +++ b/tests/forms-test.c @@ -131,7 +131,7 @@ do_md5_test_curl (const char *uri, const char *file, const char *md5) g_free (file_arg); } -#define MD5_TEST_FILE SRCDIR "/index.txt" +#define MD5_TEST_FILE (g_test_get_filename (G_TEST_DIST, "index.txt", NULL)) #define MD5_TEST_FILE_BASENAME "index.txt" #define MD5_TEST_FILE_MIME_TYPE "text/plain" -- cgit v1.2.1