diff -ur -N findutils-4.4.0.orig/locate/testsuite/Makefile.am findutils-4.4.0/locate/testsuite/Makefile.am --- findutils-4.4.0.orig/locate/testsuite/Makefile.am 2007-06-09 19:51:41.000000000 +0200 +++ findutils-4.4.0/locate/testsuite/Makefile.am 2008-03-25 00:41:06.000000000 +0100 @@ -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 \ @@ -35,6 +37,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 findutils-4.4.0.orig/locate/testsuite/locate.gnu/relpath.exp findutils-4.4.0/locate/testsuite/locate.gnu/relpath.exp --- findutils-4.4.0.orig/locate/testsuite/locate.gnu/relpath.exp 1970-01-01 01:00:00.000000000 +0100 +++ findutils-4.4.0/locate/testsuite/locate.gnu/relpath.exp 2006-10-18 20:19:13.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 findutils-4.4.0.orig/locate/testsuite/locate.gnu/relpath.xo findutils-4.4.0/locate/testsuite/locate.gnu/relpath.xo --- findutils-4.4.0.orig/locate/testsuite/locate.gnu/relpath.xo 1970-01-01 01:00:00.000000000 +0100 +++ findutils-4.4.0/locate/testsuite/locate.gnu/relpath.xo 2006-10-15 22:23:39.000000000 +0200 @@ -0,0 +1 @@ +./tmp/subdir/fred diff -ur -N findutils-4.4.0.orig/locate/testsuite/locate.gnu/relpath1.exp findutils-4.4.0/locate/testsuite/locate.gnu/relpath1.exp --- findutils-4.4.0.orig/locate/testsuite/locate.gnu/relpath1.exp 1970-01-01 01:00:00.000000000 +0100 +++ findutils-4.4.0/locate/testsuite/locate.gnu/relpath1.exp 2008-03-25 00:52:58.000000000 +0100 @@ -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 findutils-4.4.0.orig/locate/testsuite/locate.gnu/relpath1.xo findutils-4.4.0/locate/testsuite/locate.gnu/relpath1.xo --- findutils-4.4.0.orig/locate/testsuite/locate.gnu/relpath1.xo 1970-01-01 01:00:00.000000000 +0100 +++ findutils-4.4.0/locate/testsuite/locate.gnu/relpath1.xo 2006-10-15 22:23:39.000000000 +0200 @@ -0,0 +1 @@ +./tmp/subdir/fred