Redefine commands for running unittests in the Makefile.

testing/mmn/mktime_takes_localtime_not_gmtime
Isis Lovecruft 2013-06-03 11:28:35 +00:00
parent 5c49b5826c
commit 0f9a7f5faf
No known key found for this signature in database
GPG Key ID: A3ADB67A2CDB8B35
1 changed files with 19 additions and 11 deletions

View File

@ -1,3 +1,8 @@
SHELL=/bin/sh
TESTDIR=./gnupg/test
TESTHANDLE=$(TESTDIR)/test_gnupg.py
FILES=$(SHELL find ./gnupg/ -name "*.py" -printf "%p,")
.PHONY=all .PHONY=all
all: uninstall install test all: uninstall install test
@ -27,19 +32,22 @@ cleanup-build:
mkdir buildnot mkdir buildnot
rm -rf build* rm -rf build*
test: cleanup-src cleanup-tests test-before: cleanup-src cleanup-tests
which gpg which gpg && gpg --version
gpg --version which gpg2 && gpg2 --version
which gpg2
gpg2 --version
which gpg-agent which gpg-agent
which pinentry which pinentry
which python which python && python --version
python --version which pip && pip --version && pip list
which pip
pip --version test: test-before
pip list python $(TESTHANDLE) basic encodings parsers keyrings listkeys genkey \
python tests/test_gnupg.py parsers basic encodings genkey sign listkeys crypt keyrings import sign crypt
touch gnupg/test/placeholder.log
mv gnupg/test/*.log gnupg/test/logs/
rm gnupg/test/logs/placeholder.log
touch gnupg/test/random_seed_is_sekritly_pi
rm gnupg/test/random_seed*
install: install:
python setup.py install --record installed-files.txt python setup.py install --record installed-files.txt