view tests/test-mbmemcasecmp3.sh @ 40145:5b5be594d7f9

localename tests: Fix test failure on Android. * modules/localename-tests (Depends-on): Add 'setlocale'.
author Bruno Haible <bruno@clisp.org>
date Sat, 26 Jan 2019 23:40:44 +0100
parents ffc2866b4f39
children 8c1a17df67e0
line wrap: on
line source

#!/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 \
./test-mbmemcasecmp${EXEEXT} 3