summaryrefslogtreecommitdiff
blob: 8bd23892fc7a8fa10eeb58771b77215d091d92b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- sdcv-0.5.2/tests/t_list.orig	2017-08-16 10:14:23.000000000 +0300
+++ sdcv-0.5.2/tests/t_list	2018-08-26 15:12:31.501052398 +0300
@@ -1,11 +1,10 @@
 #!/bin/sh
 
 PATH_TO_SDCV="$1"
-ndicts=`"$PATH_TO_SDCV" -l | wc -l`
+TEST_DIR="$2"
+ndicts=`"$PATH_TO_SDCV" --data-dir "${TEST_DIR}" -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))
+nmy=`find "${TEST_DIR}" -name "*.ifo" | wc -l`
 
 if [ $nmy -ne $ndicts ]; then
 	echo "should be: $nmy, we have: $ndicts" >&2