summaryrefslogtreecommitdiff
path: root/tests/t_list
blob: 3518731184553704af214bbf48058fadfa1e5df8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

PATH_TO_SDCV="$1"
ndicts=`"$PATH_TO_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

exit 0