Debian Codegraph @

tests/t510

raw
1 # t510 --- ci -i
2 #
3 # Copyright (C) 2010-2022 Thien-Thi Nguyen
4 #
5 # This program is free software: you can redistribute it and/or
6 # modify it under the terms of the GNU General Public License as
7 # published by the Free Software Foundation, either version 3 of
8 # the License, or (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty
12 # of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 # See the GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18 . $srcdir/common
19 split_std_out_err no
20 . $srcdir/common-i
21
22 ##
23 # Check that ‘ci -i’ works, with varying other options.
24 # Specifically, the command should:
25 # - write nothing to stdout
26 # - write something (unspecified) to stderr
27 # - create the RCS file
28 # - read-only, non-empty
29 # - with revision ‘1.1’ in both the tree and log
30 # - with the internally generated log message "Initial revision"
31 # - remove the working file
32 ##
33
34 $hey echo ' -*- org -*-'
35
36 wdisp=removed
37 rev_rx='^1\.1$'
38 log_rx='^@Initial revision$'
39
40 triple 'ci -i'
41 triple 'ci -i -w00t'
42 triple 'ci -i -nomoly'
43 triple 'ci -i -w00t -nomoly'
44
45 exit 0
46
47 # t510 ends here