# Generated automatically from Makefile.in by configure.

EMACS=emacs
GNUPG=gpg

# test cases and a packed test keyring are included in the distribution
# tarball

check: check-gpg check-remailer

GPG_KEYS = gpg-keys/full-rings/pubring.gpg gpg-keys/exported/pubring.gpg

check-gpg: gpg-testcases/E.e1r $(GPG_KEYS)
	$(EMACS) -q --no-site-file -batch -l test-gpg.el -f run-all-tests

onetest: gpg-testcases/E.e1r $(GPG_KEYS)
	$(EMACS) -q --no-site-file -batch -l test-gpg.el -f run-one-test

$(GPG_KEYS): 
	$(MAKE) -C gpg-keys unpack
	touch $@

# When building from source, this script is used to make the testcases.
# It puts test case files in gpg-testcases/* .
gpg-testcases: $(GPG_KEYS) make_gpg_testcases.py
	./make_gpg_testcases.py --outdir=gpg-testcases --gpg=$(GNUPG)

matrix-testcases: rings
	mkdir matrix-test-cases
	for gpg in $(ALL_GNUPGS); do \
	 mkdir matrix-decrypt-cases/$(gpg); \
	 perl make-testcases.pl --outdir=matrix-decrypt-cases/$(gpg) --gpg=$(gpg);\
	done

check-remailer:
	$(MAKE) -C remailer check

clean:
	rm -rf gpg-testcases
