hV6,sum=27043
s 00011/00004/00059
d D 1.3 2016/08/14 23:16:32+0200 joerg 3 2
S s 49596
c tail +2 -> tail $plustwo und $plustwo wird automatish angepasst
e
s 00001/00001/00062
d D 1.2 2015/06/03 00:06:45+0200 joerg 2 1
S s 38580
c ../common/test-common -> ../../common/test-common
e
s 00063/00000/00000
d D 1.1 2011/05/29 21:10:07+0200 joerg 1 0
S s 38441
c date and time created 11/05/29 21:10:07 by joerg
e
u
U
f e 0
G r 0e46e8b5c54b9
G p sccs/tests/sccstests/extensions/extflags.sh
t
T
I 1
#! /bin/sh

# Basic tests for SCCS flags in the range 'a'..'z'

# 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 all flags in the range 'a'..'z'
#
cp s.flags $s
expect_fail=true
docommand fl1 "${val} $s" 0 "" ""
remove $s
cp s.flagz $s
docommand fl2 "${val} $s" 0 "" ""
remove $s

I 3
echo test | tail +2 > /dev/null 2>/dev/null
if [ "$?" -eq 0 ]; then
	plustwo=+2
else
	plustwo='-n +2'
fi

E 3
cp s.flags $s
docommand fl3d "${admin} -db -dj -dn $s" 0 "" ""
if diff s.flags $s > /dev/null
then
	fail "Flags in the range 'a'..'y' are not all supported"
else
	docommand fl3f "${admin} -fb -fj -fn $s" 0 "" ""

	# Flag 'b' may appear as '^Af b' or '^Af b ', so the checksum may vary
D 3
	tail +2 s.flags	> s.o
	tail +2 $s	> s.n
E 3
I 3
	tail $plustwo s.flags	> s.o
	tail $plustwo $s	> s.n
E 3
	if diff -w s.o s.n > /dev/null
	then
		echo "Flags in the range 'a'..'y' are supported"
		remove s.o s.n
	else
		fail "--> admin -db -dj -dn $s / admin -fb -fj -fn $s changed other flags"
	fi

	cp s.flagz $s
	docommand fl4d "${admin} -db -dj -dn $s" 0 "" ""
	docommand fl4f "${admin} -fb -fj -fn $s" 0 "" ""

	# Flag 'b' may appear as '^Af b' or '^Af b ', so the checksum may vary
D 3
	tail +2 s.flagz	> s.o
	tail +2 $s	> s.n
E 3
I 3
	tail $plustwo s.flagz	> s.o
	tail $plustwo $s	> s.n
E 3
	if diff -w s.o s.n > /dev/null
	then
		echo "Flags in the range 'a'..'u','w'..'z' are supported"
		remove s.o s.n
	else
		fail "--> admin -db -dj -dn $s / admin -fb -fj -fn $s changed other flags"
	fi
fi

remove s.o s.n
remove $z $s $p $g
success
E 1
