|
a/tests/delete/delete.sh |
|
b/tests/delete/delete.sh |
|
... |
|
... |
8 |
tstfile=${tstdata}/delete/tobedeleted.txt
|
8 |
tstfile=${tstdata}/delete/tobedeleted.txt
|
9 |
|
9 |
|
10 |
# Create file to be deleted, index, query
|
10 |
# Create file to be deleted, index, query
|
11 |
echo "DeletedFileUnique" > $tstfile
|
11 |
echo "DeletedFileUnique" > $tstfile
|
12 |
recollindex >> $mystderr 2>&1
|
12 |
recollindex >> $mystderr 2>&1
|
13 |
recollq DeletedFileUnique > $mystdout 2> $mystderr
|
13 |
recollq DeletedFileUnique 2> $mystderr |
|
|
|
14 |
egrep -v '^Recoll query: ' > $mystdout
|
14 |
|
15 |
|
15 |
# Delete file and query again
|
16 |
# Delete file and query again
|
16 |
rm -f ${tstdata}/delete/tobedeleted.txt
|
17 |
rm -f ${tstdata}/delete/tobedeleted.txt
|
17 |
recollindex >> $mystderr 2>&1
|
18 |
recollindex >> $mystderr 2>&1
|
18 |
recollq DeletedFileUnique >> $mystdout 2>> $mystderr
|
19 |
recollq DeletedFileUnique 2>> $mystderr |
|
|
|
20 |
egrep -v '^Recoll query: ' >> $mystdout
|
19 |
|
21 |
|
20 |
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
22 |
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
21 |
|
23 |
|
22 |
checkresult
|
24 |
checkresult
|