Imported Upstream version 4.5.14
[platform/upstream/findutils.git] / locate / testsuite / locate.gnu / oldformat.exp
1 # A basic test for the old database format.  We need this test because (among
2 # other reasons) the updatedb script only uses our mktemp replacement when
3 # it needs to run bigram/code.
4 set tmp "tmp"
5 exec rm -rf $tmp
6 exec mkdir $tmp
7 exec mkdir $tmp/subdir
8 exec touch $tmp/subdir/fred
9 # Redirect stderr to /dev/null to throw away the warning message about using
10 # the old format, because otherwise the presence of the error message would
11 # cause locate_start to signal a test case failure.
12 locate_start p "--changecwd=. --output=$tmp/locatedb --old-format  --localpaths=tmp/subdir/ 2>/dev/null" "--database=$tmp/locatedb -e fred" {}