2021-10-18 06:24:32 +00:00
|
|
|
srcdir=@srcdir@
|
|
|
|
|
2022-01-30 05:37:20 +00:00
|
|
|
SHELL=bash
|
|
|
|
|
2021-10-18 06:24:32 +00:00
|
|
|
all: test
|
|
|
|
|
|
|
|
test: venv/bin/pytest fakekey
|
2022-01-30 05:37:20 +00:00
|
|
|
(source ./venv/bin/activate; pytest --hostkey=fakekey --dbclient=../dbclient --dropbear=../dropbear $(srcdir) )
|
2021-10-18 06:24:32 +00:00
|
|
|
|
|
|
|
one: venv/bin/pytest fakekey
|
2022-01-30 05:37:20 +00:00
|
|
|
(source ./venv/bin/activate; pytest --hostkey=fakekey --dbclient=../dbclient --dropbear=../dropbear $(srcdir) -k exit)
|
2021-10-18 06:24:32 +00:00
|
|
|
|
|
|
|
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
|