Kaydet (Commit) 7ecbaa59 authored tarafından Ivo Hinkelmann's avatar Ivo Hinkelmann

INTEGRATION: CWS dmake45 (1.2.2); FILE MERGED

2006/06/22 20:45:42 vq 1.2.2.1: #i66650# Make dmake testsuite more portable. (Usable with Solaris.)
Patch by hjs.
üst dc2bedea
...@@ -13,13 +13,14 @@ trap '{ echo "trapped signal - removing temporary files" ; rm -rf $tmpfiles ; }' ...@@ -13,13 +13,14 @@ trap '{ echo "trapped signal - removing temporary files" ; rm -rf $tmpfiles ; }'
# Test for "test" programm in path # Test for "test" programm in path
which test > /dev/null || { echo "Failure! \"test\" program missing." ; exit 1; } which test > /dev/null || { echo "Failure! \"test\" program missing." ; exit 1; }
echo "Found \"test\" program." echo "Found \"test\" program."
test=`which test`
# Test for "echo" programm in path # Test for "echo" programm in path
which echo > /dev/null || { echo "Failure! \"echo\" program missing." ; exit 1; } which echo > /dev/null || { echo "Failure! \"echo\" program missing." ; exit 1; }
echo "Found \"echo\" program." echo "Found \"echo\" program."
# Test for dmake program # Test for dmake program
test -x "${DMAKEPROG}" || { echo "Failure! \"dmake\" is missing." ; exit 1; } ${test} -x "${DMAKEPROG}" || { echo "Failure! \"dmake\" is missing." ; exit 1; }
echo "Found \"dmake\" program." echo "Found \"dmake\" program."
# Remember to quote variables in generated makefiles( $ -> \$ ). # Remember to quote variables in generated makefiles( $ -> \$ ).
...@@ -32,11 +33,12 @@ EOT ...@@ -32,11 +33,12 @@ EOT
${DMAKEPROG} -r -f $file1 ${DMAKEPROG} -r -f $file1
result=$? result=$?
if test ! -e "${file2}"; then if ${test} ! -e "${file2}"; then
echo "File missing" echo "File missing"
result=1 result=1
fi fi
test $result -eq 0 && echo "Success - Cleaning up" && rm -f ${tmpfiles} ${test} $result -eq 0 && echo "Success - Cleaning up" && rm -f ${tmpfiles}
test $result -ne 0 && echo "Failure!" ${test} $result -ne 0 && echo "Failure!"
exit $result exit $result
\ No newline at end of file
...@@ -37,4 +37,5 @@ result=$? ...@@ -37,4 +37,5 @@ result=$?
test $result -eq 0 && echo "Success - Cleaning up" && rm -f ${tmpfiles} test $result -eq 0 && echo "Success - Cleaning up" && rm -f ${tmpfiles}
test $result -ne 0 && echo "Failure!" test $result -ne 0 && echo "Failure!"
exit $result exit $result
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment