Namazu-devel-ja(旧)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
(2.0.5-rc3) namazu-9 and namazu-cgi-4 fail
> 千葉市中央区長洲
> 藤原 誠
NetBSD/macppc -1.5E でも、同様に
namazu-9 と namazu-cgi4 が FAIL しました。
どうすればいいのかはまだ分らないのですが、namazu-9 の方は
どうも tests 自体の問題の気がします。
(それとも libnmz.so の参照の問題 ?)
○次のように make check が終ったすぐ後に、
PASS: idxdiff-3
../nmz/.libs/libnmz.so: warning: reference to compatibility setlocale(); include <locale.h> for correct reference
PASS: namazu-1
PASS: namazu-2
PASS: namazu-3
PASS: namazu-4
PASS: namazu-5
PASS: namazu-6
PASS: namazu-7
PASS: namazu-8
FAIL: namazu-9
../nmz/.libs/libnmz.so: warning: reference to compatibility setlocale(); include <locale.h> for correct reference
PASS: namazu-cgi-1
PASS: namazu-cgi-2
PASS: namazu-cgi-3
FAIL: namazu-cgi-4
====================
2 of 27 tests failed
====================
*** Error code 1
○ sh -xv namazu-9 を実行すると、添付 1 のようになるので、
その中から、文字を拾って、次のようにすると、namazu 自体は、
正しく(namazu-9 の期待通りに)動いていると思うからです。
makoto@harry ■22:11:02/001017(...namazu-2.0.5/tests)> setenv LANG C
makoto@harry ■22:18:03/001017(...namazu-2.0.5/tests)> ../src/namazu -f /amd/komekome/export/making-macppc/namazu-2.0.5/tests/tmp foo /amd/komekome/export/making-macppc/namazu-2.0.5/tests/idx8
Results:
References: [ (Too many documents hit. Ignored) ]
No document matching your query.
(これで、namazu の方は正しく動作していますよね)
○更に 添付 2 のように shell script を作って動かして見ても、
これは期待通りに動いている気がします。
warning: の行の字は、時々見かけるので、問題ではないと思います。
---
(藤原)
makoto@harry ■22:10:05/001017(...namazu-2.0.5/tests)> sh -xv namazu-9
#! /bin/sh
#
# Test for namazu. with MaxHit, MaxMatch.
#
LOG=`pwd`/test-log
+ pwd
+ LOG=/amd/komekome/export/making-macppc/namazu-2.0.5/tests/test-log
TMP=`pwd`/tmp
+ pwd
+ TMP=/amd/komekome/export/making-macppc/namazu-2.0.5/tests/tmp
IDX=`pwd`/idx8
+ pwd
+ IDX=/amd/komekome/export/making-macppc/namazu-2.0.5/tests/idx8
MSG1='Too many documents hit. Ignored'
+ MSG1=Too many documents hit. Ignored
MSG2='Too many words matched. Ignored'
+ MSG2=Too many words matched. Ignored
# To make messages English
unset LANG
+ unset LANG
unset LANGUAGE
+ unset LANGUAGE
unset LC_ALL
+ unset LC_ALL
unset LC_MESSAGES
+ unset LC_MESSAGES
cd ../src
+ cd ../src
# Tests for MaxHit.
# foo => 1 page indexed.
# bar => 2 page indexed.
# baz => 3 page indexed.
echo "MaxHit 0" > $TMP
+ echo MaxHit 0
./namazu -f $TMP 'foo' $IDX | grep "$MSG1" > /dev/null || exit 1
+ ./namazu -f /amd/komekome/export/making-macppc/namazu-2.0.5/tests/tmp foo /amd/komekome/export/making-macppc/namazu-2.0.5/tests/idx8
+ grep Too many documents hit. Ignored
+ exit 1
#!/bin/sh
LANG=
MSG1='Too many documents hit. Ignored'
TMP=tmp
IDX=idx8
echo "MaxHit 0" > $TMP
../src/namazu -f $TMP 'foo' $IDX
../src/namazu -f $TMP 'foo' $IDX |grep "$MSG1"
../src/namazu -f $TMP 'foo' $IDX |grep "$MSG1" >/dev/null || echo Failed
makoto@harry ■22:24:03/001017(...namazu-2.0.5/tests)> sh -xv ~/prep/namazu-9-test
#!/bin/sh
LANG=
+ LANG=
MSG1='Too many documents hit. Ignored'
+ MSG1=Too many documents hit. Ignored
TMP=tmp
+ TMP=tmp
IDX=idx8
+ IDX=idx8
echo "MaxHit 0" > $TMP
+ echo MaxHit 0
../src/namazu -f $TMP 'foo' $IDX
+ ../src/namazu -f tmp foo idx8
Results:
References: [ (Too many documents hit. Ignored) ]
No document matching your query.
../src/namazu -f $TMP 'foo' $IDX |grep "$MSG1"
+ ../src/namazu -f tmp foo idx8
+ grep Too many documents hit. Ignored
References: [ (Too many documents hit. Ignored) ]
../src/namazu -f $TMP 'foo' $IDX |grep "$MSG1" >/dev/null || echo Failed
+ ../src/namazu+ grep -f Too many documents hit. Ignored tmp
foo idx8
makoto@harry ■22:24:10/001017(...namazu-2.0.5/tests)>