summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Epler <jepler@unpythonic.net>2010-11-17 07:57:54 -0600
committerJeff Epler <jepler@dsndata.com>2012-03-09 16:00:11 -0600
commited3b1332644f378344813f9cf7c252cb8ce6057b (patch)
tree8db093d1cab03f751492038ed1059826f07ea14b
parent95c6d82b5d6fdcf0a9f5744ef6d1e63eae9582f4 (diff)
downloadlinuxcnc-ed3b1332644f378344813f9cf7c252cb8ce6057b.tar.gz
linuxcnc-ed3b1332644f378344813f9cf7c252cb8ce6057b.zip
canterp: test that plugging canterp in sai works
-rw-r--r--tests/interp/plug/README1
-rw-r--r--tests/interp/plug/canon9
-rw-r--r--tests/interp/plug/expected9
-rw-r--r--tests/interp/plug/test.sh3
4 files changed, 22 insertions, 0 deletions
diff --git a/tests/interp/plug/README b/tests/interp/plug/README
new file mode 100644
index 000000000..b7b3b9f24
--- /dev/null
+++ b/tests/interp/plug/README
@@ -0,0 +1 @@
+Test that canterp can be used as a pluggable interpreter
diff --git a/tests/interp/plug/canon b/tests/interp/plug/canon
new file mode 100644
index 000000000..d8097fe97
--- /dev/null
+++ b/tests/interp/plug/canon
@@ -0,0 +1,9 @@
+ 1 N..... USE_LENGTH_UNITS(CANON_UNITS_INCHES)
+ 1 N.... MIST_OFF()
+ 1 N.... FLOOD_OFF()
+ 1 N.... STRAIGHT_TRAVERSE(0.0000, 0.0000, -.1, 0., 0., 0., 0., 0., 0.)
+ 1 N.... SET_FEED_RATE(24.0)
+ 1 N.... STRAIGHT_FEED(0.0000, 0.0000, -1.5, 0., 0., 0., 0., 0., 0.)
+ 1 N.... STRAIGHT_FEED(1.0000, 1.0000, -1.5, 0., 0., 0., 0., 0., 0.)
+ 1 N.... STRAIGHT_FEED(1.0000, 1.0000, -.1, 0., 0., 0., 0., 0., 0.)
+ 1 N..... PROGRAM_END()
diff --git a/tests/interp/plug/expected b/tests/interp/plug/expected
new file mode 100644
index 000000000..36a650e47
--- /dev/null
+++ b/tests/interp/plug/expected
@@ -0,0 +1,9 @@
+ N..... USE_LENGTH_UNITS(CANON_UNITS_INCHES)
+ N..... MIST_OFF()
+ N..... FLOOD_OFF()
+ N..... STRAIGHT_TRAVERSE(0.0000, 0.0000, -0.1000, 0.0000, 0.0000, 0.0000)
+ N..... SET_FEED_RATE(24.0000)
+ N..... STRAIGHT_FEED(0.0000, 0.0000, -1.5000, 0.0000, 0.0000, 0.0000)
+ N..... STRAIGHT_FEED(1.0000, 1.0000, -1.5000, 0.0000, 0.0000, 0.0000)
+ N..... STRAIGHT_FEED(1.0000, 1.0000, -0.1000, 0.0000, 0.0000, 0.0000)
+ N..... PROGRAM_END()
diff --git a/tests/interp/plug/test.sh b/tests/interp/plug/test.sh
new file mode 100644
index 000000000..592a2de20
--- /dev/null
+++ b/tests/interp/plug/test.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+rs274 -p ../../../lib/libcanterp.so -g canon | awk '{$1=""; print}'
+exit ${PIPESTATUS[0]}