hV6,sum=10974
s 00006/00001/00057
d D 1.3 2017/02/04 01:39:45+0100 joerg 3 2
S s 39924
c Neuer Test mit -fs2 und zwei Dateien bei get
e
s 00001/00001/00057
d D 1.2 2015/06/03 00:06:45+0200 joerg 2 1
S s 29348
c ../common/test-common -> ../../common/test-common
e
s 00058/00000/00000
d D 1.1 2011/05/29 20:57:57+0200 joerg 1 0
S s 29209
c date and time created 11/05/29 20:57:57 by joerg
e
u
U
f e 0
f y 
G r 0e46e8b56901f
G p sccs/tests/sccstests/admin/flags.sh
t
T
I 1
#! /bin/sh

# Basic tests for SCCS flags

# Read test core functions
D 2
. ../common/test-common
E 2
I 2
. ../../common/test-common
E 2

g=foo
s=s.$g
p=p.$g
z=z.$g

remove $z $s $p $g

#
# Checking whether SCCS supports the 'i' flag with parameter
#
# This test will not be passed by SCCS version 4
#
expect_fail=true
echo '%M%' > $g		|| miscarry "Could not create $g"
docommand fl1 "${admin} -n '-fi%M%' -i$g $s" 0 "" ""
remove $z $s $p $g
echo '%M%' > $g		|| miscarry "Could not create $g"
docommand fl2 "${admin} -n '-fi%M%%I%' -i$g $s" 1 "" IGNORE

#
# Checking whether admin -fy will switch off the "No id keywords" warning
#
remove $z $s $p $g
echo 'bla' > $g		|| miscarry "Could not create $g"
docommand fl3 "${admin} -n -fy -i$g $s" 0 "" ""
if test -r $s
then
	remove $g
	docommand fl4 "${get} $s" 0 IGNORE ""
else
	echo "Test fl4 skipped"
fi

remove $z $s $p $g
echo 'bla' > $g		|| miscarry "Could not create $g"
echo '%M%' >> $g	|| miscarry "Could not append a line to $g"
docommand fl5 "${admin} -n -fs1 -i$g $s" 0 "" ""
if test -r $s
then
	remove $g
	docommand fl6 "${get} -p $s" 0 "bla
%M%\n" IGNORE
	docommand fl7 "${admin} -fs2 $s" 0 "" ""
	docommand fl8 "${get} -p $s" 0 "bla
foo\n" IGNORE
I 3
	#
	# Check whether the line count is reset for multiple files
	#
	docommand fl9 "${get} -p $s $s" 0 "bla
foo\nbla\nfoo\n" IGNORE
E 3
else
D 3
	echo "Test fl6..fl8 skipped"
E 3
I 3
	echo "Test fl6..fl9 skipped"
E 3
fi

remove $z $s $p $g
success
E 1
