File: rcsinit.at

package info (click to toggle)
rcs-blame 1.4%2B20240206-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,816 kB
  • sloc: ansic: 15,922; sh: 10,108; makefile: 399; yacc: 389; lex: 156
file content (33 lines) | stat: -rw-r--r-- 936 bytes parent folder | download | duplicates (6)
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
30
31
32
33
AT_BANNER([[RCSINIT environment variable support.]])

AT_SETUP([Empty RCSINIT])
AT_KEYWORDS([rcsinit])
AT_KEYWORDS([rev])
AT_KEYWORDS([state])
cp $testdir/complex-3.4.expout expout
cp $testdir/complex.experr experr
AT_CHECK([[RCSINIT= blame -r3.4 -sA $testdir/complex,v]], 0, expout, experr)
AT_CLEANUP

AT_SETUP([RCSINIT with options])
AT_KEYWORDS([rcsinit])
AT_KEYWORDS([rev])
AT_KEYWORDS([state])
cp $testdir/complex-3.4.expout expout
cp $testdir/complex.experr experr
AT_CHECK([[RCSINIT='-r3.4 -sA' blame $testdir/complex,v]], 0, expout, experr)
AT_CLEANUP

AT_SETUP([RCSINIT with invalid options])
AT_KEYWORDS([rcsinit])
AT_KEYWORDS([errors])
AT_CHECK([[RCSINIT='--foo' blame]], 1, , stderr)
MAC_CHECK_STDERR
AT_CLEANUP

AT_SETUP([RCSINIT with a filename])
AT_KEYWORDS([rcsinit])
cp $testdir/complex-3.8.expout expout
cp $testdir/complex.experr experr
AT_CHECK([[RCSINIT="$testdir/complex,v" blame]], 0, expout, experr)
AT_CLEANUP