1#! /bin/sh
2
3# default.sh: test the default behaviour.
4
5# Import common functions & definitions.
6. ../../common/test-common
7
8cleanup () {
9    for prefix in s p z l
10    do
11	remove ${prefix}.foo
12    done
13    remove command.log foo
14}
15
16cleanup
17
18# Create files
19docommand dprs1 "${admin} -i/dev/null -n s.foo" 0 "" IGNORE
20docommand dprs2 "${get} -e s.foo" 0 IGNORE IGNORE
21docommand dprs3 "${delta} -yNone s.foo" 0 IGNORE IGNORE
22
23# With -d, processing stops after the first match.
24docommand dprs4 "${vg_prs} -d':M:-:I:\n' s.foo" 0 "foo-1.2\n" ""
25
26# Without -d, by default processing includes all deltas.
27docommand dprs5 "${vg_prs} s.foo | grep -c '^D'" 0 "2\n" IGNORE
28
29cleanup
30