1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2026-10-24 00:48:56 +03:00
Files
gnulib/tests/test-strtof1.sh
Bruno Haible 471a569528 strtof: Add tests.
* tests/test-strtof.c: New file, based on tests/test-strtod.c.
* tests/test-strtof1.sh: New file, based on tests/test-strtod1.sh.
* tests/test-strtof1.c: New file, based on tests/test-strtod1.c.
* modules/strtof-tests: New file, based on modules/strtod-tests.
2024-02-22 01:27:30 +01:00

31 lines
674 B
Bash
Executable File

#!/bin/sh
: "${LOCALE_FR=fr_FR}"
: "${LOCALE_FR_UTF8=fr_FR.UTF-8}"
if test $LOCALE_FR = none && test $LOCALE_FR_UTF8 = none; then
if test -f /usr/bin/localedef; then
echo "Skipping test: no locale for testing is installed"
else
echo "Skipping test: no locale for testing is supported"
fi
exit 77
fi
if $LC_NUMERIC_IMPLEMENTED; then
:
else
echo "Skipping test: LC_NUMERIC category of locales is not implemented"
exit 77
fi
if test $LOCALE_FR != none; then
LC_ALL=$LOCALE_FR ${CHECKER} ./test-strtof1${EXEEXT} || exit 1
fi
if test $LOCALE_FR_UTF8 != none; then
LC_ALL=$LOCALE_FR_UTF8 ${CHECKER} ./test-strtof1${EXEEXT} || exit 1
fi
exit 0