comparison 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
comparison
equal deleted inserted replaced
1836:06c7ddbb9dd6 1837:df7bfd2f7d45
1 srcdir=@srcdir@
2
3 all: test
4
5 test: venv/bin/pytest fakekey
6 ./venv/bin/pytest --hostkey=fakekey --dbclient=../dbclient --dropbear=../dropbear $(srcdir)
7
8 one: venv/bin/pytest fakekey
9 ./venv/bin/pytest --hostkey=fakekey --dbclient=../dbclient --dropbear=../dropbear $(srcdir) -k exit
10
11 fakekey:
12 ../dropbearkey -t ecdsa -f $@
13
14 venv/bin/pytest: $(srcdir)/requirements.txt
15 python3 -m venv init venv
16 ./venv/bin/pip install --upgrade pip
17 ./venv/bin/pip install -r $(srcdir)/requirements.txt
18
19 .PHONY: test