miniexpect.git
10 years agoRHEL 6: p2v: Add fix for older PCRE.
Richard W.M. Jones [Fri, 11 Jul 2014 09:38:53 +0000 (10:38 +0100)]
RHEL 6: p2v: Add fix for older PCRE.

RHEL 6 pcre did not define PCRE_PARTIAL_SOFT.  However PCRE_PARTIAL is
a synonym so use that.

10 years agop2v: close the mexp handle if mexp_spawnv fails
Pino Toscano [Fri, 25 Jul 2014 15:36:17 +0000 (17:36 +0200)]
p2v: close the mexp handle if mexp_spawnv fails

10 years agoDocument behaviour when matching against multiple regular expressions.
Richard W.M. Jones [Thu, 15 May 2014 19:13:28 +0000 (20:13 +0100)]
Document behaviour when matching against multiple regular expressions.

10 years agoImplement and test multi-matching on strings.
Richard W.M. Jones [Thu, 15 May 2014 18:29:50 +0000 (19:29 +0100)]
Implement and test multi-matching on strings.

If the subprocess prints multiple matching strings, and you call
mexp_expect repeatedly, the code now does the right thing.

10 years agotests: Add 'make check-valgrind' to run test suite under valgrind.
Richard W.M. Jones [Sat, 26 Apr 2014 18:38:22 +0000 (19:38 +0100)]
tests: Add 'make check-valgrind' to run test suite under valgrind.

10 years agoFree handle storage.
Richard W.M. Jones [Sat, 26 Apr 2014 18:40:57 +0000 (19:40 +0100)]
Free handle storage.

Memory leak found by valgrind.

10 years agoconfigure: Move AC_USE_SYSTEM_EXTENSIONS to avoid autoconf warning.
Richard W.M. Jones [Sat, 26 Apr 2014 18:24:36 +0000 (19:24 +0100)]
configure: Move AC_USE_SYSTEM_EXTENSIONS to avoid autoconf warning.

10 years agotests: Add a test of running 'ls --version' and matching the output.
Richard W.M. Jones [Sat, 26 Apr 2014 17:53:15 +0000 (18:53 +0100)]
tests: Add a test of running 'ls --version' and matching the output.

10 years agotests: Accurately list sources of test-spawn program.
Richard W.M. Jones [Sat, 26 Apr 2014 17:33:21 +0000 (18:33 +0100)]
tests: Accurately list sources of test-spawn program.

10 years agoMinor updates to the manual page.
Richard W.M. Jones [Sat, 26 Apr 2014 16:37:18 +0000 (17:37 +0100)]
Minor updates to the manual page.

10 years agoclean: Remove miniexpect.3 if we have pod2man, otherwise leave it.
Richard W.M. Jones [Sat, 26 Apr 2014 11:03:55 +0000 (12:03 +0100)]
clean: Remove miniexpect.3 if we have pod2man, otherwise leave it.

10 years agoAdd a note about clearing the input buffer in mexp_expect.
Richard W.M. Jones [Sat, 26 Apr 2014 10:51:25 +0000 (11:51 +0100)]
Add a note about clearing the input buffer in mexp_expect.

10 years agominiexpect.h: Change the error codes again.
Richard W.M. Jones [Sat, 26 Apr 2014 10:50:33 +0000 (11:50 +0100)]
miniexpect.h: Change the error codes again.

No functional change (although it changes the ABI).

10 years agoAdd a man page.
Richard W.M. Jones [Sat, 26 Apr 2014 10:50:13 +0000 (11:50 +0100)]
Add a man page.

Move all the documentation from the header file to the man page.

10 years agominiexpect.h: Just some tidying up.
Richard W.M. Jones [Fri, 25 Apr 2014 21:41:14 +0000 (22:41 +0100)]
miniexpect.h: Just some tidying up.

10 years agomexp_expect: Change the expect API to allow multiple regexps.
Richard W.M. Jones [Fri, 25 Apr 2014 21:19:03 +0000 (22:19 +0100)]
mexp_expect: Change the expect API to allow multiple regexps.

10 years agoAdd miniexpect library.
Richard W.M. Jones [Fri, 25 Apr 2014 13:09:02 +0000 (14:09 +0100)]
Add miniexpect library.