Add tests to run gcc

This commit is contained in:
Shinichiro Hamaji 2011-03-22 22:14:18 +09:00
parent dd9d5dd2c7
commit 17c734c876

View File

@ -3,9 +3,19 @@
set -e
for i in mach/*.bin; do
echo "Running $i..."
echo "Running $i"
./ld-mac ./$i
done
MAC_TOOL_DIR=/usr/i686-apple-darwin10
MAC_BIN_DIR=$MAC_TOOL_DIR/usr/bin
echo "Running gcc -c mach/hello.c"
$MAC_BIN_DIR/gcc -c mach/hello.c
echo "Running gcc mach/hello.c"
$MAC_BIN_DIR/gcc mach/hello.c
echo "Running gcc -g mach/hello.c"
PATH=$MAC_BIN_DIR $MAC_BIN_DIR/gcc -g mach/hello.c
echo
echo '*** ALL TESTS PASS ***'