Changeset 33af2b7 in mod_gnutls for test/TestMakefile
- Timestamp:
- May 11, 2015, 6:28:20 PM (5 years ago)
- Branches:
- debian/master, debian/stretch-backports, jessie-backports, master, upstream
- Children:
- 31caead
- Parents:
- e24eed6
- git-author:
- Thomas Klute <thomas2.klute@…> (05/11/15 18:12:28)
- git-committer:
- Thomas Klute <thomas2.klute@…> (05/11/15 18:28:20)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/TestMakefile
re24eed6 r33af2b7 5 5 # run these tests to ensure that mod_gnutls can handle a range of 6 6 # simple configuration choices. 7 8 export srcdir ?= . 7 9 8 10 export TEST_HOST ?= localhost … … 18 20 19 21 all: setup.done 20 TEST_LOCK=$(TEST_LOCK) ./runtests22 TEST_LOCK=$(TEST_LOCK) $(srcdir)/runtests 21 23 22 24 t-%: setup.done 23 TEST_LOCK=$(TEST_LOCK) ./runtests $@25 TEST_LOCK=$(TEST_LOCK) $(srcdir)/runtests $@ 24 26 25 27 … … 32 34 all_tokens := $(foreach id,$(identities),$(foreach token,$(tokens),$(id)/$(token))) 33 35 34 %.template: %.template.in36 %.template: $(srcdir)/%.template.in 35 37 sed s/__HOSTNAME__/$(TEST_HOST)/ < $< > $@ 36 38 37 server.uid: server.uid.in39 %.uid: $(srcdir)/%.uid.in 38 40 sed s/__HOSTNAME__/$(TEST_HOST)/ < $< > $@ 39 41 … … 67 69 authority/x509.pem: authority.template authority/secret.key 68 70 certtool --generate-self-signed --load-privkey authority/secret.key --template authority.template > $@ 69 rogueca/x509.pem: rogueca.template rogueca/secret.key70 certtool --generate-self-signed --load-privkey rogueca/secret.key --template rogueca.template > $@71 rogueca/x509.pem: $(srcdir)/rogueca.template rogueca/secret.key 72 certtool --generate-self-signed --load-privkey rogueca/secret.key --template $(srcdir)/rogueca.template > $@ 71 73 72 74 %/cert-request: %.template %/secret.key … … 77 79 78 80 %/softhsm.db: %/x509.pem %/secret.key 79 SOFTHSM_CONF="$(*)-softhsm.conf" ./softhsm.bash init $(dir $@)secret.key $(dir $@)x509.pem 81 SOFTHSM_CONF="$(srcdir)/$(*)-softhsm.conf" $(srcdir)/softhsm.bash init $(dir $@)secret.key $(dir $@)x509.pem 82 83 # Generate CRL revoking a certain certificate. Currently used to 84 # revoke the server certificate and check if setting the CRL as 85 # GnuTLSProxyCRLFile causes the connection to the back end server to 86 # fail. 87 %/crl.pem: %/x509.pem ${srcdir}/%-crl.template 88 certtool --generate-crl \ 89 --load-ca-privkey authority/secret.key \ 90 --load-ca-certificate authority/x509.pem \ 91 --load-certificate $< \ 92 --template "${srcdir}/$(*)-crl.template" \ 93 > $@ 80 94 81 95 msva.gnupghome/trustdb.gpg: authority/minimal.pgp client/cert.pgp … … 87 101 88 102 89 setup.done: $(all_tokens) msva.gnupghome/trustdb.gpg 103 setup.done: $(all_tokens) msva.gnupghome/trustdb.gpg client.uid 90 104 mkdir -p logs cache outputs 91 105 touch setup.done … … 94 108 clean: 95 109 rm -rf server client authority logs cache outputs setup.done \ 96 server.template msva.gnupghome \110 server.template imposter.template msva.gnupghome \ 97 111 */*.pgp */*.gpg */*.gpg~ */*.pem */*.key authority.template \ 98 client.template server.uid *.lock tests/*/*.pem112 client.template client.uid server.uid *.lock tests/*/*.pem 99 113 rmdir imposter rogueca || true 100 114
Note: See TracChangeset
for help on using the changeset viewer.