Mercurial > dropbear
diff test/Makefile.in @ 1837:df7bfd2f7d45
Add "make test" target to run pytest
This will create a virtualenv if required.
There is a bit of churn here reverting to autoconf 2.59 in generated
config.h.in and configure
author | Matt Johnston <matt@codeconstruct.com.au> |
---|---|
date | Mon, 18 Oct 2021 14:24:32 +0800 |
parents | |
children | b550845e500b |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/Makefile.in Mon Oct 18 14:24:32 2021 +0800 @@ -0,0 +1,19 @@ +srcdir=@srcdir@ + +all: test + +test: venv/bin/pytest fakekey + ./venv/bin/pytest --hostkey=fakekey --dbclient=../dbclient --dropbear=../dropbear $(srcdir) + +one: venv/bin/pytest fakekey + ./venv/bin/pytest --hostkey=fakekey --dbclient=../dbclient --dropbear=../dropbear $(srcdir) -k exit + +fakekey: + ../dropbearkey -t ecdsa -f $@ + +venv/bin/pytest: $(srcdir)/requirements.txt + python3 -m venv init venv + ./venv/bin/pip install --upgrade pip + ./venv/bin/pip install -r $(srcdir)/requirements.txt + +.PHONY: test