[BusyBox] testsuite, sed dollar test

Glenn McGrath bug1 at optushome.com.au
Fri Mar 7 23:47:03 UTC 2003


I have the following test (taken from GNU sed) im trying to integrate
into our ./testsuite

#!/bin/sh
cat - > input << EOF
I can't quite remember where I heard it,
but I can't seem to get out of my head
the phrase
the final frontier
EOF
cat input | ../busybox sed '$s/^/space /' > output
cmp -s output - <<EOF
I can't quite remember where I heard it,
but I can't seem to get out of my head
the phrase
space the final frontier
EOF


As it is it works correctly, returning 0 of successful, 1 if failure, if
i remove the first line and try and run it through the testsuite with
./runtest -v sed the test fails. 

Anyone know what ove done wrong ?


Glenn



More information about the busybox mailing list