~cyphermox/ubuntu/utopic/libsoup2.4/autopkgtest

« back to all changes in this revision

Viewing changes to tests/Makefile.am

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2014-05-12 12:28:40 UTC
  • mfrom: (10.3.28 utopic-proposed)
  • Revision ID: package-import@ubuntu.com-20140512122840-48y5krquj9i3ru79
Tags: 2.46.0-2ubuntu1
* Resynchronize on Debian, remaining change
  - Use dh-autoreconf to update libtool.m4 for new ports.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
include $(top_srcdir)/glib-tap.mk
 
2
 
1
3
AM_CPPFLAGS =           \
2
4
        -I$(top_srcdir) \
3
 
        -DSRCDIR=\""$(abs_srcdir)"\" \
4
 
        -DBUILDDIR=\""$(builddir)"\" \
5
5
        $(GLIB_CFLAGS)
6
6
 
7
7
LIBS =                  \
8
8
        $(top_builddir)/libsoup/libsoup-2.4.la \
9
9
        $(GLIB_LIBS)
10
10
 
11
 
TESTS =                         \
 
11
test_programs =                 \
12
12
        auth-test               \
13
13
        cache-test              \
14
14
        chunk-test              \
44
44
        xmlrpc-server-test      \
45
45
        xmlrpc-test
46
46
 
47
 
noinst_PROGRAMS =               \
 
47
test_extra_programs =           \
48
48
        ntlm-test-helper        \
49
49
        $(TESTS)
50
50
 
51
 
noinst_DATA = soup-tests.gresource
 
51
test_data =                     \
 
52
        index.txt               \
 
53
        soup-tests.gresource    \
 
54
        test-cert.pem           \
 
55
        test-key.pem            \
 
56
        xmlrpc-server.php
52
57
 
53
 
noinst_LTLIBRARIES = libtest.la
 
58
noinst_LTLIBRARIES += libtest.la
54
59
 
55
60
libtest_la_SOURCES =    \
56
61
        test-utils.c    \
74
79
            -e 's,[@]APACHE_SSL_MODULE_DIR@,$(APACHE_SSL_MODULE_DIR),' \
75
80
            $< > $@ || rm -f $@
76
81
 
77
 
BUILT_SOURCES = httpd.conf
 
82
BUILT_SOURCES += httpd.conf
 
83
test_data +=                    \
 
84
        htdigest                \
 
85
        htpasswd                \
 
86
        httpd.conf
78
87
endif
79
88
 
80
 
soup-tests.gresource: soup-tests.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/soup-tests.gresource.xml)
81
 
        $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir)  $<
82
 
 
83
 
RESOURCES =                     \
84
 
        resources/atom.xml      \
85
 
        resources/home.gif      \
86
 
        resources/html_binary.html \
87
 
        resources/mbox          \
88
 
        resources/mbox.gz       \
89
 
        resources/mbox.raw      \
90
 
        resources/mbox.zlib     \
91
 
        resources/ps_binary.ps  \
92
 
        resources/rss20.xml     \
93
 
        resources/test.html     \
94
 
        resources/text_binary.txt
95
 
 
96
 
EXTRA_DIST =                     \
 
89
RESOURCES = $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/soup-tests.gresource.xml)
 
90
 
 
91
soup-tests.gresource: soup-tests.gresource.xml $(RESOURCES)
 
92
        $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) $<
 
93
 
 
94
EXTRA_DIST +=                    \
97
95
        htdigest                 \
98
96
        htpasswd                 \
99
97
        httpd.conf.22.in         \
106
104
        xmlrpc-server.php        \
107
105
        $(RESOURCES)
108
106
 
109
 
DISTCLEANFILES = soup-tests.gresource httpd.conf
 
107
DISTCLEANFILES += soup-tests.gresource httpd.conf
110
108
 
111
 
TESTS_ENVIRONMENT = \
112
 
        SOUP_TESTS_IN_MAKE_CHECK=1
 
109
TESTS_ENVIRONMENT += SOUP_TESTS_IN_MAKE_CHECK=1
113
110
 
114
111
check: start-httpd
115
112
 
116
113
check-local: check-TESTS
117
114
        @$(MAKE) kill-httpd
118
 
if MISSING_REGRESSION_TEST_PACKAGES
119
 
        @echo ""
120
 
        @echo "NOTE: some tests were not run due to missing packages:" $(MISSING_REGRESSION_TEST_PACKAGES)
121
 
        @echo ""
122
 
endif
123
115
 
124
116
.PHONY: start-httpd kill-httpd
125
117
 
126
118
start-httpd:
127
 
if HAVE_APACHE
128
 
        @$(APACHE_HTTPD) -d `pwd` -f httpd.conf -k start;
 
119
if HAVE_APACHE_2_2
 
120
        @$(APACHE_HTTPD) -d $(abs_srcdir) -c "PidFile `pwd`/httpd.pid" -f `pwd`/httpd.conf -k start;
 
121
endif
 
122
if HAVE_APACHE_2_4
 
123
        @$(APACHE_HTTPD) -d $(abs_srcdir) -c "DefaultRuntimeDir `pwd`" -c "PidFile `pwd`/httpd.pid" -f `pwd`/httpd.conf -k start;
129
124
endif
130
125
 
131
126
kill-httpd:
132
 
if HAVE_APACHE
133
 
        @if [ -f httpd.pid ]; then \
134
 
                $(APACHE_HTTPD) -d `pwd` -f httpd.conf -k stop; \
 
127
if HAVE_APACHE_2_2
 
128
        @if [ -f httpd.pid ]; then \
 
129
                $(APACHE_HTTPD) -d $(abs_srcdir) -c "PidFile `pwd`/httpd.pid" -f `pwd`/httpd.conf -k stop; \
 
130
        fi
 
131
endif
 
132
if HAVE_APACHE_2_4
 
133
        @if [ -f httpd.pid ]; then \
 
134
                $(APACHE_HTTPD) -d $(abs_srcdir) -c "DefaultRuntimeDir `pwd`" -c "PidFile `pwd`/httpd.pid" -f `pwd`/httpd.conf -k stop; \
135
135
        fi
136
136
endif