mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-24 15:14:00 -06:00
klippy: Add a build import test tool
Add a test case to verify that every optional module successfully loads on both Python2 and Python3. This is intended to catch syntax and module imports that are not compatible between Python versions. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
b743a64685
commit
41d42a07bf
2 changed files with 27 additions and 0 deletions
|
@ -64,6 +64,14 @@ done
|
|||
# Verify klippy host software
|
||||
######################################################################
|
||||
|
||||
start_test klippy "Test klippy import (Python3)"
|
||||
$PYTHON klippy/klippy.py --import-test
|
||||
finish_test klippy "Test klippy import (Python3)"
|
||||
|
||||
start_test klippy "Test klippy import (Python2)"
|
||||
$PYTHON2 klippy/klippy.py --import-test
|
||||
finish_test klippy "Test klippy import (Python2)"
|
||||
|
||||
start_test klippy "Test invoke klippy (Python3)"
|
||||
$PYTHON scripts/test_klippy.py -d ${DICTDIR} test/klippy/*.test
|
||||
finish_test klippy "Test invoke klippy (Python3)"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue