core: Ensure gpg.conf for tests is recreated if necessary

* tests/gpg/gpg.conf.in: New.
* tests/gpg/Makefile.am (gpg.conf): Copy gpg.conf.in instead of using
echo to fill gpg.conf.
--

This change ensures that gpg.conf is updated whenever new options are
added for some tests.
This commit is contained in:
Ingo Klöcker 2021-07-08 12:18:45 +02:00
parent 6a79e90ded
commit a5662a801f
2 changed files with 7 additions and 5 deletions

View File

@ -101,11 +101,8 @@ pubring-stamp: $(srcdir)/pubdemo.asc gpg-sample.stamp
--import $(srcdir)/secdemo.asc
echo x > ./pubring-stamp
gpg.conf:
# This is required for t-sig-notations.
echo no-force-v3-sigs > ./gpg.conf
# This is required for t-edit-sign.
echo allow-weak-key-signatures >> ./gpg.conf
gpg.conf: $(srcdir)/gpg.conf.in
cp $(srcdir)/gpg.conf.in gpg.conf
gpg-agent.conf:
# This is required for gpg2, which does not support command fd for the

5
tests/gpg/gpg.conf.in Normal file
View File

@ -0,0 +1,5 @@
# This is required for t-sig-notations.
no-force-v3-sigs
# This is required for t-edit-sign.
allow-weak-key-signatures