printrun-src/testtools/lengthy.py

changeset 45
c82943fb205f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/printrun-src/testtools/lengthy.py	Tue Jan 19 20:45:09 2021 +0100
@@ -0,0 +1,10 @@
+#!/usr/bin/python3
+#generate many g1 to test serial buffer overflow in run_gcode_script
+#run like this:
+#in pronsole> run_gcode_script ./testtools/lengthy.py
+print('G28 X')
+print('G1 X0')
+for x in range(100):
+    print()
+    print('  ')
+    print('G1 X', x)

mercurial