Blame gnulib-tests/test-setlocale1.sh

Packit Service fdd496
#!/bin/sh
Packit Service fdd496
Packit Service fdd496
: ${LOCALE_FR=fr_FR}
Packit Service fdd496
: ${LOCALE_FR_UTF8=fr_FR.UTF-8}
Packit Service fdd496
: ${LOCALE_JA=ja_JP}
Packit Service fdd496
: ${LOCALE_ZH_CN=zh_CN.GB18030}
Packit Service fdd496
Packit Service fdd496
if test $LOCALE_FR = none && test $LOCALE_FR_UTF8 = none \
Packit Service fdd496
   && test $LOCALE_JA = none && test $LOCALE_ZH_CN = none; then
Packit Service fdd496
  if test -f /usr/bin/localedef; then
Packit Service fdd496
    echo "Skipping test: no locale for testing is installed"
Packit Service fdd496
  else
Packit Service fdd496
    echo "Skipping test: no locale for testing is supported"
Packit Service fdd496
  fi
Packit Service fdd496
  exit 77
Packit Service fdd496
fi
Packit Service fdd496
Packit Service fdd496
if test $LOCALE_FR != none; then
Packit Service fdd496
  LC_ALL=$LOCALE_FR      ./test-setlocale1${EXEEXT} || exit 1
Packit Service fdd496
fi
Packit Service fdd496
Packit Service fdd496
if test $LOCALE_FR_UTF8 != none; then
Packit Service fdd496
  LC_ALL=$LOCALE_FR_UTF8 ./test-setlocale1${EXEEXT} || exit 1
Packit Service fdd496
fi
Packit Service fdd496
Packit Service fdd496
if test $LOCALE_JA != none; then
Packit Service fdd496
  LC_ALL=$LOCALE_JA      ./test-setlocale1${EXEEXT} || exit 1
Packit Service fdd496
fi
Packit Service fdd496
Packit Service fdd496
if test $LOCALE_ZH_CN != none; then
Packit Service fdd496
  LC_ALL=$LOCALE_ZH_CN   ./test-setlocale1${EXEEXT} || exit 1
Packit Service fdd496
fi
Packit Service fdd496
Packit Service fdd496
exit 0