hV6,sum=29124
s 00003/00003/00043
d D 1.2 2015/06/03 00:06:43+0200 joerg 2 1
S s 00039
c ../common/test-common -> ../../common/test-common
e
s 00046/00000/00000
d D 1.1 2010/05/11 11:30:00+0200 joerg 1 0
S s 65158
c date and time created 10/05/11 11:30:00 by joerg
e
u
U
f e 0
f y 
G r 0e46e8ebe5992
G p sccs/tests/cssctests/binary/diff.sh
t
T
I 1
#! /bin/sh
# diff.sh:  Testing for the system diff utility.

# Import common functions & definitions.
D 2
. ../common/test-common
. ../common/real-thing
. ../common/config-data
E 2
I 2
. ../../common/test-common
. ../../common/real-thing
. ../../common/config-data
E 2

if $binary_support
then
    true
else
    echo "Skipping these tests -- no binary file support."
    exit 0
fi 


echo_nonl t1...
remove test/d1 test/d2 test
mkdir test
echo hello > test/d1
echo hello > test/d2
${DIFF} test/d1 test/d2 >got.stdout 2>got.stderr 
rv=$?
if test $rv -ne 0
then
    fail "${DIFF} returns nozero for identical files"
fi
echo passed




echo_nonl t2...
remove test/d2 
echo world > test/d2
${DIFF} test/d1 test/d2 >got.stdout 2>got.stderr 
rv=$?
if test $rv -eq 0
then
    fail "${DIFF} returns zero for nonidentical files"
fi
remove test/d1 test/d2 test
echo passed

success
E 1
