You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
588 B
18 lines
588 B
6 years ago
|
--- 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
|