Files
sdcv/tests/t_list
Evgeniy Dushistov 9121ccf20e Import Michal Čihař ( nijel ) patch:
Tescases fail with POSIX /bin/sh, attached patch fixes it
2010-08-01 20:42:04 +00:00

13 lines
290 B
Bash
Executable File

#!/bin/sh
ndicts=`../src/sdcv -l | wc -l`
ndicts=$(($ndicts-1))
ncom=`find /usr/share/stardict/dic -name "*.ifo" | wc -l`
nspe=`find "${HOME}"/.stardict/dic -name "*.ifo" | wc -l`
nmy=$(($ncom+$nspe))
if [ $nmy -ne $ndicts ]; then
echo "should be: $nmy, we have: $ndicts" >&2
exit 1
fi