Changeset e5546be in mod_gnutls for test/Makefile.am


Ignore:
Timestamp:
Jul 1, 2019, 4:16:01 PM (9 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
master
Children:
c825c3a
Parents:
f205c5f
Message:

Test suite: Move directory for client identity into authority directory

Eventually I want all identity directories be subdirectories of their
CAs, so we can build longer certificate chains from a directory
hierarchy. The client/ directory just happens to be the first to move.

Thanks to Krista Karppinen for discussing glob patterns with me!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/Makefile.am

    rf205c5f re5546be  
    5656# Identities in the miniature CA, server, and client environment for
    5757# the test suite
    58 shared_identities = authority client
     58shared_identities = authority authority/client
    5959pgp_identities = $(shared_identities)
    6060x509_only_identities = server rogueca imposter rogueclient
     
    9797MOSTLYCLEANFILES = cache/* logs/* outputs/* server/crl.pem
    9898
    99 cert_templates = authority/template.in client/template.in \
     99cert_templates = authority/template.in authority/client/template.in \
    100100        imposter/template.in ocsp-responder/template rogueca/template \
    101101        rogueclient/template.in server/template.in
    102 generated_templates = authority/template client/template \
     102generated_templates = authority/template authority/client/template \
    103103        imposter/template rogueclient/template server/template
    104104
     
    113113# (e.g. host names) without wasting time on new keys (which would
    114114# happen after "clean").
    115 MOSTLYCLEANFILES += */x509.pem $(generated_templates) */uid
     115MOSTLYCLEANFILES += $(x509_certs) $(generated_templates) $(identities:=/uid)
    116116
    117117
     
    120120# one day, so regenerating them is both fast and frequently
    121121# necessary.
    122 MOSTLYCLEANFILES += */*.pgp */*.pgp.raw */*.gpg */*.gpg~ */gpg.conf \
    123         authority/lock */*.kbx */*.kbx~ */S.gpg-agent */private-keys-v1.d/* \
    124         authority/tofu.db
     122pgp_patterns = /*.pgp /*.pgp.raw /*.gpg /*.gpg~ /gpg.conf \
     123        /*.kbx /*.kbx~ /S.gpg-agent /private-keys-v1.d/*
     124MOSTLYCLEANFILES += $(foreach pat,$(pgp_patterns),$(pgp_identities:=$(pat))) \
     125        authority/lock authority/tofu.db
    125126# GnuPG random pool, no need to regenerate on every build
    126127CLEANFILES += authority/random_seed
     
    145146if USE_MSVA
    146147msva_home = msva.gnupghome
    147 check_DATA += $(msva_home)/trustdb.gpg client/uid
    148 MOSTLYCLEANFILES += $(msva_home)/trustdb.gpg
    149 $(msva_home)/trustdb.gpg: authority/minimal.pgp client/cert.pgp
     148check_DATA += $(msva_home)/trustdb.gpg authority/client/uid
     149MOSTLYCLEANFILES += $(foreach pat,$(pgp_patterns),$(msva_home)$(pat))
     150$(msva_home)/trustdb.gpg: authority/minimal.pgp authority/client/cert.pgp
    150151        mkdir -p -m 0700 $(dir $@)
    151152        GNUPGHOME=$(dir $@) gpg --import < $<
    152153        printf "%s:6:\n" "$$(GNUPGHOME=authority/ gpg --with-colons --list-secret-keys --fingerprint | grep ^fpr: | cut -f 10 -d :)" | GNUPGHOME=$(dir $@) gpg --import-ownertrust
    153         GNUPGHOME=$(dir $@) gpg --import < client/cert.pgp
     154        GNUPGHOME=$(dir $@) gpg --import < authority/client/cert.pgp
    154155        printf "keyserver does-not-exist.example\n" > $(msva_home)/gpg.conf
    155156endif
     
    160161MOSTLYCLEANFILES += authority/ocsp_index.txt authority/ocsp_index.txt.attr
    161162authority/ocsp_index.txt: $(x509_tokens) gen_ocsp_index authority/ocsp_index.txt.attr
    162         ./gen_ocsp_index server/x509.pem client/x509.pem > $@
     163        ./gen_ocsp_index server/x509.pem authority/client/x509.pem > $@
    163164
    164165authority/ocsp_index.txt.attr: authority/secret.key
Note: See TracChangeset for help on using the changeset viewer.