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-08-02 13:02:34.000000000 +0200 +++ findutils-20080905/locate/testsuite/Makefile.am 2008-08-02 13:07:38.000000000 +0200 @@ -14,6 +14,8 @@ locate.gnu/ignore_case3.exp \ locate.gnu/bigprefix1.exp \ locate.gnu/regex1.exp \ +locate.gnu/relpath.exp \ +locate.gnu/relpath1.exp \ locate.gnu/exists1.exp \ locate.gnu/exists2.exp \ locate.gnu/exists3.exp \ @@ -36,6 +38,8 @@ locate.gnu/ignore_case1.xo \ locate.gnu/ignore_case2.xo \ locate.gnu/ignore_case3.xo \ +locate.gnu/relpath.xo \ +locate.gnu/relpath1.xo \ locate.gnu/exists1.xo \ locate.gnu/exists2.xo \ locate.gnu/exists3.xo \ diff -ur -N -x find.info findutils-20080905.orig/locate/testsuite/locate.gnu/relpath.exp findutils-20080905/locate/testsuite/locate.gnu/relpath.exp --- findutils-20080905.orig/locate/testsuite/locate.gnu/relpath.exp 1970-01-01 01:00:00.000000000 +0100 +++ findutils-20080905/locate/testsuite/locate.gnu/relpath.exp 2008-08-02 13:07:38.000000000 +0200 @@ -0,0 +1,7 @@ +# tests a database with relative paths +set tmp "tmp" +exec rm -rf $tmp +exec mkdir $tmp +exec mkdir $tmp/subdir +exec touch $tmp/subdir/fred +locate_start p {--relpath=tmp --localpaths=./subdir} {--database=./tmp/.locatedb fred joe} {} diff -ur -N -x find.info findutils-20080905.orig/locate/testsuite/locate.gnu/relpath.xo findutils-20080905/locate/testsuite/locate.gnu/relpath.xo --- findutils-20080905.orig/locate/testsuite/locate.gnu/relpath.xo 1970-01-01 01:00:00.000000000 +0100 +++ findutils-20080905/locate/testsuite/locate.gnu/relpath.xo 2008-08-02 13:07:38.000000000 +0200 @@ -0,0 +1 @@ +./tmp/subdir/fred diff -ur -N -x find.info findutils-20080905.orig/locate/testsuite/locate.gnu/relpath1.exp findutils-20080905/locate/testsuite/locate.gnu/relpath1.exp --- findutils-20080905.orig/locate/testsuite/locate.gnu/relpath1.exp 1970-01-01 01:00:00.000000000 +0100 +++ findutils-20080905/locate/testsuite/locate.gnu/relpath1.exp 2008-08-02 13:07:38.000000000 +0200 @@ -0,0 +1,7 @@ +# tests an slocate database with relative paths +set tmp "tmp" +exec rm -rf $tmp +exec mkdir $tmp +exec mkdir $tmp/subdir +exec touch $tmp/subdir/fred +locate_start p {--relpath=tmp --dbformat=slocate --localpaths=./subdir} {--database=./tmp/.locatedb fred joe 2>/dev/null} {} diff -ur -N -x find.info findutils-20080905.orig/locate/testsuite/locate.gnu/relpath1.xo findutils-20080905/locate/testsuite/locate.gnu/relpath1.xo --- findutils-20080905.orig/locate/testsuite/locate.gnu/relpath1.xo 1970-01-01 01:00:00.000000000 +0100 +++ findutils-20080905/locate/testsuite/locate.gnu/relpath1.xo 2008-08-02 13:07:38.000000000 +0200 @@ -0,0 +1 @@ +./tmp/subdir/fred