Redefine commands for running unittests in the Makefile.
parent
5c49b5826c
commit
0f9a7f5faf
30
Makefile
30
Makefile
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue