removed broken orphaned ebuilds
[booboo.git] / app-text / sdcv / files / sdcv-0.5.3-t_list.patch
blobc26a93522bd161fa3ad3ca9c3b8d08f91e721f83
1 diff --git a/tests/t_list b/tests/t_list
2 index a8c92c4..c410cf2 100755
3 --- a/tests/t_list
4 +++ b/tests/t_list
5 @@ -1,11 +1,10 @@
6 #!/bin/sh
8 PATH_TO_SDCV="$1"
9 -ndicts=`"$PATH_TO_SDCV" -l | wc -l`
10 +TEST_DIR="$2"
11 +ndicts=`"$PATH_TO_SDCV" --data-dir "${TEST_DIR}" -l | wc -l`
12 ndicts=$(($ndicts-1))
13 -ncom=`find /usr/share/stardict/dic -name "*.ifo" | wc -l`
14 -nspe=`find "${XDG_DATA_HOME:-$HOME/.local/share}"/stardict/dic -name "*.ifo" | wc -l`
15 -nmy=$(($ncom+$nspe))
16 +nmy=`find "${TEST_DIR}" -name "*.ifo" | wc -l`
18 if [ $nmy -ne $ndicts ]; then
19 echo "should be: $nmy, we have: $ndicts" >&2