diff --git a/tests/eth.asm b/tests/eth.asm new file mode 100644 index 0000000..4f59f7a --- /dev/null +++ b/tests/eth.asm @@ -0,0 +1,8 @@ +/* $Id$ */ +.section .text + push1 0x01 /* 60 01 */ + push1 0x00 /* 60 00 */ + dup2 /* 81 */ + swap1 /* 90 */ + sstore /* 55 */ + pop /* 50 */ diff --git a/tests/project.conf b/tests/project.conf index 25a4d52..5fb7588 100644 --- a/tests/project.conf +++ b/tests/project.conf @@ -1,4 +1,4 @@ -targets=amd64.o,arm.o,armeb.o,armel.o,coverage.log,dalvik.o,fixme.log,i386.o,i386_real.o,i486.o,i586.o,i686.o,mips.o,mipseb.o,mipsel.o,java.o,pylint.log,sparc.o,sparc64.o,template.o,tests.log,yasep.o,yasep16.o,yasep32.o +targets=amd64.o,arm.o,armeb.o,armel.o,coverage.log,dalvik.o,eth.o,fixme.log,i386.o,i386_real.o,i486.o,i586.o,i686.o,mips.o,mipseb.o,mipsel.o,java.o,pylint.log,sparc.o,sparc64.o,template.o,tests.log,yasep.o,yasep16.o,yasep32.o as=$(OBJDIR)../tools/asm-static dist=Makefile,pylint.sh,python.sh,tests.sh @@ -48,6 +48,14 @@ sources=dalvik.asm [dalvik.asm] depends=$(OBJDIR)../tools/asm-static$(EXEEXT) +[eth.o] +type=object +asflags=-a eth +sources=eth.asm + +[eth.asm] +depends=$(OBJDIR)../tools/asm-static$(EXEEXT) + [fixme.log] type=script script=./fixme.sh @@ -158,7 +166,7 @@ depends=$(OBJDIR)../tools/asm-static$(EXEEXT) [tests.log] type=script script=./tests.sh -v -depends=$(OBJDIR)amd64.o,$(OBJDIR)arm.o,$(OBJDIR)armeb.o,$(OBJDIR)armel.o,$(OBJDIR)i386.o,$(OBJDIR)i386_real.o,$(OBJDIR)i486.o,$(OBJDIR)i586.o,$(OBJDIR)i686.o,python.sh,$(OBJDIR)sparc.o,$(OBJDIR)sparc64.o,tests.sh,$(OBJDIR)yasep.o,$(OBJDIR)yasep16.o,$(OBJDIR)yasep32.o,$(OBJDIR)../tools/asm-static$(EXEEXT),$(OBJDIR)../tools/deasm-static$(EXEEXT) +depends=$(OBJDIR)amd64.o,$(OBJDIR)arm.o,$(OBJDIR)armeb.o,$(OBJDIR)armel.o,$(OBJDIR)eth.o,$(OBJDIR)i386.o,$(OBJDIR)i386_real.o,$(OBJDIR)i486.o,$(OBJDIR)i586.o,$(OBJDIR)i686.o,python.sh,$(OBJDIR)sparc.o,$(OBJDIR)sparc64.o,tests.sh,$(OBJDIR)yasep.o,$(OBJDIR)yasep16.o,$(OBJDIR)yasep32.o,$(OBJDIR)../tools/asm-static$(EXEEXT),$(OBJDIR)../tools/deasm-static$(EXEEXT) [yasep.o] type=object diff --git a/tests/tests.sh b/tests/tests.sh index 60029df..508b8cf 100755 --- a/tests/tests.sh +++ b/tests/tests.sh @@ -169,6 +169,7 @@ echo "Expected failures:" 1>&2 for test in $failures; do _fail "$test" done +_fail _deasm eth if [ -n "$FAILED" ]; then echo "Failed tests:$FAILED" 1>&2 exit 2