summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2020-11-16 23:24:30 -0500
committerEric S. Raymond <esr@thyrsus.com>2020-11-16 23:24:30 -0500
commit52e6bb3e84d5ab23c692cc7636c01b486ca1bb71 (patch)
treeea65ded0115d02a9b0d56080410cce274ef4e61f
parentb068bede45b84ed80dac7f7d1943e093bf42bef4 (diff)
downloadflex-git-52e6bb3e84d5ab23c692cc7636c01b486ca1bb71.tar.gz
Fix error in testnmaker: shell case alternations evaluate easrky.
-rw-r--r--tests/testmaker.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/testmaker.sh b/tests/testmaker.sh
index 518745d..52dfdec 100644
--- a/tests/testmaker.sh
+++ b/tests/testmaker.sh
@@ -1,14 +1,14 @@
#!/bin/sh
#
# testmaker.sh - asssemble tests from backend-independent rulesets and
-# backend-dependent boilerplate.
+# backend-dependent boilerplate. Generates both a Flex source file
+# and an input text for it.
#
# The single argument is a testfile name to be generated.
# With the -d option, dump to stdourather than crating the file.
#
# To add a new back end named "foo", append "|foo" to the
-# string literal below.
-backends="c99"
+# third case arm marked "# Add new back ends on this line".
if [ "$1" = -d ] ; then
shift
@@ -43,7 +43,7 @@ for part in "$@"; do
case ${part} in
nr) backend=nr; ;;
r) backend=r; options="${options} reentrant";;
- ${backends}) backend=${part}; options="${options} emit=\"${part}\"" ;;
+ c99) backend=${part}; options="${options} emit=\"${part}\"" ;; # Add new back ends on this line
ser) serialization=yes ;;
ver) serialization=yes; verification=yes; options="${options} tables-verify" ;;
Ca) options="${options} align" ;;