tests: add vpp test dirs to PYTHONPATH 65/31665/6
authorDave Wallace <dwallacelf@gmail.com>
Wed, 17 Mar 2021 02:12:07 +0000 (22:12 -0400)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Wed, 24 Mar 2021 20:50:59 +0000 (20:50 +0000)
commitfd243741e09d579743148432c136c06d92b36647
treee2d6bdd385e6abe1aa918b79d5b543d676dea203
parentda282b5d087d6acca38aedc37f55ac2d749e874f
tests: add vpp test dirs to PYTHONPATH

- Required to relocate test infra modules
  to be co-located in feature test directory.
- Remove/regenerate build-root/build-test/src/
  soft links when running make test to allow
  re-running 'make test' after moving source files.
- Suppress annoying 'ls' error message when gathering
  test source files caused by 'c' test application
  directory being named 'test'.
- Use PYTHONPYCACHEPREFIX to generate all
  compiled source under build-root/build-test.
  This only works for python 3.8 or greater, but
  existing 'make test-wipe' target cleans up
  in-situ __pycache__ directories for older
  python versions.

Type: fix

Change-Id: If3c3ff0c58fb26a17395babc34783e06b1dd84e7
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
test/Makefile