dropbear/test/Makefile.in
Matt Johnston 2a6dac19b5 Use venv for test_aslr
Otherwise we can't find the psutil dependency
2022-01-30 13:37:20 +08:00

22 lines
552 B
Makefile

srcdir=@srcdir@
SHELL=bash
all: test
test: venv/bin/pytest fakekey
(source ./venv/bin/activate; pytest --hostkey=fakekey --dbclient=../dbclient --dropbear=../dropbear $(srcdir) )
one: venv/bin/pytest fakekey
(source ./venv/bin/activate; 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