mirror of
https://github.com/darlinghq/darling.git
synced 2025-03-03 15:27:36 +00:00
Add tests to run gcc
This commit is contained in:
parent
dd9d5dd2c7
commit
17c734c876
12
runtests.sh
12
runtests.sh
@ -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 ***'
|
||||
|
Loading…
x
Reference in New Issue
Block a user