Scripts/programs to test FreeBSD ethernet interfaces.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

18 lines
538 B

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