nkf/tests/runtest.sh
Petr Šabata feae73d996 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/nkf#58585b26921ee612de429601982d7c87b627f51a
2020-10-15 21:08:16 +02:00

19 lines
176 B
Bash

#! /bin/sh
set -e
q="テスト"
res=$(echo $q | nkf -W -e | nkf -w -E)
ret=1
if [ x$q = x$res ]; then
ret=0
mes="PASS"
else
ret=1
mes="FAIL"
fi
echo $mes
exit $ret