version 1.43.2.7, 2016/10/20 19:34:18 |
version 1.43.2.8, 2017/01/12 15:47:47 |
|
|
singletest() { |
singletest() { |
cat 1>&3 << __HEREDOC__ |
cat 1>&3 << __HEREDOC__ |
${1}${3}: testing... |
${1}${3}: testing... |
${COMP} ${3} -o test-${1} test-${1}.c |
${COMP} -o test-${1} test-${1}.c ${3} |
__HEREDOC__ |
__HEREDOC__ |
|
|
if ${COMP} ${3} -o "test-${1}" "test-${1}.c" 1>&3 2>&3; then |
if ${COMP} -o "test-${1}" "test-${1}.c" ${3} 1>&3 2>&3; then |
echo "${1}${3}: ${CC} succeeded" 1>&3 |
echo "${1}${3}: ${CC} succeeded" 1>&3 |
else |
else |
echo "${1}${3}: ${CC} failed with $?" 1>&3 |
echo "${1}${3}: ${CC} failed with $?" 1>&3 |