Fix mu_parseopt. Add testsuite for it.
* include/mailutils/opt.h (mu_parseopt) <po_permuted>: New member. * libmailutils/opt/help.c (print_option): Fix display of optional arguments. * libmailutils/opt/opt.c (next_opt,parse): Fix start-of-arguments index. Move permutation into a separate function. * libmailutils/opt/progname.c (mu_set_progname): Remove eventual lt- prefix. * libmailutils/tests/Makefile.am: Add new tests. * libmailutils/tests/parseopt.c: Use environment to control mu_parseopt flags. * libmailutils/tests/testsuite.at: Add new tests. * libmailutils/tests/strtoc.at: Update. * libmailutils/tests/parseopt00.at: New file. * libmailutils/tests/parseopt01.at: New file. * libmailutils/tests/parseopt02.at: New file. * libmailutils/tests/parseopt03.at: New file. * libmailutils/tests/parseopt04.at: New file. * libmailutils/tests/parseopt05.at: New file. * libmailutils/tests/parseopt06.at: New file. * libmailutils/tests/parseopt07.at: New file. * libmailutils/tests/parseopt08.at: New file. * libmailutils/tests/parseopt09.at: New file. * libmailutils/tests/parseopt10.at: New file. * libmailutils/tests/parseopt11.at: New file. * libmailutils/tests/parseopt12.at: New file. * libmailutils/tests/parseopt13.at: New file. * libmailutils/tests/parseopt14.at: New file. * libmailutils/tests/parseopt15.at: New file. * libmailutils/tests/parseopt16.at: New file. * libmailutils/tests/parseopt17.at: New file. * libmailutils/tests/parseopt18.at: New file. * libmailutils/tests/parseopt19.at: New file. * libmailutils/tests/parseopt20.at: New file. * libmailutils/tests/parseopt21.at: New file. * libmailutils/tests/parseopt22.at: New file.
Showing
31 changed files
with
925 additions
and
34 deletions
libmailutils/tests/parseopt00.at
0 → 100644
libmailutils/tests/parseopt01.at
0 → 100644
libmailutils/tests/parseopt02.at
0 → 100644
libmailutils/tests/parseopt03.at
0 → 100644
libmailutils/tests/parseopt04.at
0 → 100644
libmailutils/tests/parseopt05.at
0 → 100644
libmailutils/tests/parseopt06.at
0 → 100644
libmailutils/tests/parseopt07.at
0 → 100644
libmailutils/tests/parseopt08.at
0 → 100644
libmailutils/tests/parseopt09.at
0 → 100644
libmailutils/tests/parseopt10.at
0 → 100644
libmailutils/tests/parseopt11.at
0 → 100644
libmailutils/tests/parseopt12.at
0 → 100644
libmailutils/tests/parseopt13.at
0 → 100644
libmailutils/tests/parseopt14.at
0 → 100644
libmailutils/tests/parseopt15.at
0 → 100644
libmailutils/tests/parseopt16.at
0 → 100644
libmailutils/tests/parseopt17.at
0 → 100644
libmailutils/tests/parseopt18.at
0 → 100644
libmailutils/tests/parseopt19.at
0 → 100644
libmailutils/tests/parseopt20.at
0 → 100644
libmailutils/tests/parseopt21.at
0 → 100644
libmailutils/tests/parseopt22.at
0 → 100644
-
Please register or sign in to post a comment