14 lines
487 B
Bash
Executable file
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
|