From: nasm-bot f. C. G. <gor...@gm...> - 2018-11-12 07:01:38
|
Commit-ID: b93462b8f7cdeb9a1ca0abef5f8d4b7cb895af43 Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=b93462b8f7cdeb9a1ca0abef5f8d4b7cb895af43 Author: Cyrill Gorcunov <gor...@gm...> AuthorDate: Sun, 11 Nov 2018 14:41:34 +0300 Committer: Cyrill Gorcunov <gor...@gm...> CommitDate: Sun, 11 Nov 2018 21:43:46 +0300 test: nasm-t -- Add expimp Signed-off-by: Cyrill Gorcunov <gor...@gm...> --- travis/test/expimp-o0-error.stderr | 8 ++++++++ travis/test/expimp-o0.bin.t | Bin 0 -> 513 bytes travis/test/expimp-o0.stderr | 4 ++++ travis/test/expimp-o1.bin.t | Bin 0 -> 501 bytes travis/test/expimp-o1.stderr | 4 ++++ travis/test/expimp-ox-error.stderr | 8 ++++++++ travis/test/expimp-ox.bin.t | Bin 0 -> 495 bytes {test => travis/test}/expimp.asm | 0 travis/test/expimp.json | 40 +++++++++++++++++++++++++++++++++++++ 9 files changed, 64 insertions(+) diff --git a/travis/test/expimp-o0-error.stderr b/travis/test/expimp-o0-error.stderr new file mode 100644 index 0000000..6fb20f5 --- /dev/null +++ b/travis/test/expimp-o0-error.stderr @@ -0,0 +1,8 @@ +./travis/test/expimp.asm:17: warning: signed byte value exceeds bounds [-w+number-overflow] +./travis/test/expimp.asm:24: warning: signed byte value exceeds bounds [-w+number-overflow] +./travis/test/expimp.asm:31: warning: signed byte value exceeds bounds [-w+number-overflow] +./travis/test/expimp.asm:38: warning: signed byte value exceeds bounds [-w+number-overflow] +./travis/test/expimp.asm:59: error: short jump is out of range +./travis/test/expimp.asm:59: warning: byte data exceeds bounds [-w+number-overflow] +./travis/test/expimp.asm:77: error: short jump is out of range +./travis/test/expimp.asm:77: warning: byte data exceeds bounds [-w+number-overflow] \ No newline at end of file diff --git a/travis/test/expimp-o0.bin.t b/travis/test/expimp-o0.bin.t new file mode 100644 index 0000000..b4034a9 Binary files /dev/null and b/travis/test/expimp-o0.bin.t differ diff --git a/travis/test/expimp-o0.stderr b/travis/test/expimp-o0.stderr new file mode 100644 index 0000000..9a33695 --- /dev/null +++ b/travis/test/expimp-o0.stderr @@ -0,0 +1,4 @@ +./travis/test/expimp.asm:17: warning: signed byte value exceeds bounds [-w+number-overflow] +./travis/test/expimp.asm:24: warning: signed byte value exceeds bounds [-w+number-overflow] +./travis/test/expimp.asm:31: warning: signed byte value exceeds bounds [-w+number-overflow] +./travis/test/expimp.asm:38: warning: signed byte value exceeds bounds [-w+number-overflow] \ No newline at end of file diff --git a/travis/test/expimp-o1.bin.t b/travis/test/expimp-o1.bin.t new file mode 100644 index 0000000..161df87 Binary files /dev/null and b/travis/test/expimp-o1.bin.t differ diff --git a/travis/test/expimp-o1.stderr b/travis/test/expimp-o1.stderr new file mode 100644 index 0000000..9a33695 --- /dev/null +++ b/travis/test/expimp-o1.stderr @@ -0,0 +1,4 @@ +./travis/test/expimp.asm:17: warning: signed byte value exceeds bounds [-w+number-overflow] +./travis/test/expimp.asm:24: warning: signed byte value exceeds bounds [-w+number-overflow] +./travis/test/expimp.asm:31: warning: signed byte value exceeds bounds [-w+number-overflow] +./travis/test/expimp.asm:38: warning: signed byte value exceeds bounds [-w+number-overflow] \ No newline at end of file diff --git a/travis/test/expimp-ox-error.stderr b/travis/test/expimp-ox-error.stderr new file mode 100644 index 0000000..6fb20f5 --- /dev/null +++ b/travis/test/expimp-ox-error.stderr @@ -0,0 +1,8 @@ +./travis/test/expimp.asm:17: warning: signed byte value exceeds bounds [-w+number-overflow] +./travis/test/expimp.asm:24: warning: signed byte value exceeds bounds [-w+number-overflow] +./travis/test/expimp.asm:31: warning: signed byte value exceeds bounds [-w+number-overflow] +./travis/test/expimp.asm:38: warning: signed byte value exceeds bounds [-w+number-overflow] +./travis/test/expimp.asm:59: error: short jump is out of range +./travis/test/expimp.asm:59: warning: byte data exceeds bounds [-w+number-overflow] +./travis/test/expimp.asm:77: error: short jump is out of range +./travis/test/expimp.asm:77: warning: byte data exceeds bounds [-w+number-overflow] \ No newline at end of file diff --git a/travis/test/expimp-ox.bin.t b/travis/test/expimp-ox.bin.t new file mode 100644 index 0000000..11c0d01 Binary files /dev/null and b/travis/test/expimp-ox.bin.t differ diff --git a/test/expimp.asm b/travis/test/expimp.asm similarity index 100% copy from test/expimp.asm copy to travis/test/expimp.asm diff --git a/travis/test/expimp.json b/travis/test/expimp.json new file mode 100644 index 0000000..fcd7783 --- /dev/null +++ b/travis/test/expimp.json @@ -0,0 +1,40 @@ +[ + { + "description": "Test of explicitly and implicitly sized operands (-O0)", + "id": "expimp", + "format": "bin", + "source": "expimp.asm", + "option": "-O0", + "target": [ + { "output": "expimp-o0.bin" }, + { "stderr": "expimp-o0.stderr" } + ] + }, + { + "description": "Test of explicitly and implicitly sized operands (-O1)", + "ref": "expimp", + "option": "-O1", + "target": [ + { "output": "expimp-o1.bin" }, + { "stderr": "expimp-o1.stderr" } + ] + }, + { + "description": "Test of explicitly and implicitly sized operands (-Ox)", + "ref": "expimp", + "option": "-Ox -DERROR -o expimp-ox-error.bin", + "target": [ + { "stderr": "expimp-ox-error.stderr" } + ], + "error": "expected" + }, + { + "description": "Test of explicitly and implicitly sized operands (-O0 error)", + "ref": "expimp", + "option": "-O0 -DERROR -o expimp-o0-error.bin", + "target": [ + { "stderr": "expimp-o0-error.stderr" } + ], + "error": "expected" + } +] |