Changeset 89f863f in mod_gnutls for test/test_ca.mk
- Timestamp:
- Oct 19, 2015, 9:07:40 PM (5 years ago)
- Branches:
- debian/master, debian/stretch-backports, jessie-backports, upstream
- Children:
- 02c8e54, 24c6c16
- Parents:
- 4addf74 (diff), 71cac80 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
test/test_ca.mk
r4addf74 r89f863f 1 1 #!/usr/bin/make -f 2 # Authors: 3 # Daniel Kahn Gillmor <dkg@fifthhorseman.net> 4 # Thomas Klute <thomas2.klute@uni-dortmund.de> 2 5 3 # Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net> 4 5 # run these tests to ensure that mod_gnutls can handle a range of 6 # simple configuration choices. 7 8 export srcdir ?= . 9 # If the Apache binary is not set, try to find apache2 in default PATH 10 # (should only happen when the test script is run manually) 11 export APACHE2 ?= apache2 12 13 export TEST_HOST ?= localhost 14 export TEST_IP ?= ::1 15 # chosen at random: 16 export TEST_PORT ?= 9932 17 export MSVA_PORT ?= 9933 18 19 export TEST_GAP ?= 0.4 20 export TEST_MSVA_MAX_WAIT ?= 10 21 export TEST_QUERY_DELAY ?= 30 22 export TEST_LOCK_WAIT ?= 30 23 24 TEST_LOCK := ./test.lock 25 26 all: setup.done 27 TEST_LOCK=$(TEST_LOCK) $(srcdir)/runtests 28 29 t-%: setup.done 30 TEST_LOCK=$(TEST_LOCK) $(srcdir)/runtests $@ 31 32 33 34 35 36 ### for setting up a little miniature CA + server + client environment: 37 identities := server authority client imposter rogueca 38 tokens := x509.pem secring.gpg secret.key cert.pgp secret.pgp 39 all_tokens := $(foreach id,$(identities),$(foreach token,$(tokens),$(id)/$(token))) 6 # General rules to set up a miniature CA & server & client environment 7 # for the test suite 40 8 41 9 %.template: $(srcdir)/%.template.in … … 97 65 --template "${srcdir}/$(*)-crl.template" \ 98 66 > $@ 99 100 msva.gnupghome/trustdb.gpg: authority/minimal.pgp client/cert.pgp101 mkdir -p -m 0700 $(dir $@)102 GNUPGHOME=$(dir $@) gpg --import < $<103 printf "%s:6:\n" "$$(GNUPGHOME=authority gpg --with-colons --list-secret-keys --fingerprint | grep ^fpr: | cut -f 10 -d :)" | GNUPGHOME=$(dir $@) gpg --import-ownertrust104 GNUPGHOME=$(dir $@) gpg --import < client/cert.pgp105 printf "keyserver does-not-exist.example\n" > msva.gnupghome/gpg.conf106 107 108 setup.done: $(all_tokens) msva.gnupghome/trustdb.gpg client.uid109 mkdir -p logs cache outputs110 touch setup.done111 112 113 clean:114 rm -rf server client authority logs cache outputs setup.done \115 server.template imposter.template msva.gnupghome \116 */*.pgp */*.gpg */*.gpg~ */*.pem */*.key authority.template \117 client.template client.uid server.uid *.lock tests/*/*.pem118 rmdir imposter rogueca || true119 120 .PHONY: all clean
Note: See TracChangeset
for help on using the changeset viewer.