bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

updatedb testsuite bug


From: Eric Blake
Subject: updatedb testsuite bug
Date: Wed, 31 Aug 2005 21:48:35 +0000

The testsuite for updatedb currently breaks if find and frcode are
not installed relative to $BINDIR, where BINDIR defaults to @bindir@
from ./configure.

Using /home/eblake/findutils/locate/testsuite/config/unix.exp as 
tool-and-target-specific interface file.
Running /home/eblake/findutils/locate/testsuite/locate.gnu/exists1.exp ...
FAIL: exists1, child process exited abnormally
Running /home/eblake/findutils/locate/testsuite/locate.gnu/exists2.exp ...
FAIL: exists2, child process exited abnormally
Running /home/eblake/findutils/locate/testsuite/locate.gnu/exists3.exp ...
FAIL: exists3, child process exited abnormally
Running /home/eblake/findutils/locate/testsuite/locate.gnu/ignore_case1.exp ...
FAIL: ignore_case1, child process exited abnormally
Running /home/eblake/findutils/locate/testsuite/locate.gnu/ignore_case2.exp ...
Running /home/eblake/findutils/locate/testsuite/locate.gnu/ignore_case3.exp ...
FAIL: ignore_case3, child process exited abnormally
Running /home/eblake/findutils/locate/testsuite/locate.gnu/notexists1.exp ...
Running /home/eblake/findutils/locate/testsuite/locate.gnu/notexists2.exp ...
FAIL: notexists2, child process exited abnormally
Running /home/eblake/findutils/locate/testsuite/locate.gnu/notexists3.exp ...
FAIL: notexists3, child process exited abnormally
Running /home/eblake/findutils/locate/testsuite/locate.gnu/regex1.exp ...

                === locate Summary ===

# of expected passes            10
# of unexpected failures        7
/home/eblake/findutils/locate/testsuite/../locate version 4.3.0-CVSFTS

Looking closer at exists1.exp, it tries to invoke the following for
the default ./configure --prefix=/usr/local:

$  ~/findutils/locate/updatedb --changecwd=. --output=tmp/locatedb 
--localpaths=tmp/subdir/ 
/home/eblake/findutils/locate/updatedb: line 203: /usr/local/bin/find: No such 
file or directory
/home/eblake/findutils/locate/updatedb: line 222: /usr/local/libexec/frcode: No 
such file or directory
Failed to generate tmp/locatedb.n

It would be nicer if the testsuite could guarantee that when testing
an uninstalled just-built locate, that updatedb attempts
to use the just-built versions of find and frcode, rather than falling back
on installed versions.  This may take some work to the testsuite
and/or updatedb, since setting $BINDIR to findutils/find will not see
the same directory structure as setting it to ${exec-prefix}/bin.

--
Eric Blake




reply via email to

[Prev in Thread] Current Thread [Next in Thread]