mirror of
https://github.com/Dushistov/sdcv.git
synced 2025-12-16 01:41:55 +00:00
remove autotools stuff, now sdcv uses cmake
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
#noinst_PROGRAMS = validate_stardict normalize
|
||||
|
||||
#validate_stardict_SOURCES = validate_stardict.cpp
|
||||
SUBDIRS = stardict-test_dict-2.4.2
|
||||
|
||||
LDADD = @MAKEDICT_LIBS@
|
||||
INCLUDES = @MAKEDICT_CFLAGS@ -I$(top_builddir) -I$(top_builddir)/src
|
||||
|
||||
SH_TESTS = \
|
||||
t_list t_use t_interactive \
|
||||
t_utf8output t_utf8input \
|
||||
t_datadir
|
||||
|
||||
TESTS=$(SH_TESTS)
|
||||
EXTRA_DIST=$(SH_TESTS)
|
||||
@@ -1 +0,0 @@
|
||||
EXTRA_DIST=test_dict.dict test_dict.idx test_dict.ifo
|
||||
@@ -1,10 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
PATH_TO_SDCV="$1"
|
||||
|
||||
unset SDCV_PAGER
|
||||
have=`../src/sdcv --data-dir ./ -l | wc -l`
|
||||
have=`"$PATH_TO_SDCV" --data-dir /tmp/bugagaga -l | wc -l`
|
||||
#do not count header
|
||||
have=$(($have-1))
|
||||
ndicts=`find "${HOME}"/.stardict/dic -name "*.ifo" -print | wc -l`
|
||||
ndicts=$(($ndicts+1))
|
||||
#ndicts=$(($ndicts+1))
|
||||
if [ $have -ne $ndicts ]; then
|
||||
ndicts=$(($ndicts-1))
|
||||
echo "test failed: sdcv says: we have: $have, but really we have: $ndicts" >&2
|
||||
|
||||
@@ -1,6 +1,14 @@
|
||||
#!/bin/sh
|
||||
# check that in not-interactive mode sdcv not wait any input
|
||||
|
||||
../src/sdcv -n >/dev/null 2>&1 &
|
||||
PATH_TO_SDCV="$1"
|
||||
|
||||
if test ! -x "$PATH_TO_SDCV"; then
|
||||
echo "Can not find sdcv binary $1" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
"$PATH_TO_SDCV" -n >/dev/null 2>&1 &
|
||||
PID=$!
|
||||
sleep 1
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
ndicts=`../src/sdcv -l | wc -l`
|
||||
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`
|
||||
@@ -10,3 +11,5 @@ if [ $nmy -ne $ndicts ]; then
|
||||
echo "should be: $nmy, we have: $ndicts" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
cp -R stardict-test_dict-2.4.2 "${HOME}"/.stardict/dic
|
||||
PATH_TO_SDCV="$1"
|
||||
TESTS_DIR="$2"
|
||||
|
||||
cp -R "${TESTS_DIR}/stardict-test_dict-2.4.2" "${HOME}"/.stardict/dic
|
||||
unset SDCV_PAGER
|
||||
RES=`../src/sdcv -n -u test_dict test | grep "test passed"`
|
||||
RES=`"$PATH_TO_SDCV" -n -u test_dict test | grep "test passed"`
|
||||
|
||||
if [ -z "$RES" ]; then
|
||||
echo "we didn't find in stardict-test_dict-2.4.2 "test" keyword, something wrong" >&2
|
||||
|
||||
@@ -3,12 +3,14 @@
|
||||
# make sure that you have not small Russian dictionary, like mueller 7 GPL
|
||||
# or replace человек by something else
|
||||
|
||||
PATH_TO_SDCV="$1"
|
||||
|
||||
unset SDCV_PAGER
|
||||
export LANG=ru_RU.KOI8-R
|
||||
IFS="
|
||||
"
|
||||
j=0
|
||||
for i in `../src/sdcv --utf8-input -n человек 2>&1`; do
|
||||
for i in `"$PATH_TO_SDCV" --utf8-input -n человек 2>&1`; do
|
||||
j=$(($j+1))
|
||||
if [ $j -ne 1 ]; then
|
||||
break;
|
||||
|
||||
@@ -3,7 +3,14 @@
|
||||
export LANG=ru_RU.KOI8-R
|
||||
unset SDCV_PAGER
|
||||
|
||||
if ! ../src/sdcv -n --utf8-output man | tail -n -1 | iconv -f utf-8 -t utf-8 >/dev/null; then
|
||||
PATH_TO_SDCV="$1"
|
||||
|
||||
if test ! -x "$PATH_TO_SDCV"; then
|
||||
echo "Can not find sdcv binary $1" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! "$PATH_TO_SDCV" -n --utf8-output man | tail -n -1 | iconv -f utf-8 -t utf-8 >/dev/null; then
|
||||
echo "utf8 output didn't work" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user