Changeset 39bd695 in mod_gnutls for test/Makefile.am


Ignore:
Timestamp:
May 8, 2015, 8:38:29 PM (5 years ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, upstream
Children:
87f1ed2
Parents:
4133f2d
git-author:
Thomas Klute <thomas2.klute@…> (05/08/15 20:25:52)
git-committer:
Thomas Klute <thomas2.klute@…> (05/08/15 20:38:29)
Message:

Test suite: Avoid race conditions during key generation

Test cases trying to create keys and certificates in parallel causes
race conditions. Ensure that all keys and certificates are generated
before tests get to run.

Sadly, TestMakefile? breaks when trying to generate keys and certificates
with parallel make. Until that's fixed, enforce "-j1" for this part.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/Makefile.am

    r4133f2d r39bd695  
    2626        test-23_TLS_reverse_proxy_mismatched_priorities.bash
    2727
     28# Test cases trying to create keys and certificates in parallel causes
     29# race conditions. Ensure that all keys and certificates are generated
     30# before tests get to run.
     31#
     32# NOTE: Once the support files have been generated, test cases can be
     33# run with multiple jobs, but real parallelization would require
     34# dynamic port assignments. At the moment, lock files ensure that only
     35# one Apache instance (possibly plus a proxy back end instance) is
     36# running at any time, so test cases actually have to wait for each
     37# other - just not in any particular order.
     38check_DATA = setup.done
     39
     40# Sadly, TestMakefile breaks when trying to generate keys and
     41# certificates with parallel make. Until that's fixed, enforce "-j1".
     42setup.done:
     43        $(MAKE) -f TestMakefile $(AM_MAKEFLAGS) -j1 $@
     44
    2845clean-local:
    2946        make -f TestMakefile clean
Note: See TracChangeset for help on using the changeset viewer.