MODULES=testeth VIRTUALENV?=python3.8 -m virtualenv test: (ls kvm.py $(MODULES).py | entr sh -c 'python -m coverage run -m unittest -f $(MODULES) && coverage report --omit=p/\* -m -i') env: ($(VIRTUALENV) p && . ./p/bin/activate && pip install -r requirements.txt) sockio.py: ioctlgen ./ioctlgen > $@ || rm -- $@ ioctlgen: ioctlgen.awk Makefile awk -f ioctlgen.awk < /usr/include/sys/sockio.h| cc -x c -o ioctlgen - testioctlgen: ls ioctlgen.awk Makefile | entr sh -c 'clear; make sockio.py 2>&1 | head -n 20 && cat sockio.py'