view test/Makefile.in @ 1838:60cd5cdb165c

Update .hgignore and .gitignore with tests
author Matt Johnston <matt@codeconstruct.com.au>
date Mon, 18 Oct 2021 14:26:59 +0800
parents df7bfd2f7d45
children b550845e500b
line wrap: on
line source

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