anthy/tests/basic/test.sh
Akira TAGOH 80d1caa5bc ci: migrate STI tests to tmt
Resolves: rhbz#2382857
2025-08-18 19:35:28 +09:00

14 lines
487 B
Bash
Executable file

#!/bin/bash
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
basedir=$(pwd)
. /usr/share/beakerlib/beakerlib.sh || exit 1
rlJournalStart
rlPhaseStartTest
rlRun "cat word.txt | iconv -f utf-8 -t euc-jp | anthy-dic-tool --load 0 "Registering a word to dict"
rlRun "anthy-dic-tool --dump | iconv -f euc-jp -t utf-8 | grep -v "#" | tee output" 0 "Dumping dict"
rlRun "diff -u word.txt output" 0 "Check difference"
rlPhaseEnd
rlJournalEnd