File: only-one.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 (25 lines) | stat: -rwxr-xr-x 486 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
#! /bin/sh

# Tests with only one revision in the SCCS file.

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


f=1test
remove $f s.$f
: > $f
docommand O1 "$admin -n -i$f s.$f" 0 "" IGNORE
test -r s.$f         || fail admin did not create s.$f
remove $f out

# The get should succeed.
docommand O2 "$get s.$f" 0 "1.1\n0 lines\n" IGNORE

# With no SCCS file, get should fail.
remove s.$f 
docommand O3 "$get s.$f" 1 "" IGNORE
remove s.$f $f 

remove command.log
success