mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-04-06 12:12:25 +00:00
Add preliminary tests for generated code changes in the confidence tests.
This commit is contained in:
parent
ece90b85c5
commit
359aa1c43f
8 changed files with 1298 additions and 2 deletions
|
|
@ -4,3 +4,12 @@ if diff -b expected result
|
|||
then printf "PASSED: $PWD\n\n"
|
||||
else printf "FAILED: $PWD\n\n"; exit 1
|
||||
fi
|
||||
|
||||
# Compare generated code
|
||||
if [ -f old.s -a -f new.asm ]
|
||||
then
|
||||
egrep '^[0-9 ]{4} ([0-9a-f]{4}| ) [0-9A-F]{2}[0-9A-F ]{6}' new.asm|cut -c 11- >new.s
|
||||
if ! diff -b old.s new.s
|
||||
then echo "--- Generated code changed ---"
|
||||
fi
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue