[svn-r10995] Purpose:

modified the script test so that when the test files do not exist , they are created

Description:

Solution:

Platforms tested:
linux
solaris

Misc. update:
This commit is contained in:
Pedro Vicente Nunes
2005-06-28 11:40:25 -05:00
parent 4a5f83b8f0
commit 92723c7e02

View File

@@ -145,7 +145,11 @@ TOOLTEST() {
STDERR_FILTER $tmp_err
cat $tmp_err >> $actual
if $CMP $expect $actual; then
if [ ! -f $expect ]; then
# Create the expect file if it doesn't yet exist.
echo " CREATED"
cp $actual $expect
elif $CMP $expect $actual; then
echo " PASSED"
elif test -z "$pmode"; then
echo "*FAILED*"