~ubuntu-branches/ubuntu/feisty/mailcrypt/feisty

« back to all changes in this revision

Viewing changes to tests/remailer/Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Davide G. M. Salvetti
  • Date: 2004-02-28 12:11:35 UTC
  • Revision ID: james.westby@ubuntu.com-20040228121135-m0b6y3bqbvhtcdot
Tags: upstream-3.5.8
ImportĀ upstreamĀ versionĀ 3.5.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
EMACS=@EMACS@
 
2
GNUPG=gpg
 
3
 
 
4
GPG_KEYS = remailer-keys/pubring.gpg
 
5
 
 
6
all: check
 
7
 
 
8
$(GPG_KEYS): rings.txt
 
9
        mkdir remailer-keys
 
10
        gpg --homedir remailer-keys --allow-secret-key-import --fast-import rings.txt
 
11
#       ./fix-trust.py full-rings
 
12
        rm -f remailer-keys/pubring.gpg~
 
13
 
 
14
rings.txt:
 
15
        @echo "rings.txt must be manually created"
 
16
        @exit 1
 
17
 
 
18
# check to make sure the necessary python module is available first. A
 
19
# missing module will cause an error deep inside the test loop, and stderr
 
20
# isn't communicated upwards very well.
 
21
have-py-gnupg.stamp:
 
22
        python -c 'import GnuPGInterface'
 
23
        touch $@
 
24
 
 
25
check: $(GPG_KEYS) have-py-gnupg.stamp
 
26
        $(EMACS) -q --no-site-file -batch -l test-remailer.el -f run-all-tests
 
27
 
 
28
onetest: $(GPG_KEYS) have-py-gnupg.stamp
 
29
        $(EMACS) -q --no-site-file -batch -l test-remailer.el -f run-one-test
 
30
 
 
31
clean:
 
32
        rm -rf remailer-keys
 
33
 
 
34
pack:
 
35
        gpg --homedir remailer-keys -a --export-all >rings.txt
 
36
        gpg --homedir remailer-keys -a --export-secret-keys >>rings.txt