Changeset 26081ce in mod_gnutls for test/Makefile.am


Ignore:
Timestamp:
Jul 8, 2015, 3:29:58 PM (5 years ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, upstream
Children:
4038c7a
Parents:
90a31a4
git-author:
Thomas Klute <thomas2.klute@…> (07/08/15 15:03:54)
git-committer:
Thomas Klute <thomas2.klute@…> (07/08/15 15:29:58)
Message:

Test suite: Make TEST_HOST and TEST_IP configurable through ./configure

The default settings in the test suite assume that "localhost" resolves
to the IPv6 loopback address. Depending on the local system
configuration this may be incorrect, so allow the user to pass their own
TEST_HOST and TEST_IP to ./configure, e.g. to use IPv4:

TEST_HOST="localhost" TEST_IP="127.0.0.1" ./configure

Note that changing TEST_HOST requires rebuilding the certificates, just
run "make mostlyclean" before the next test run.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/Makefile.am

    r90a31a4 r26081ce  
    7575# certificate generation. It is ignored for setup.done itself.
    7676server/crl.pem server/softhsm.db setup.done: setup.done
    77         srcdir=$(srcdir) $(MAKE) -f $(srcdir)/TestMakefile $(AM_MAKEFLAGS) $@
     77        TEST_HOST="$(TEST_HOST)" TEST_IP="$(TEST_IP)" srcdir=$(srcdir) \
     78        $(MAKE) -f $(srcdir)/TestMakefile $(AM_MAKEFLAGS) $@
    7879
    7980apache_data = base_apache.conf cgi_module.conf data/* mime.types proxy_mods.conf
     
    8485
    8586AM_TESTS_ENVIRONMENT = export APACHE2=$(APACHE2); \
    86         export AP_LIBEXECDIR=$(AP_LIBEXECDIR);
     87        export AP_LIBEXECDIR=$(AP_LIBEXECDIR); \
     88        export TEST_HOST="$(TEST_HOST)"; \
     89        export TEST_IP="$(TEST_IP)"; \
     90        export BACKEND_HOST="$(TEST_HOST)"; \
     91        export BACKEND_IP="$(TEST_IP)";
Note: See TracChangeset for help on using the changeset viewer.