mirror of
https://github.com/zeldaret/af.git
synced 2026-09-26 13:33:16 -04:00
61a38830b9
* git subrepo pull tools/asm-processor subrepo: subdir: "tools/asm-processor" merged: "5c3984fc" upstream: origin: "git@github.com:simonlindholm/asm-processor.git" branch: "main" commit: "5c3984fc" git-subrepo: version: "0.4.9" origin: "git@github.com:ingydotnet/git-subrepo.git" commit: "ea10886" * Fix things needed for new spimdisasm release
24 lines
497 B
Bash
Executable File
24 lines
497 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
TESTS=${*:-python rust-release}
|
|
|
|
if [[ -z "$MIPS_CC" ]]; then
|
|
echo "MIPS_CC not set"
|
|
exit 1
|
|
fi
|
|
|
|
cd "$(dirname "${BASH_SOURCE[0]}")"
|
|
|
|
FAILED=0
|
|
|
|
OBJDUMPFLAGS=-srt
|
|
for typ in $TESTS; do
|
|
for A in tests/*.c tests/*.p; do
|
|
echo "$A ($typ)"
|
|
./compile-test.sh "$A" $typ && mips-linux-gnu-objdump $OBJDUMPFLAGS "${A%.*}.o" | diff -w "${A%.*}.objdump" - || (echo FAIL "$A" && exit 1)
|
|
FAILED=$(( $? + $FAILED ))
|
|
done
|
|
done
|
|
|
|
exit $(( $FAILED != 0 ))
|