From: nasm-bot f. C. G. <gor...@gm...> - 2018-11-12 07:00:35
|
Commit-ID: 1fe16a00ab0e5f3fce15aeb544e42a0580d66524 Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=1fe16a00ab0e5f3fce15aeb544e42a0580d66524 Author: Cyrill Gorcunov <gor...@gm...> AuthorDate: Sat, 3 Nov 2018 19:30:03 +0300 Committer: Cyrill Gorcunov <gor...@gm...> CommitDate: Sun, 11 Nov 2018 21:43:45 +0300 test: nasm-t -- Add struc test Signed-off-by: Cyrill Gorcunov <gor...@gm...> --- {test => travis/test}/struc.asm | 22 ++++++++++------------ travis/test/struc.bin.t | Bin 0 -> 86 bytes travis/test/struc.json | 12 ++++++++++++ 3 files changed, 22 insertions(+), 12 deletions(-) diff --git a/test/struc.asm b/travis/test/struc.asm similarity index 55% copy from test/struc.asm copy to travis/test/struc.asm index 3c8c1b4..c262b59 100644 --- a/test/struc.asm +++ b/travis/test/struc.asm @@ -1,33 +1,31 @@ -;Testname=test; Arguments=-fbin -ostruc.bin; Files=stdout stderr struc.bin - bits 32 ; Simple struc example struc teststruc1 - .long: resd 1 - .word: resw 1 - .byte: resb 1 - .str: resb 32 + .long: resd 1 + .word: resw 1 + .byte: resb 1 + .str: resb 32 endstruc ; Reference with offset mov [ebp - 40 + teststruc1.word], ax istruc teststruc1 - at .word, db 5 + at .word, db 5 iend ; Struc with base offset ; should be the same as the previous stuc struc teststruc2, -40 - .long: resd 1 - .word: resw 1 - .byte: resb 1 - .str: resb 32 + .long: resd 1 + .word: resw 1 + .byte: resb 1 + .str: resb 32 endstruc mov [ebp + teststruc2.word], ax istruc teststruc2 - at .word, db 5 + at .word, db 5 iend diff --git a/travis/test/struc.bin.t b/travis/test/struc.bin.t new file mode 100644 index 0000000..1efaa26 Binary files /dev/null and b/travis/test/struc.bin.t differ diff --git a/travis/test/struc.json b/travis/test/struc.json new file mode 100644 index 0000000..3684db0 --- /dev/null +++ b/travis/test/struc.json @@ -0,0 +1,12 @@ +[ + { + "description": "Check structure compilation", + "id": "struc", + "format": "bin", + "source": "struc.asm", + "option": "", + "target": [ + { "output": "struc.bin" } + ] + } +] |