bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

fnmatch tests: Add many more test cases


From: Bruno Haible
Subject: fnmatch tests: Add many more test cases
Date: Sun, 23 Jul 2023 01:49:16 +0200

Before touching the 'fnmatch' implementation in any way, I need a reasonable
test coverage for this code. Therefore I'm adding many more test case.

I'm *not* adding test cases for patterns such as "[[.ch.]]" (collating elements)
and "[[=a=]]" (equivalence classes), because AFAIU the replacement in gnulib
cannot support (or does not support?) them.


2023-07-22  Bruno Haible  <bruno@clisp.org>

        fnmatch tests: Add many more test cases.
        * lib/fnmatch.in.h (GNULIB_defined_fnmatch_function): New macro.
        * tests/test-fnmatch.c: Add many more test cases.
        * tests/test-fnmatch-1.sh: New file, based on tests/test-mbrtoc32-5.sh.
        * tests/test-fnmatch-2.sh: New file, based on tests/test-mbrtoc32-1.sh.
        * tests/test-fnmatch-3.sh: New file, based on tests/test-mbrtoc32-2.sh.
        * tests/test-fnmatch-4.sh: New file, based on tests/test-mbrtoc32-3.sh.
        * tests/test-fnmatch-5.sh: New file, based on tests/test-mbrtoc32-4.sh.
        * tests/test-fnmatch-w32.c: New file, based on tests/test-mbrtoc32-w32.c
        and tests/test-fnmatch.c.
        * tests/test-fnmatch-w32-1.sh: New file, based on
        tests/test-mbrtoc32-w32-1.sh.
        * tests/test-fnmatch-w32-2.sh: New file, based on
        tests/test-mbrtoc32-w32-2.sh.
        * tests/test-fnmatch-w32-3.sh: New file, based on
        tests/test-mbrtoc32-w32-3.sh.
        * tests/test-fnmatch-w32-4.sh: New file, based on
        tests/test-mbrtoc32-w32-4.sh.
        * tests/test-fnmatch-w32-5.sh: New file, based on
        tests/test-mbrtoc32-w32-5.sh.
        * tests/test-fnmatch-w32-6.sh: New file, based on
        tests/test-mbrtoc32-w32-6.sh.
        * tests/test-fnmatch-w32-7.sh: New file, based on
        tests/test-mbrtoc32-w32-7.sh.
        * modules/fnmatch-tests: Add the new program and shell scripts.

Attachment: 0001-fnmatch-tests-Add-many-more-test-cases.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]