File: default.sh

package info (click to toggle)
cssc 1.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 11,368 kB
  • sloc: cpp: 39,446; ansic: 17,403; sh: 11,328; python: 3,923; makefile: 1,929; perl: 342; awk: 15; sed: 15
file content (29 lines) | stat: -rw-r--r-- 666 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#! /bin/sh

# default.sh: test the default behaviour.

# Import common functions & definitions.
. ../common/test-common

cleanup () {
    for prefix in s p z l
    do
	remove ${prefix}.foo
    done
    remove command.log foo
}

cleanup

# Create files
docommand dprs1 "${admin} -i/dev/null -n s.foo" 0 "" IGNORE
docommand dprs2 "${get} -e s.foo" 0 IGNORE IGNORE
docommand dprs3 "${delta} -yNone s.foo" 0 IGNORE IGNORE

# With -d, processing stops after the first match.
docommand dprs4 "${vg_prs} -d':M:-:I:\n' s.foo" 0 "foo-1.2\n" ""

# Without -d, by default processing includes all deltas.
docommand dprs5 "${vg_prs} s.foo | grep -c '^D'" 0 "2\n" IGNORE

cleanup