Assaf Gordon
aaf20d11fb
tests: convert 'bsd' test to new framework
...
The 'bsd.sh' is a long shell script (imported from NetBSD) which runs
multiple tests, then compares the output to 'bsd.good'.
The 'bsd.sh' is not modified. Instead, a new script 'bsd-wrapper.sh'
is created to work with the newer init.sh-style testing framework.
* testsuite/bsd-wrapper.sh: New test.
* testsuite/local.mk (SEDTESTS): Remove old test. (T): Add new test.
2017-05-10 21:39:56 -04:00
Assaf Gordon
33c4242491
tests: convert 'xemacs' test to new framework
...
Keep input/expected output files (xemacs.inp/xemacs.good) as they contain
lines longar than 80 characters (which will fail 'make syntax-check').
* testsuite/xemacs.sed: Remove.
* testsuite/xemacs.sh: New test.
* testsuite/local.mk (EXTRA_DIST): Remove xemacs.sed.
(SEDTESTS): Remove old xemacs test.
(T): Add new xemacs.sh test.
2017-05-10 21:39:38 -04:00
Assaf Gordon
27d42598ed
tests: convert 'help' test to new framework
...
The 'help' test was implemented directly in 'Makefile.tests' - no
external files to remove/adapt.
* testsuite/help.sh: New tests.
* testsuite/local.mk (SEDTESTS): Remove old test.
(T): Add new test.
2017-05-10 21:37:29 -04:00
Assaf Gordon
34ad433587
tests: convert 'uniq' test to new framework
...
Add a simple init.sh-stype wrapper to run the 'uniq' tests.
'uniq.sed' is a valid stand-alone script - keep it as-is.
The input/expected output files (uniq.inp/uniq.good) are large - keep
them as well instead of embedding them in the shell script.
* testsuite/uniq.sh: New test.
* testsuite/local.mk (SEDTESTS): Remove uniq.sed
(T): Add uniq.sh.
2017-05-10 21:37:28 -04:00
Assaf Gordon
dbe7aa548e
tests: convert 'utf8-*' tests to new framework
...
Merge utf8-{1,2,3,4} into utf8-ru.sh script.
* testsuite/utf8-ru.sh: New test.
* testsuite/utf8-1.inp,
testsuite/utf8-1.good,
testsuite/utf8-1.sed,
testsuite/utf8-2.inp,
testsuite/utf8-2.good,
testsuite/utf8-2.sed,
testsuite/utf8-3.inp,
testsuite/utf8-3.good,
testsuite/utf8-3.sed,
testsuite/utf8-4.inp,
testsuite/utf8-4.good,
testsuite/utf8-4.sed: Removed files.
* testsuite/local.mk (EXTRA_DIST): Remove deleted inp/sed/good files.
(SEDTESTS): Remove utf8-{1,2,3,4} tests.
(T): Add new test.
2017-05-10 21:37:28 -04:00
Assaf Gordon
c24b91e768
tests: convert "dc" test to new framework
...
The 'dc.sed' program (implementing dc calculator in sed) is kept as-is.
The input (dc.inp) and expected output (dc.good) are merged into the
new shell script.
The old-style test executed two calculations at once (Easter 2002 and
square root of 2). They are now separated into two invocations of
'dc.sed'.
* testsuite/dc.sh: New test.
* testsuite/dc.inp, testuite/dc.good: Removed.
* testsuite/local.mk (EXTRA_DIST): Remove inp/good files.
(SEDTEST): Remove dc.sed.
(T): Add dc.sh.
2017-05-10 21:37:28 -04:00
Assaf Gordon
a968ba77e7
tests: convert "binary/2/3" tests to new framework
...
The sed scripts (binary.sed, binary2.sed, binary3.sed) are large and
could function as stand-alone programs - there are kept as separate
files. The input/expected output are removed, and a new script is
added to run the tests.
* testsuite/binary.sh: New script.
* testsuite/binary.inp, testsuite/binary.good: Removed.
* testsuite/local.mk (EXTRA_DIST): Remove inp/good files.
(SEDTEST): Remove tests.
(T): Add new test.
2017-05-10 21:37:28 -04:00
Assaf Gordon
4f8c2c8ba2
tests: convert "8bit" test to new framework
...
The input (8bit.inp) and expected output (8bit.good) contains non-ascii
octets, and are kept as-is. The sed program is converted to newer
init.sh-style tests.
* testsuite/8bit.sed: Removed.
* testsuite/8bit.sh: New test.
* testsuite/local.mk (EXTRA_DIST): Remove 8bit.sed.
(SEDTEST) Remove 8bit.sed.
(T): Add 8bit.sh.
2017-05-10 21:37:28 -04:00
Assaf Gordon
96b8cec2aa
tests: new function remove_cr_inplace in init.cfg
...
When testing on Windows OSes, remove any CR (\r) characters
from output files (before comparing them to expected output).
This functionality was used by the old-style tests, embedded
directly in 'Makefile.tests'.
* init.cfg: (remove_cr_inplace): New function.
2017-05-10 21:37:28 -04:00
Assaf Gordon
9f521104fa
tests: convert "subwrite" test to new framework
...
* testsuite/misc.pl (Tests): Add subwrite.
* testsuite/subwrite.inp: Likewise.
* testsuite/subwrite.sed: Likewise.
* testsuite/subwrt1.good: Delete file.
* testsuite/subwrt2.good: Delete file.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "subwrite".
2017-05-10 21:37:25 -04:00
Assaf Gordon
2f27d079c4
tests: convert "writeout" test to new framework
...
* testsuite/misc.pl (Tests): Add writeout.
* testsuite/writeout.inp: Likewise.
* testsuite/writeout.sed: Likewise.
* testsuite/wrtout1.good: Delete file.
* testsuite/wrtout2.good: Delete file.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "writeout".
2017-05-10 21:37:21 -04:00
Assaf Gordon
50b7d92bab
tests: convert 'quiet'/'file' tests to new framework
...
* testsuite/local.mk: (SEDTESTS): Remove tests.
* testsuite/misc.pl: Add tests.
2017-05-10 21:37:21 -04:00
Assaf Gordon
34ec11a66b
tests: convert "brackets" test to new framework
...
* testsuite/misc.pl (Tests): Add brackets.
* testsuite/brackets.good: Delete file.
* testsuite/brackets.inp: Likewise.
* testsuite/brackets.sed: Likewise.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "brackets".
2017-05-10 21:37:21 -04:00
Assaf Gordon
53edb359af
tests: convert "sep" test to new framework
...
* testsuite/misc.pl (Tests): Add sep.
* testsuite/sep.good: Delete file.
* testsuite/sep.inp: Likewise.
* testsuite/sep.sed: Likewise.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "sep".
2017-05-10 21:37:21 -04:00
Assaf Gordon
393733a314
tests: convert "readin" test to new framework
...
* testsuite/misc.pl (Tests): Add readin.
* testsuite/readin.good: Delete file.
* testsuite/readin.inp: Likewise.
* testsuite/readin.sed: Likewise.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "readin".
2017-05-10 21:37:20 -04:00
Assaf Gordon
3d720b26f1
tests: convert "numsub" test to new framework
...
* testsuite/misc.pl (Tests): Add numsub.
* testsuite/numsub.good: Delete file.
* testsuite/numsub.inp: Likewise.
* testsuite/numsub.sed: Likewise.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "numsub".
2017-05-10 21:37:20 -04:00
Assaf Gordon
e6d41f4de4
tests: convert "numsub5" test to new framework
...
* testsuite/misc.pl (Tests): Add numsub5.
* testsuite/numsub5.good: Delete file.
* testsuite/numsub5.inp: Likewise.
* testsuite/numsub5.sed: Likewise.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "numsub5".
2017-05-10 21:37:20 -04:00
Assaf Gordon
43835d4f27
tests: convert "numsub4" test to new framework
...
* testsuite/misc.pl (Tests): Add numsub4.
* testsuite/numsub4.good: Delete file.
* testsuite/numsub4.inp: Likewise.
* testsuite/numsub4.sed: Likewise.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "numsub4".
2017-05-10 21:37:20 -04:00
Assaf Gordon
901700295a
tests: convert "numsub3" test to new framework
...
* testsuite/misc.pl (Tests): Add numsub3.
* testsuite/numsub3.good: Delete file.
* testsuite/numsub3.inp: Likewise.
* testsuite/numsub3.sed: Likewise.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "numsub3".
2017-05-10 21:37:20 -04:00
Assaf Gordon
628f37dba2
tests: convert "numsub2" test to new framework
...
* testsuite/misc.pl (Tests): Add numsub2.
* testsuite/numsub2.good: Delete file.
* testsuite/numsub2.inp: Likewise.
* testsuite/numsub2.sed: Likewise.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "numsub2".
2017-05-10 21:37:20 -04:00
Assaf Gordon
042ea8ebe6
tests: convert "newline-anchor" test to new framework
...
* testsuite/misc.pl (Tests): Add newline-anchor.
* testsuite/newline-anchor.good: Delete file.
* testsuite/newline-anchor.inp: Likewise.
* testsuite/newline-anchor.sed: Likewise.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "newline-anchor".
2017-05-10 21:37:20 -04:00
Assaf Gordon
ff1d9f9e6e
tests: convert "middle" test to new framework
...
* testsuite/misc.pl (Tests): Add middle.
* testsuite/middle.good: Delete file.
* testsuite/middle.inp: Likewise.
* testsuite/middle.sed: Likewise.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "middle".
2017-05-10 21:37:20 -04:00
Assaf Gordon
e3ca6642c6
tests: convert "xabcx" test to new framework
...
* testsuite/misc.pl (Tests): Add xabcx.
* testsuite/xabcx.good: Delete file.
* testsuite/xabcx.inp: Likewise.
* testsuite/xabcx.sed: Likewise.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "xabcx".
2017-05-10 21:37:19 -04:00
Assaf Gordon
38468e9787
tests: convert "manis" test to new framework
...
* testsuite/misc.pl (Tests): Add manis.
* testsuite/manis.good: Delete file.
* testsuite/manis.inp: Likewise.
* testsuite/manis.sed: Likewise.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "manis".
2017-05-10 21:37:19 -04:00
Assaf Gordon
53fc70ba89
tests: convert "linecnt" test to new framework
...
* testsuite/misc.pl (Tests): Add linecnt.
* testsuite/linecnt.good: Delete file.
* testsuite/linecnt.inp: Likewise.
* testsuite/linecnt.sed: Likewise.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "linecnt".
2017-05-10 21:37:19 -04:00
Assaf Gordon
00dfc24358
tests: convert "khadafy" test to new framework
...
* testsuite/misc.pl (Tests): Add khadafy.
* testsuite/khadafy.good: Delete file.
* testsuite/khadafy.inp: Likewise.
* testsuite/khadafy.sed: Likewise.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "khadafy".
2017-05-10 21:37:19 -04:00
Assaf Gordon
15c5f28bd2
tests: convert "inclib" test to new framework
...
* testsuite/misc.pl (Tests): Add inclib.
* testsuite/inclib.good: Delete file.
* testsuite/inclib.inp: Likewise.
* testsuite/inclib.sed: Likewise.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "inclib".
2017-05-10 21:37:19 -04:00
Assaf Gordon
b1d6e355be
tests: convert "factor" test to new framework
...
* testsuite/misc.pl (Tests): Add factor.
* testsuite/factor.good: Delete file.
* testsuite/factor.inp: Likewise.
* testsuite/factor.sed: Likewise.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "factor".
2017-05-10 21:37:19 -04:00
Assaf Gordon
1f4568370f
tests: convert "flipcase" test to new framework
...
* testsuite/misc.pl (Tests): Add flipcase.
* testsuite/flipcase.good: Delete file.
* testsuite/flipcase.inp: Likewise.
* testsuite/flipcase.sed: Likewise.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "flipcase".
2017-05-10 21:37:19 -04:00
Assaf Gordon
0280fb2bc0
tests: convert "fasts" test to new framework
...
* testsuite/misc.pl (Tests): Add fasts.
* testsuite/fasts.good: Delete file.
* testsuite/fasts.inp: Likewise.
* testsuite/fasts.sed: Likewise.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "fasts".
2017-05-10 21:37:19 -04:00
Assaf Gordon
3942c0d210
tests: convert "enable" test to new framework
...
* testsuite/misc.pl (Tests): Add enable.
* testsuite/enable.good: Delete file.
* testsuite/enable.inp: Likewise.
* testsuite/enable.sed: Likewise.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "enable".
2017-05-10 21:37:19 -04:00
Assaf Gordon
6e4a0c1c4c
tests: convert "cv-vars" test to new framework
...
* testsuite/misc.pl (Tests): Add cv-vars.
* testsuite/cv-vars.good: Delete file.
* testsuite/cv-vars.inp: Likewise.
* testsuite/cv-vars.sed: Likewise.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "cv-vars".
2017-05-10 21:37:18 -04:00
Assaf Gordon
62abe24933
tests: convert "classes" test to new framework
...
* testsuite/misc.pl (Tests): Add classes.
* testsuite/classes.good: Delete file.
* testsuite/classes.inp: Likewise.
* testsuite/classes.sed: Likewise.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "classes".
2017-05-10 21:37:18 -04:00
Assaf Gordon
b4a5e6e968
tests: convert "bkslashes" test to new framework
...
* testsuite/misc.pl (Tests): Add bkslashes.
* testsuite/bkslashes.good: Delete file.
* testsuite/bkslashes.inp: Likewise.
* testsuite/bkslashes.sed: Likewise.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "bkslashes".
2017-05-10 21:37:18 -04:00
Assaf Gordon
a5be8cb23c
tests: convert "amp-escape" test to new framework
...
* testsuite/misc.pl (Tests): Add amp-escape.
* testsuite/amp-escape.good: Delete file.
* testsuite/amp-escape.inp: Likewise.
* testsuite/amp-escape.sed: Likewise.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "amp-escape".
2017-05-10 21:37:18 -04:00
Assaf Gordon
9c19138f89
tests: convert "appquit" test to new framework
...
* testsuite/misc.pl (Tests): Add appquit.
* testsuite/appquit.good: Delete file.
* testsuite/appquit.inp: Likewise.
* testsuite/appquit.sed: Likewise.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "appquit".
2017-05-10 21:37:18 -04:00
Assaf Gordon
e925d8a5bd
tests: convert "0range" test to new framework
...
* testsuite/misc.pl (Tests): Add 0range.
* testsuite/0range.good: Delete file.
* testsuite/0range.inp: Likewise.
* testsuite/0range.sed: Likewise.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "0range".
2017-05-10 21:37:18 -04:00
Assaf Gordon
670914a384
tests: convert "dollar" test to new framework
...
* testsuite/misc.pl (Tests): Add dollar.
* testsuite/dollar.good: Delete file.
* testsuite/dollar.inp: Likewise.
* testsuite/dollar.sed: Likewise.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "dollar".
2017-05-10 21:37:14 -04:00
Assaf Gordon
553f9b12fa
tests: convert "xbxcx3" test to new framework
...
* testsuite/misc.pl (Tests): Add xbxcx3.
* testsuite/xbxcx3.good: Delete file.
* testsuite/xbxcx3.inp: Likewise.
* testsuite/xbxcx3.sed: Likewise.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "xbxcx3".
2017-05-10 21:34:09 -04:00
Assaf Gordon
e0669264cd
tests: convert "xabcx" test to new framework
...
* testsuite/misc.pl (Tests): Add xabcx.
* testsuite/xabcx.good: Delete file.
* testsuite/xabcx.inp: Likewise.
* testsuite/xabcx.sed: Likewise.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "xabcx".
2017-05-10 21:34:03 -04:00
Assaf Gordon
c0a5c50492
tests: convert "xbxcx" test to new framework
...
* testsuite/misc.pl (Tests): Add xbxcx.
* testsuite/xbxcx.good: Delete file.
* testsuite/xbxcx.inp: Likewise.
* testsuite/xbxcx.sed: Likewise.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "xbxcx".
2017-05-10 21:33:57 -04:00
Jim Meyering
9785b2ae6b
tests: convert "recall2" test to new framework
...
* testsuite/misc.pl (Tests): Add recall2.
* testsuite/recall2.good: Delete file.
* testsuite/recall2.inp: Likewise.
* testsuite/recall2.sed: Likewise.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "recall2".
2017-05-10 02:02:28 +00:00
Jim Meyering
f64aa7873b
tests: convert "recall" test to new framework
...
* testsuite/misc.pl (Tests): Add recall.
* testsuite/recall.good: Delete file.
* testsuite/recall.inp: Likewise.
* testsuite/recall.sed: Likewise.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "recall".
2017-05-10 02:02:28 +00:00
Jim Meyering
409ec0b60c
tests: convert "insert" test to new framework
...
* testsuite/misc.pl (Tests): Add insert-nl.
* testsuite/insert.good: Delete file.
* testsuite/insert.inp: Likewise.
* testsuite/insert.sed: Likewise.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "insert".
2017-05-10 02:02:28 +00:00
Jim Meyering
5bd3258819
tests: convert "allsub" test to new framework
...
* testsuite/misc.pl (Tests): Add allsub.
* testsuite/allsub.good: Delete file.
* testsuite/allsub.inp: Likewise.
* testsuite/allsub.sed: Likewise.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "allsub".
2017-05-10 02:02:28 +00:00
Jim Meyering
5cd810a5d3
tests: convert "y-newline" test to new framework
...
* testsuite/misc.pl (Tests): Add y-newline.
* testsuite/y-newline.good: Delete file.
* testsuite/y-newline.inp: Likewise.
* testsuite/y-newline.sed: Likewise.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "y-newline".
2017-05-10 02:02:28 +00:00
Jim Meyering
67ac778599
tests: convert "y-zero" test to new framework
...
* testsuite/misc.pl (Tests): Add y-zero.
* testsuite/y-zero.good: Delete file.
* testsuite/y-zero.inp: Likewise.
* testsuite/y-zero.sed: Likewise.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "y-zero".
2017-05-10 02:02:28 +00:00
Jim Meyering
41da447bbc
tests: convert "y-bracket" test to new framework
...
* testsuite/misc.pl (Tests): Add y-bracket.
* testsuite/y-bracket.good: Delete file.
* testsuite/y-bracket.inp: Likewise.
* testsuite/y-bracket.sed: Likewise.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "y-bracket".
2017-05-10 02:02:28 +00:00
Jim Meyering
a53744ee0d
tests: convert "noeol" to new framework
...
* testsuite/misc.pl (preserve-missing-EOL-at-EOF): New test,
replacing...
* testsuite/noeol.good: Delete file.
* testsuite/noeol.inp: Likewise.
* testsuite/noeol.sed: Likewise.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "noeol".
* testsuite/Makefile.tests (noeol): Remove target.
We also require this additional change, since the noeolw test
used the just-deleted noeol.inp input file:
* testsuite/noeolw.inp: New file, renamed from testsuite/noeol.inp.
* testsuite/Makefile.tests: Use noeolw.inp, not the other test's file.
(EXTRA_DIST): Add testsuite/noeolw.inp.
2017-05-10 02:02:28 +00:00
Jim Meyering
5f4c6d2ae4
tests: convert "insens" to new framework
...
* testsuite/misc.pl (case-insensitive): New test, replacing...
* testsuite/insens.good: Delete file.
* testsuite/insens.inp: Likewise.
* testsuite/insens.sed: Likewise.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "insens".
2017-05-10 02:02:28 +00:00