summaryrefslogtreecommitdiff
path: root/testsuite
Commit message (Collapse)AuthorAgeFilesLines
* fixup: add the properly-named new test filesJim Meyering2014-09-061-1/+1
| | | | | * testsuite/Makefile.am (EXTRA_DIST): Add y-zero.*, not y-NUL.* here.
* fix "y" to work with NUL in the RHSJim Meyering2014-09-065-2/+5
| | | | | | | | | | | | | * sed/execute.c (do_list) [case 'y']: Handle NUL bytes in the RHS of a y/LHS/RHS/ transliteration. * testsuite/y-zero.good: New test-related files. * testsuite/y-zero.inp: * testsuite/y-zero.sed: * testsuite/Makefile.am (SEDTESTS): Add y-zero here. * testsuite/Makefile.tests: And here. * NEWS (Bug fixes): Describe it. The bug was reported by table@inventati.org, with the execute.c change mostly by Paolo Bonzini.
* testsuite: make test logs more verboseStefano Lattarini2013-01-011-13/+4
| | | | | | | | | | | | The Automake-provided parallel testsuite harness take care of redirection the stdout and stderr of the run test cases to a corresponding log file, so we no longer have to worry about avoiding to pollute the "make test" output. * testsuite/runtest: Adjust and simplify. Copyright-paperwork-exempt: yes Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* tests: enable Automake parallel testsuite harnessStefano Lattarini2013-01-011-1/+2
| | | | | | | | | | | | | | | | | It is better than the older test driver. It is also the default now, starting from Automake 1.13; so having it enabled unconditionally will allow GNU sed to be seamlessly bootstrapped by Automake 1.13. * configure.ac (AM_INIT_AUTOMAKE): Add 'parallel-tests' option. Also require Automake 1.11.1, since that is the minimal version to have a sane 'parallel-tests' support. (AC_PREREQ): Bump requirement to 2.62, since that is the minimal version required by Automake 1.11.1. * testsuite/Makefile.am (TESTS_ENVIRONMENT): Remove the invocation for the test runner "$(srcdir)/runtest"; it's correct place is ... (LOG_COMPILER): ... here. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* add missing files to repositoryPaolo Bonzini2013-01-013-0/+3
|
* Update to latest gnulib.Paolo Bonzini2012-12-221-5/+5
| | | | | | | 2012-12-21 Paolo Bonzini <bonzini@gnu.org> * gnulib: Update. * testsuite/version.gin: Regenerate.
* fix \x26 on RHS of s commandPaolo Bonzini2012-04-132-2/+3
| | | | | | | | | | | 2012-04-13 Paolo Bonzini <bonzini@gnu.org> * sed/compile.c (convert_number): Remove default_char argument, expect buf to point to it. Remove maxdigits argument and compute it on the fly. (normalize_text): Unify calls to convert_number under the convert label. For TEXT_REPLACEMENT add a backslash to the output if convert_number returns ch == '&'.
* regenerate testsuite/version.ginPaolo Bonzini2012-03-161-1/+3
| | | | | | 2012-03-16 Paolo Bonzini <bonzini@gnu.org> * testsuite/version.gin: Regenerate.
* override LC_ALL in testsuite rather than LANGYury G. Kudryashov2009-10-141-6/+6
| | | | | | 2009-10-14 Yuri G. Kudryashov <urkud.urkud@gmail.com> (tiny change) * testsuite/Makefile.tests: Override LC_ALL, not LANG.
* fix bug with s/[[[]//Paolo Bonzini2009-05-115-2/+13
| | | | | | | | | | | | | | | 2009-05-11 Paolo Bonzini <bonzini@gnu.org> * sed/compile.c (snarf_char_class): Fix logic bug with [[[ in regular expressions (and a possibly uninitialized use of variable delim stemming from the bug). Uninitialized variable bug reported by Zhongxing Xu. * testsuite/brackets.good: New. * testsuite/brackets.inp: New. * testsuite/brackets.sed: New. * testsuite/Makefile.am: Add test. * testsuite/Makefile.tests: Add test. 2009-05-11 Paolo Bonzini <bonzini@gnu.org>
* fix copyright years and noticePaolo Bonzini2009-05-111-1/+1
| | | | | | | | | | | | 2009-05-11 Paolo Bonzini <bonzini@gnu.org> * configure.ac: Define COPYRIGHT_YEAR. * Makefile.am (dist-hook): Test it. * sed/mbcs.c: Fix copyright years. * sed/sed.c: Fix copyright years. Change COPYRIGHT_NOTICE to COPYRIGHT_YEAR. * sed/utils.c: Fix copyright years. * testsuite/version.gin: Use COPYRIGHT_YEAR.
* fix readin test properlyPaolo Bonzini2009-04-283-3/+3
| | | | | | | | 2009-04-27 Paolo Bonzini <bonzini@gnu.org> * configure.ac: Do not create homonymous links from builddir to srcdir. * testsuite/Makefile.tests: Create readin.in2 here. * testsuite/Makefile.am: Do not distribute it.
* handle CRLF endings in the testsuite for mingwPaolo Bonzini2009-04-271-34/+50
| | | | | | 2009-04-27 Paolo Bonzini <bonzini@gnu.org> * testsuite/Makefile.tests: Handle CRLF endings for mingw.
* fixes after Bruno's testingPaolo Bonzini2009-04-273-13/+4
| | | | | | | | | | | | | | | | 2009-04-27 Paolo Bonzini <bonzini@gnu.org> * configure.ac: Link readin.in2 into builddir. * configure: Regenerate. * doc/Makefile.am: Do not distribute sed.html. Do not update sed.texi if the output does not change. * sed/Makefile.am: Order libraries according to their dependencies. * sed/compile.c (get_openfile): Declare FAIL as int. * sed/sed.c: Avoid printf ("") if REG_PERL is not defined. * testsuite/eval.in2: Do not include in the repository. * testsuite/Makefile.am: Clean always eval.in2 and never readin.in2. * testsuite/Makefile.tests: Provide a default empty definition of TIME and remove rules for readin.in2.
* improve `sed --version' outputPaolo Bonzini2009-03-311-1/+1
| | | | | | | | | | | | | | | | | 2009-03-31 Paolo Bonzini <bonzini@gnu.org> * sed/sed.c (contact): New. (usage): From here. (main): Use it for `sed --version' too. * configure.ac: Point to GNU project mailing lists. * sed/sed.c (contact): Use PACKAGE_BUGREPORT. * testsuite/version.gin: Likewise. * testsuite/version.good: Regenerate. * doc/sed.1: Regenerate. * bootstrap.sh.in (PACKAGE_BUGREPORT): New. * bootstrap.sh: Regenerate.
* distribute utf8-3 and utf8-4 test filesPaolo Bonzini2009-03-311-0/+2
| | | | | | 2009-03-31 Paolo Bonzini <bonzini@gnu.org> * testsuite/Makefile.am: Distribute utf8-3 and utf8-4 test files.
* avoid failures on the utf8-[1234] testsPaolo Bonzini2009-02-171-14/+21
| | | | | | | 2009-02-17 Paolo Bonzini <bonzini@gnu.org> * testsuite/Makefile.tests: Rewrite rule for utf8-[1234]. Reported by Ralf Wildenhues.
* include homepage URL in help messages.Paolo Bonzini2009-02-171-1/+3
| | | | | | | 2009-02-17 Paolo Bonzini <bonzini@gnu.org> * sed/sed.c (usage): Print homepage URL. * testsuite/version.gin: Update.
* do not print the bug report address when --help is printed and exit status != 0Paolo Bonzini2009-01-282-1/+5
| | | | | | | | | 2009-01-28 Paolo Bonzini <bonzini@gnu.org> * sed/sed.c (usage): Only print the bug report address for `sed --help'. (main): Print it for `sed --version' too. * testsuite/version.gin: Adapt. * testsuite/Makefile.tests: Refine help message test.
* update gnulib to fix two regex matcher bugsPaolo Bonzini2009-01-091-0/+4
| | | | | | 2009-01-09 Paolo Bonzini <bonzini@gnu.org> * tests/SPENCER.tests: Add testcases for glibc bugzilla 697.
* fix "x", "g", "G" commands with "sed -i" to match BSD sedPaolo Bonzini2009-01-052-1/+10
| | | | | | | 2009-01-05 Paolo Bonzini <bonzini@gnu.org> * execute.c (read_pattern_space): Reset hold space at end-of-file if input->reset_at_next_file.
* add utf8 tests for commit 7f53c1c16e7654427dc884e528f5e2d201c15fc5Paolo Bonzini2008-09-2915-6/+42
| | | | | | | | | | | | | | | | | | | | 2008-09-29 Paolo Bonzini <bonzini@gnu.org> * testsuite/Makefile.am: Add the utf8-{1,2,3,4} tests. * testsuite/Makefile.tests: Add the utf8-{1,2,3,4} tests. * testsuite/runtest: Support skipping tests. * testsuite/utf8-1.good: New. * testsuite/utf8-1.inp: New. * testsuite/utf8-1.sed: New. * testsuite/utf8-2.good: New. * testsuite/utf8-2.inp: New. * testsuite/utf8-2.sed: New. * testsuite/utf8-3.good: New. * testsuite/utf8-3.inp: New. * testsuite/utf8-3.sed: New. * testsuite/utf8-4.good: New. * testsuite/utf8-4.inp: New. * testsuite/utf8-4.sed: New.
* add `z' extensionPaolo Bonzini2008-09-295-1/+36
| | | | | | | | | | | | | | | 2008-09-29 Paolo Bonzini <bonzini@gnu.org> * BUGS: Document s/.*.// behavior with invalid multibyte sequences. * NEWS: Document `z' extension. * doc/sed-in.texi: Document both things. * sed/compile.c (compile_program): Recognize `z'. * sed/execute.c (execute_program): Execute `z'. * testsuite/Makefile.am: Add badenc test. * testsuite/Makefile.tests: Add badenc test. * testsuite/badenc.good: New. * testsuite/badenc.inp: New. * testsuite/badenc.sed: New.
* treat 's&foo&\&&' compatibly with traditional 'sed'Paul Eggert2008-04-242-0/+19
| | | | | | | | | 2008-04-24 Paul Eggert <eggert@twinsun.com> * sed/compile.c (match_slash): Treat 's&foo&\&&' compatibly with traditional 'sed'. * testsuite/bsd.sh: Add test case for this. * testsuite/bsd.good: Add test case output.
* upgrade autobootPaolo Bonzini2008-01-161-1/+3
|
* switch to GPLv3v4.1dPaolo Bonzini2008-01-091-0/+1
| | | | git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-94
* upgrade regex tests from glibcPaolo Bonzini2008-01-093-0/+142
| | | | | | | | | 2007-02-05 Paolo Bonzini <bonzini@gnu.org> * testsuite/bug-regex27.c, testsuite/bug-regex28.c: New, from glibc (written by Jakub Jelinek). git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-93
* fix '/foo/i\'Paolo Bonzini2008-01-095-2/+8
| | | | | | | | | | | | | | 2007-01-26 Paolo Bonzini <bonzini@gnu.org> * sed/compile.c (check_final_program): Don't set text if the pending_text is initialized but empty. * sed/execute.c (output_line): Don't print text if it is NULL. * tests/Makefile.am (TESTS): Add insert. * tests/Makefile.tests (insert): New. * tests/insert.good, tests/insert.sed, tests/insert.inp: New testcase from Jonas Koelker. git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-92
* fix my own braindead-nessPaolo Bonzini2008-01-091-1/+1
| | | | git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-82
* autogenerate version.good within configurePaolo Bonzini2008-01-091-1/+0
| | | | git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-81
* gnulib .gitignore filesPaolo Bonzini2008-01-098-8/+32
|
* gnulibify and add ACL supportPaolo Bonzini2008-01-0912-4/+36
| | | | | | | | | | 2006-09-24 Paolo Bonzini <bonzini@gnu.org> * sed/execute.c: Support ACLs. * lib/utils.c: Move... * sed/utils.c: ... here, and remove xmalloc. git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-74
* fix y/[/X/ and add more testcases for the y commandPaolo Bonzini2008-01-098-4/+15
| | | | | | | | 2006-02-03 Paolo Bonzini <bonzini@gnu.org> * sed/compile.c (compile_program) <case 'y'>: Pass false to match_slash. git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-62
* fix 0~2, signaled by Guglielmo BondioniPaolo Bonzini2008-01-096-3/+49
| | | | | | | | | | | | | | 2005-08-30 Paolo Bonzini <bonzini@gnu.org> * sed/execute.c (reset_addresses): Never activate ADDR_IS_NUM_MOD addresses. * testsuite/modulo.good, testsuite/modulo.inp, testsuite/modulo.sed: New. * testsuite/Makefile.tests: Add new testcase. * testsuite/Makefile.am: Add new testcase. * testsuite/Makefile.in: Regenerate. git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-52
* update FSF addressPaolo Bonzini2008-01-0914-30/+31
| | | | git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-49
* fix a/r/R commands when q is encounteredPaolo Bonzini2008-01-097-4/+11
| | | | | | | | | | | | | 2005-02-10 Paolo Bonzini <bonzini@gnu.org> * testsuite/appquit.good, testsuite/appquit.inp, testsuite/appquit.sed: New testcase. * testsuite/readin.sed: Quit after the last r command. * testsuite/readin.good: Adjust. * sed/execute.c (execute_program): Dump the results of the a/r/R commands just before quitting. git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-44
* fix crash on /\(\)/xPaolo Bonzini2008-01-091-0/+1
| | | | | | | | | | 2005-02-10 Paolo Bonzini <bonzini@gnu.org> * lib/regcomp.c (lower_subexp): Do not optimize empty subexpressions even with REG_NOSUB. * testsuite/SPENCER.tests: Add a previously failing testcase. git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-43
* finally resync with glibcPaolo Bonzini2008-01-092-9/+12
| | | | git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-38
* fix meaning of \BPaolo Bonzini2008-01-091-3/+9
| | | | | | | | | | | | | 2005-01-26 Paolo Bonzini <bonzini@gnu.org> * posix/regcomp.c (peek_token): Fix ctx_type for \B. (parse_expression): Lower token->opr.ctx_type == NOT_WORD_DELIM. * posix/regex_internal.h (re_context_type): Add NOT_WORD_DELIM and OUTSIDE_WORD. * posix/PCRE.tests: Adjust \B tests to check if it matches outside a word. git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-36
* do not use leftmost-longest matching for addresses.Paolo Bonzini2008-01-095-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-12-26 Paolo Bonzini <bonzini@gnu.org> Do not use leftmost-longest matching for addresses. * NEWS: Add a note about this. * testsuite/recall2.good, testsuite/recall2.inp, testsuite/recall2.sed: New test. * testsuite/Makefile.am, testsuite/Makefile.tests: Add the recall2 test. * sed/sed.h (struct regex): New. (struct addr, struct subst, compile_regex, match_regex, release_regex): Use it instead of regex_t. * sed/compile.c (compile_program): Update for new meaning of the third parameter of compile_regex. * sed/execute.c (do_subst): Pass less conservative value to the regsize parameter of match_regex. * sed/regexp.c (compile_regex_1): New, extracted out of compile_regex. The third parameter, needed_sub, now includes \0 (so 10 means that \0 .. \9 are needed). Pass RE_NO_SUB if needed_sub is zero. (compile_regex): Accept a struct regex instead of a regex_t. Save the regular expression's text. (match_regex): Accept a struct regex instead of a regex_t. Recompile the pattern if it was compiled with RE_NO_SUB. (release_regex): Accept a struct regex instead of a regex_t. * doc/Makefile.am: Generate sed.texi correctly when building outside srcdir. git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-33
* speed up .{1,2048}Paolo Bonzini2008-01-092-2/+19
| | | | | | | | | | | | | | 2004-11-23 Paolo Bonzini <bonzini@gnu.org> * regcomp.c (analyze_tree): Always call calc_epsdest. (calc_inveclosure): Use re_node_set_insert_last. (parse_dup_op): Lower X{1,5} to (X(X(X(XX?)?)?)?)? rather than X?X?X?X?X?. * regex_internal.h (re_node_set_insert_last): New declaration. * regex_internal.c (re_node_set_insert_last): New function. * PCRE.tests: Add testcases. git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-22
* git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-20Paolo Bonzini2008-01-094-9/+233
|
* more portability improvementsPaolo Bonzini2008-01-091-1/+1
| | | | | | | | | | | | | | | | | 2004-11-11 Paolo Bonzini <bonzini@gnu * tst-rxspecer.c: Do not mix instructions and declarations. * basicdefs.h: Include locale.h before #defining gettext, to avoid breakage under Solaris. * sed/sed.c: do not include locale.h. po: 2004-11-11 Paolo Bonzini <bonzini@gnu.org> * Makevars: New. git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-18
* merge from glibcPaolo Bonzini2008-01-091-21/+5
| | | | git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-16
* always enable regex tests when included regex is usedPaolo Bonzini2008-01-0912-18/+78
| | | | | | | | | | | | | | | | | 2004-11-03 Paolo Bonzini <bonzini@gnu * bug-regex11.c: Improve portability. * bug-regex12.c: Improve portability. * bug-regex13.c: Improve portability. * bug-regex14.c: Improve portability. * bug-regex21.c: Improve portability. * bug-regex9.c: Improve portability. * tst-boost.c: Improve portability. * tst-pcre.c: Improve portability. * tst-regex.c: Improve portability. * tst-rxspencer.c: Improve portability. git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-9
* initial importPaolo Bonzini2004-10-20172-0/+14821
(automatically generated log message) git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--base-0