Changeset 4fb510d in mod_gnutls for test/Makefile.am


Ignore:
Timestamp:
Mar 5, 2017, 11:55:51 AM (3 years ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
debian/master, debian/stretch-backports, master, upstream
Children:
339a49d
Parents:
5f3222b
Message:

Test suite: Add generic function to wait for a command to succeed

The command is retried with a configurable wait time until it
succeeds, or a timeout expires. This is intended to wait for a service
to become ready, e.g. the OCSP responder or MSVA service used in
tests.

The MSVA and OCSP responder availability tests are modified to use the
new function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/Makefile.am

    r5f3222b r4fb510d  
    209209endif
    210210# maximum time to wait for MSVA startup (milliseconds)
    211 TEST_MSVA_MAX_WAIT ?= 10000
     211TEST_SERVICE_MAX_WAIT ?= 10000
    212212# wait loop time for MSVA startup (milliseconds)
    213 TEST_MSVA_WAIT ?= 400
     213TEST_SERVICE_WAIT ?= 400
    214214
    215215AM_TESTS_ENVIRONMENT = export APACHE2=@APACHE2@; \
     
    219219        export TEST_PORT="$(TEST_PORT)"; \
    220220        export MSVA_PORT="$(MSVA_PORT)"; \
    221         export TEST_MSVA_MAX_WAIT="$(TEST_MSVA_MAX_WAIT)"; \
    222         export TEST_MSVA_WAIT="$(TEST_MSVA_WAIT)"; \
     221        export TEST_SERVICE_MAX_WAIT="$(TEST_SERVICE_MAX_WAIT)"; \
     222        export TEST_SERVICE_WAIT="$(TEST_SERVICE_WAIT)"; \
    223223        export TEST_QUERY_TIMEOUT="@TEST_QUERY_TIMEOUT@"; \
    224224        export BACKEND_HOST="@TEST_HOST@"; \
Note: See TracChangeset for help on using the changeset viewer.