* tests/test-mbmemcasecmp*.sh: Renamed 1 -> 2 -> 3 -> 4.
* tests/test-mbmemcasecmp.c: Update.
* modules/mbmemcasecmp-tests: Update.
2023-07-29 Bruno Haible <bruno@clisp.org>
+ mbmemcasecmp tests: Renumber tests.
+ * tests/test-mbmemcasecmp*.sh: Renamed 1 -> 2 -> 3 -> 4.
+ * tests/test-mbmemcasecmp.c: Update.
+ * modules/mbmemcasecmp-tests: Update.
+
fnmatch tests: Renumber tests.
* tests/test-fnmatch-w32-*.sh: Renamed 1 -> 2 -> 3 -> 5 -> 7 -> 4 -> 6
-> 8.
Files:
-tests/test-mbmemcasecmp1.sh
-tests/test-mbmemcasecmp2.sh
-tests/test-mbmemcasecmp3.sh
+tests/test-mbmemcasecmp-2.sh
+tests/test-mbmemcasecmp-3.sh
+tests/test-mbmemcasecmp-4.sh
tests/test-mbmemcasecmp.c
tests/test-mbmemcasecmp.h
tests/macros.h
gt_LOCALE_TR_UTF8
Makefile.am:
-TESTS += test-mbmemcasecmp1.sh test-mbmemcasecmp2.sh test-mbmemcasecmp3.sh
+TESTS += test-mbmemcasecmp-2.sh test-mbmemcasecmp-3.sh test-mbmemcasecmp-4.sh
TESTS_ENVIRONMENT += \
LOCALE_FR='@LOCALE_FR@' \
LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
--- /dev/null
+#!/bin/sh
+
+# Test in an ISO-8859-1 or ISO-8859-15 locale.
+: "${LOCALE_FR=fr_FR}"
+if test $LOCALE_FR = none; then
+ if test -f /usr/bin/localedef; then
+ echo "Skipping test: no traditional french locale is installed"
+ else
+ echo "Skipping test: no traditional french locale is supported"
+ fi
+ exit 77
+fi
+
+LC_ALL=$LOCALE_FR \
+${CHECKER} ./test-mbmemcasecmp${EXEEXT} 2
--- /dev/null
+#!/bin/sh
+
+# Test whether a specific UTF-8 locale is installed.
+: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
+if test $LOCALE_FR_UTF8 = none; then
+ if test -f /usr/bin/localedef; then
+ echo "Skipping test: no french Unicode locale is installed"
+ else
+ echo "Skipping test: no french Unicode locale is supported"
+ fi
+ exit 77
+fi
+
+LC_ALL=$LOCALE_FR_UTF8 \
+${CHECKER} ./test-mbmemcasecmp${EXEEXT} 3
--- /dev/null
+#!/bin/sh
+
+# Test whether a specific Turkish locale is installed.
+: "${LOCALE_TR_UTF8=tr_TR.UTF-8}"
+if test $LOCALE_TR_UTF8 = none; then
+ if test -f /usr/bin/localedef; then
+ echo "Skipping test: no turkish Unicode locale is installed"
+ else
+ echo "Skipping test: no turkish Unicode locale is supported"
+ fi
+ exit 77
+fi
+
+LC_ALL=$LOCALE_TR_UTF8 \
+${CHECKER} ./test-mbmemcasecmp${EXEEXT} 4
if (argc > 1)
switch (argv[1][0])
{
- case '1':
+ case '2':
/* Locale encoding is ISO-8859-1 or ISO-8859-15. */
test_iso_8859_1 (mbmemcasecmp, true);
return 0;
- case '2':
+ case '3':
/* Locale encoding is UTF-8, locale is not Turkish. */
test_utf_8 (mbmemcasecmp, false);
return 0;
- case '3':
+ case '4':
/* Locale encoding is UTF-8, locale is Turkish. */
test_utf_8 (mbmemcasecmp, true);
return 0;
+++ /dev/null
-#!/bin/sh
-
-# Test in an ISO-8859-1 or ISO-8859-15 locale.
-: "${LOCALE_FR=fr_FR}"
-if test $LOCALE_FR = none; then
- if test -f /usr/bin/localedef; then
- echo "Skipping test: no traditional french locale is installed"
- else
- echo "Skipping test: no traditional french locale is supported"
- fi
- exit 77
-fi
-
-LC_ALL=$LOCALE_FR \
-${CHECKER} ./test-mbmemcasecmp${EXEEXT} 1
+++ /dev/null
-#!/bin/sh
-
-# Test whether a specific UTF-8 locale is installed.
-: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
-if test $LOCALE_FR_UTF8 = none; then
- if test -f /usr/bin/localedef; then
- echo "Skipping test: no french Unicode locale is installed"
- else
- echo "Skipping test: no french Unicode locale is supported"
- fi
- exit 77
-fi
-
-LC_ALL=$LOCALE_FR_UTF8 \
-${CHECKER} ./test-mbmemcasecmp${EXEEXT} 2
+++ /dev/null
-#!/bin/sh
-
-# Test whether a specific Turkish locale is installed.
-: "${LOCALE_TR_UTF8=tr_TR.UTF-8}"
-if test $LOCALE_TR_UTF8 = none; then
- if test -f /usr/bin/localedef; then
- echo "Skipping test: no turkish Unicode locale is installed"
- else
- echo "Skipping test: no turkish Unicode locale is supported"
- fi
- exit 77
-fi
-
-LC_ALL=$LOCALE_TR_UTF8 \
-${CHECKER} ./test-mbmemcasecmp${EXEEXT} 3