From: nasm-bot f. C. G. <gor...@gm...> - 2018-11-12 07:00:46
|
Commit-ID: 5fc8791857295092b6d90262e7a5760b2fe89419 Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=5fc8791857295092b6d90262e7a5760b2fe89419 Author: Cyrill Gorcunov <gor...@gm...> AuthorDate: Sat, 3 Nov 2018 20:03:06 +0300 Committer: Cyrill Gorcunov <gor...@gm...> CommitDate: Sun, 11 Nov 2018 21:43:45 +0300 test: nasm-t -- Add vmread test Signed-off-by: Cyrill Gorcunov <gor...@gm...> --- {test => travis/test}/vmread.asm | 4 +--- travis/test/vmread.bin.t | Bin 0 -> 60 bytes travis/test/vmread.json | 20 ++++++++++++++++++++ travis/test/vmread.stderr | 6 ++++++ 4 files changed, 27 insertions(+), 3 deletions(-) diff --git a/test/vmread.asm b/travis/test/vmread.asm similarity index 80% copy from test/vmread.asm copy to travis/test/vmread.asm index 551c71a..04eb59d 100644 --- a/test/vmread.asm +++ b/travis/test/vmread.asm @@ -1,5 +1,3 @@ -;Testname=test; Arguments=-fbin -ovmread.bin; Files=stdout stderr vmread.bin - bits 32 vmread dword [0], eax vmwrite eax, dword [0] @@ -23,4 +21,4 @@ vmread qword [0], eax vmwrite eax, qword [0] -%endif \ No newline at end of file +%endif diff --git a/travis/test/vmread.bin.t b/travis/test/vmread.bin.t new file mode 100644 index 0000000..37d3cbc Binary files /dev/null and b/travis/test/vmread.bin.t differ diff --git a/travis/test/vmread.json b/travis/test/vmread.json new file mode 100644 index 0000000..32049d4 --- /dev/null +++ b/travis/test/vmread.json @@ -0,0 +1,20 @@ +[ + { + "description": "Test vmread instruction", + "id": "vmread", + "format": "bin", + "source": "vmread.asm", + "target": [ + { "output": "vmread.bin" } + ] + }, + { + "description": "Test errors in vmread instruction", + "ref": "vmread", + "option": "-DERROR", + "target": [ + { "stderr": "vmread.stderr" } + ], + "error": "expected" + } +] diff --git a/travis/test/vmread.stderr b/travis/test/vmread.stderr new file mode 100644 index 0000000..78e91df --- /dev/null +++ b/travis/test/vmread.stderr @@ -0,0 +1,6 @@ +./travis/test/vmread.asm:15: error: invalid combination of opcode and operands +./travis/test/vmread.asm:16: error: invalid combination of opcode and operands +./travis/test/vmread.asm:19: error: instruction not supported in 64-bit mode +./travis/test/vmread.asm:20: error: instruction not supported in 64-bit mode +./travis/test/vmread.asm:22: error: invalid combination of opcode and operands +./travis/test/vmread.asm:23: error: invalid combination of opcode and operands |