tests: Call arm-asm-testsuite.sh on "asmtest" target.
This commit is contained in:
parent
425bd2a3db
commit
0c399306b8
2 changed files with 9 additions and 2 deletions
|
@ -223,11 +223,16 @@ asmtest.ref: asmtest.S
|
||||||
$(CC) -Wa,-W -o asmtest.ref.o -c asmtest.S
|
$(CC) -Wa,-W -o asmtest.ref.o -c asmtest.S
|
||||||
objdump -D asmtest.ref.o > asmtest.ref
|
objdump -D asmtest.ref.o > asmtest.ref
|
||||||
|
|
||||||
|
ifeq ($(ARCH),arm)
|
||||||
|
asmtest asmtest2:
|
||||||
|
(cd .. && tests/arm-asm-testsuite.sh)
|
||||||
|
else
|
||||||
asmtest asmtest2: asmtest.ref
|
asmtest asmtest2: asmtest.ref
|
||||||
@echo ------------ $@ ------------
|
@echo ------------ $@ ------------
|
||||||
$(TCC) $(MAYBE_RUN_TCC) -c asmtest.S
|
$(TCC) $(MAYBE_RUN_TCC) -c asmtest.S
|
||||||
objdump -D asmtest.o > asmtest.out
|
objdump -D asmtest.o > asmtest.out
|
||||||
@if diff -u --ignore-matching-lines="file format" asmtest.ref asmtest.out ; then echo "ASM Auto Test OK"; fi
|
@if diff -u --ignore-matching-lines="file format" asmtest.ref asmtest.out ; then echo "ASM Auto Test OK"; fi
|
||||||
|
endif
|
||||||
|
|
||||||
# test assembler with tcc compiled by itself
|
# test assembler with tcc compiled by itself
|
||||||
asmtest2: MAYBE_RUN_TCC = $(RUN_TCC)
|
asmtest2: MAYBE_RUN_TCC = $(RUN_TCC)
|
||||||
|
|
|
@ -102,11 +102,12 @@ do
|
||||||
echo "warning: '$s $args' did not work in tcc (see above)">&2
|
echo "warning: '$s $args' did not work in tcc (see above)">&2
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
rm -f "${tcc_object}"
|
||||||
echo "warning: '$s $args' did not work in tcc">&2
|
echo "warning: '$s $args' did not work in tcc">&2
|
||||||
fi
|
fi
|
||||||
ok=1
|
ok=1
|
||||||
else # GNU as can't do it either--so we don't care
|
else # GNU as can't do it either--so we don't care
|
||||||
echo -n
|
rm -f "${as_object}"
|
||||||
fi
|
fi
|
||||||
rm -f "${err}"
|
rm -f "${err}"
|
||||||
done
|
done
|
||||||
|
@ -116,8 +117,9 @@ do
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
successful_count="$(ls -1 "${state}/ok-"* |wc -l)"
|
successful_count="$(ls -1 "${state}/ok-"* |wc -l)"
|
||||||
total_count="$(ls -1 "${state}/tcc-"*.o |wc -l)"
|
total_count="$(ls -1 "${state}/as-"*.o |wc -l)"
|
||||||
rm -rf "${state}"
|
rm -rf "${state}"
|
||||||
echo "${successful_count} of ${total_count} tests succeeded.">&2
|
echo "${successful_count} of ${total_count} tests succeeded.">&2
|
||||||
if [ "${successful_count}" -eq "${total_count}" ]
|
if [ "${successful_count}" -eq "${total_count}" ]
|
||||||
|
|
Loading…
Reference in a new issue