summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Kuzminsky <seb@highlab.com>2012-12-14 22:43:10 -0700
committerSebastian Kuzminsky <seb@highlab.com>2012-12-14 23:08:27 -0700
commit94b2fc210b7bbfa89a1b3baf77e1fe79f1a10243 (patch)
tree0bf46927c46a2ec9d1bb111f389d4f0c80f4561e
parent94c8a868db6c22083b220a5d83a03f69c4d9812b (diff)
downloadlinuxcnc-94b2fc210b7bbfa89a1b3baf77e1fe79f1a10243.tar.gz
linuxcnc-94b2fc210b7bbfa89a1b3baf77e1fe79f1a10243.zip
remove some redundancy in encoder test
Each test case in this suite used to have its own copy of the pin name regex, but it's enough to have one for 'names' loads and one for 'num_chan' loads.
l---------[-rw-r--r--]tests/module-loading/encoder/1-names/PIN_NAME_REGEX2
l---------[-rw-r--r--]tests/module-loading/encoder/8-names/PIN_NAME_REGEX2
l---------[-rw-r--r--]tests/module-loading/encoder/9-names/PIN_NAME_REGEX2
-rw-r--r--tests/module-loading/encoder/PIN_NAME_REGEX.names1
-rw-r--r--tests/module-loading/encoder/PIN_NAME_REGEX.num_chan1
l---------[-rw-r--r--]tests/module-loading/encoder/num_chan=0/PIN_NAME_REGEX2
l---------[-rw-r--r--]tests/module-loading/encoder/num_chan=1/PIN_NAME_REGEX2
l---------[-rw-r--r--]tests/module-loading/encoder/num_chan=8/PIN_NAME_REGEX2
l---------[-rw-r--r--]tests/module-loading/encoder/num_chan=9/PIN_NAME_REGEX2
9 files changed, 9 insertions, 7 deletions
diff --git a/tests/module-loading/encoder/1-names/PIN_NAME_REGEX b/tests/module-loading/encoder/1-names/PIN_NAME_REGEX
index 2e8db0d39..89ddc10d5 100644..120000
--- a/tests/module-loading/encoder/1-names/PIN_NAME_REGEX
+++ b/tests/module-loading/encoder/1-names/PIN_NAME_REGEX
@@ -1 +1 @@
-enc[0-9]\.position$
+../PIN_NAME_REGEX.names \ No newline at end of file
diff --git a/tests/module-loading/encoder/8-names/PIN_NAME_REGEX b/tests/module-loading/encoder/8-names/PIN_NAME_REGEX
index 2e8db0d39..89ddc10d5 100644..120000
--- a/tests/module-loading/encoder/8-names/PIN_NAME_REGEX
+++ b/tests/module-loading/encoder/8-names/PIN_NAME_REGEX
@@ -1 +1 @@
-enc[0-9]\.position$
+../PIN_NAME_REGEX.names \ No newline at end of file
diff --git a/tests/module-loading/encoder/9-names/PIN_NAME_REGEX b/tests/module-loading/encoder/9-names/PIN_NAME_REGEX
index 2e8db0d39..89ddc10d5 100644..120000
--- a/tests/module-loading/encoder/9-names/PIN_NAME_REGEX
+++ b/tests/module-loading/encoder/9-names/PIN_NAME_REGEX
@@ -1 +1 @@
-enc[0-9]\.position$
+../PIN_NAME_REGEX.names \ No newline at end of file
diff --git a/tests/module-loading/encoder/PIN_NAME_REGEX.names b/tests/module-loading/encoder/PIN_NAME_REGEX.names
new file mode 100644
index 000000000..2e8db0d39
--- /dev/null
+++ b/tests/module-loading/encoder/PIN_NAME_REGEX.names
@@ -0,0 +1 @@
+enc[0-9]\.position$
diff --git a/tests/module-loading/encoder/PIN_NAME_REGEX.num_chan b/tests/module-loading/encoder/PIN_NAME_REGEX.num_chan
new file mode 100644
index 000000000..924d37d6a
--- /dev/null
+++ b/tests/module-loading/encoder/PIN_NAME_REGEX.num_chan
@@ -0,0 +1 @@
+encoder\.[0-9]\.position$
diff --git a/tests/module-loading/encoder/num_chan=0/PIN_NAME_REGEX b/tests/module-loading/encoder/num_chan=0/PIN_NAME_REGEX
index 924d37d6a..ec3884c56 100644..120000
--- a/tests/module-loading/encoder/num_chan=0/PIN_NAME_REGEX
+++ b/tests/module-loading/encoder/num_chan=0/PIN_NAME_REGEX
@@ -1 +1 @@
-encoder\.[0-9]\.position$
+../PIN_NAME_REGEX.num_chan \ No newline at end of file
diff --git a/tests/module-loading/encoder/num_chan=1/PIN_NAME_REGEX b/tests/module-loading/encoder/num_chan=1/PIN_NAME_REGEX
index 924d37d6a..ec3884c56 100644..120000
--- a/tests/module-loading/encoder/num_chan=1/PIN_NAME_REGEX
+++ b/tests/module-loading/encoder/num_chan=1/PIN_NAME_REGEX
@@ -1 +1 @@
-encoder\.[0-9]\.position$
+../PIN_NAME_REGEX.num_chan \ No newline at end of file
diff --git a/tests/module-loading/encoder/num_chan=8/PIN_NAME_REGEX b/tests/module-loading/encoder/num_chan=8/PIN_NAME_REGEX
index 924d37d6a..ec3884c56 100644..120000
--- a/tests/module-loading/encoder/num_chan=8/PIN_NAME_REGEX
+++ b/tests/module-loading/encoder/num_chan=8/PIN_NAME_REGEX
@@ -1 +1 @@
-encoder\.[0-9]\.position$
+../PIN_NAME_REGEX.num_chan \ No newline at end of file
diff --git a/tests/module-loading/encoder/num_chan=9/PIN_NAME_REGEX b/tests/module-loading/encoder/num_chan=9/PIN_NAME_REGEX
index 924d37d6a..ec3884c56 100644..120000
--- a/tests/module-loading/encoder/num_chan=9/PIN_NAME_REGEX
+++ b/tests/module-loading/encoder/num_chan=9/PIN_NAME_REGEX
@@ -1 +1 @@
-encoder\.[0-9]\.position$
+../PIN_NAME_REGEX.num_chan \ No newline at end of file