diff -ur -N -x find.info findutils-20080905.orig/locate/testsuite/Makefile.am findutils-20080905/locate/testsuite/Makefile.am --- findutils-20080905.orig/locate/testsuite/Makefile.am 2008-07-10 09:58:41.000000000 +0200 +++ findutils-20080905/locate/testsuite/Makefile.am 2008-08-02 13:02:34.000000000 +0200 @@ -17,6 +17,7 @@ locate.gnu/exists1.exp \ locate.gnu/exists2.exp \ locate.gnu/exists3.exp \ +locate.gnu/slocate.exp \ locate.gnu/notexists1.exp \ locate.gnu/notexists2.exp \ locate.gnu/notexists3.exp \ @@ -38,6 +39,7 @@ locate.gnu/exists1.xo \ locate.gnu/exists2.xo \ locate.gnu/exists3.xo \ +locate.gnu/slocate.xo \ locate.gnu/notexists1.xo \ locate.gnu/notexists2.xo \ locate.gnu/notexists3.xo \ diff -ur -N -x find.info findutils-20080905.orig/locate/testsuite/locate.gnu/slocate.exp findutils-20080905/locate/testsuite/locate.gnu/slocate.exp --- findutils-20080905.orig/locate/testsuite/locate.gnu/slocate.exp 1970-01-01 01:00:00.000000000 +0100 +++ findutils-20080905/locate/testsuite/locate.gnu/slocate.exp 2008-08-02 12:56:28.000000000 +0200 @@ -0,0 +1,8 @@ +# tests an slocate database, otherwise same as exists1. +set tmp "tmp" +exec rm -rf $tmp +exec mkdir $tmp +exec mkdir $tmp/subdir +exec touch $tmp/subdir/fred +locate_start p "--changecwd=. --output=$tmp/locatedb --dbformat=slocate --localpaths=tmp/subdir/" "--database=$tmp/locatedb -e fred 2>/dev/null" {} + diff -ur -N -x find.info findutils-20080905.orig/locate/testsuite/locate.gnu/slocate.xo findutils-20080905/locate/testsuite/locate.gnu/slocate.xo --- findutils-20080905.orig/locate/testsuite/locate.gnu/slocate.xo 1970-01-01 01:00:00.000000000 +0100 +++ findutils-20080905/locate/testsuite/locate.gnu/slocate.xo 2008-08-02 12:56:28.000000000 +0200 @@ -0,0 +1 @@ +tmp/subdir/fred