11 case "$TEST_COMPILER" in
19 $TEST_COMPILER -c
"$@"
34 errors
=${test//tests/errors}
37 if validate
$test 2> $errors > /dev
/null
; then
38 echo UNEXPECTEDLY SUCCEEDED
45 if validate
$test 2> $errors > /dev
/null
; then
54 # make sure we can parse ourselves, and that if we do it twice we
55 # get the same answer both times
57 # really we should compile the results and check they match what
58 # the compiler produces without our involvement
62 errors
=errors
/${path}.errors
63 once
=errors
/${path%.c}.i
64 twice
=errors
/${path%.c}.j
65 object
=errors
/${path%.c}.o
66 rm -f
${once} ${twice} ${errors}
67 echo .
/cparse
--cpp
${CC} ${ALL_CFLAGS} -- ${path} > ${once} > $errors
68 if ! .
/cparse
--cpp
${CC} ${ALL_CFLAGS} -- ${path} > ${once} 2>> $errors; then
70 elif ! .
/cparse
--no-cpp
-- ${once} > ${twice} 2> $errors; then
72 elif ! diff -u
${once} ${twice} > $errors 2>&1; then
74 elif ! ${CC} ${ALL_CFLAGS} -o
${object} -c
${once} 2> $errors; then