mirror of
https://github.com/sinseman44/PyCNC.git
synced 2026-07-16 08:37:09 +00:00
add integration test
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
language: python
|
language: python
|
||||||
python:
|
python:
|
||||||
|
- "2.7"
|
||||||
- "pypy-5.3.1"
|
- "pypy-5.3.1"
|
||||||
|
install: # nothing
|
||||||
script: ./runtests.sh
|
script: ./runtests.sh
|
||||||
|
|
||||||
|
|||||||
+12
-1
@@ -10,4 +10,15 @@ echo '* example Raspberry Pi tests is tests/rpgpio_test.sh which should be *'
|
|||||||
echo '* run with RPi board with connected to pin GPIO21 LED. LED should *'
|
echo '* run with RPi board with connected to pin GPIO21 LED. LED should *'
|
||||||
echo '* light up on pullup, set, and DMA test events. *'
|
echo '* light up on pullup, set, and DMA test events. *'
|
||||||
echo '**********************************************************************'
|
echo '**********************************************************************'
|
||||||
python -m unittest discover "$@" --pattern="test_*.py"
|
echo '---------------------------Unit tests---------------------------------'
|
||||||
|
pypy -m unittest discover "$@" --pattern="test_*.py"
|
||||||
|
echo '-----------------------Integration tests------------------------------'
|
||||||
|
sudo pip install .
|
||||||
|
res="$(pycnc tests/rects.gcode 2>&1)"
|
||||||
|
res="$res$(pycnc tests/test_parser.gcode 2>&1)"
|
||||||
|
sudo pip uninstall -y pycnc
|
||||||
|
if echo "$res" | grep -q -i error; then
|
||||||
|
echo "$res"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user