view test/Makefile.in @ 1848:84b664071c7d

Upload config.log on failure Change tests to avoid double-negative for skipcheck Skip some actions when running under act
author Matt Johnston <matt@ucc.asn.au>
date Tue, 19 Oct 2021 11:50:12 +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