mirror of
https://github.com/sinseman44/PyCNC.git
synced 2026-07-16 08:37:09 +00:00
update tests
This commit is contained in:
+3
-1
@@ -1,7 +1,9 @@
|
|||||||
language: python
|
language: python
|
||||||
python:
|
python:
|
||||||
- "2.7"
|
- "2.7"
|
||||||
|
- "3.5"
|
||||||
- "pypy-5.3.1"
|
- "pypy-5.3.1"
|
||||||
install: # nothing
|
install:
|
||||||
|
- pip install .
|
||||||
script: ./runtests.sh
|
script: ./runtests.sh
|
||||||
|
|
||||||
|
|||||||
+1
-3
@@ -11,12 +11,10 @@ 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 '**********************************************************************'
|
||||||
echo '---------------------------Unit tests---------------------------------'
|
echo '---------------------------Unit tests---------------------------------'
|
||||||
pypy -m unittest discover "$@" --pattern="test_*.py"
|
python -m unittest discover "$@" --pattern="test_*.py"
|
||||||
echo '-----------------------Integration tests------------------------------'
|
echo '-----------------------Integration tests------------------------------'
|
||||||
sudo pip install .
|
|
||||||
res="$(pycnc tests/rects.gcode 2>&1)"
|
res="$(pycnc tests/rects.gcode 2>&1)"
|
||||||
res="$res$(pycnc tests/test_parser.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
|
if echo "$res" | grep -q -i error; then
|
||||||
echo "$res"
|
echo "$res"
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user