File: n-option.sh

package info (click to toggle)
cssc 1.0.1-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,612 kB
  • ctags: 1,424
  • sloc: cpp: 13,502; sh: 4,759; ansic: 2,971; perl: 342; makefile: 339; awk: 11
file content (28 lines) | stat: -rw-r--r-- 560 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
#! /bin/sh
# n-option.sh:  Testing for the -n option of "delta"

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

g=foo
s=s.$g

remove $s $g p.$g z.$g


# Create an SCCS file.
docommand d1 "${admin} -n $s"    0 "" IGNORE

# Check the file out for editing.
docommand d2 "${get} -e $s"      0 IGNORE IGNORE

# Check the file back in with delta, using the -n option.
docommand d3 "${delta} -n -y $s" 0 IGNORE IGNORE

# Make sure the g-file hasn't been deleted, and is still writable.
docommand d4 "test -w $g" 0 "" IGNORE



remove $s $g
success