[nasm:master] travis: add ppindirect
nasm-bot for Cyrill Gorcunov
gorcunov at gmail.com
Sat Oct 10 06:39:10 PDT 2020
Commit-ID: e85492c8249950a769d0344c0122c8d9d6d9f05d
Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=e85492c8249950a769d0344c0122c8d9d6d9f05d
Author: Cyrill Gorcunov <gorcunov at gmail.com>
AuthorDate: Sat, 10 Oct 2020 16:37:00 +0300
Committer: Cyrill Gorcunov <gorcunov at gmail.com>
CommitDate: Sat, 10 Oct 2020 16:37:00 +0300
travis: add ppindirect
Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
---
{test => travis/test}/ppindirect.asm | 6 +-
travis/test/ppindirect.json | 12 ++++
travis/test/ppindirect.stdout | 103 +++++++++++++++++++++++++++++++++++
3 files changed, 117 insertions(+), 4 deletions(-)
diff --git a/test/ppindirect.asm b/travis/test/ppindirect.asm
similarity index 89%
copy from test/ppindirect.asm
copy to travis/test/ppindirect.asm
index 2785378a..6438fb7c 100644
--- a/test/ppindirect.asm
+++ b/travis/test/ppindirect.asm
@@ -1,9 +1,7 @@
-;Testname=test; Arguments=-E -o ppindirect.out; Files=ppindirect.out
-
; Fun tests of the preprocessor indirection mode...
bits 64
-
+
%assign foo1 11
%assign foo11 1111
%assign foo2 22
@@ -25,7 +23,7 @@
%define foo33bar 999999
dd %[foo%[foo3]bar]
-
+
%assign bctr 0
%macro bluttan 0
%assign bctr bctr+1
diff --git a/travis/test/ppindirect.json b/travis/test/ppindirect.json
new file mode 100644
index 00000000..fa245f0e
--- /dev/null
+++ b/travis/test/ppindirect.json
@@ -0,0 +1,12 @@
+[
+ {
+ "description": "Test preprocessor indirection mode",
+ "id": "ppindirect",
+ "format": "bin",
+ "source": "ppindirect.asm",
+ "option": "-E -Ox",
+ "target": [
+ { "stdout": "ppindirect.stdout" }
+ ]
+ }
+]
diff --git a/travis/test/ppindirect.stdout b/travis/test/ppindirect.stdout
new file mode 100644
index 00000000..49dc57be
--- /dev/null
+++ b/travis/test/ppindirect.stdout
@@ -0,0 +1,103 @@
+%line 3+1 ./travis/test/ppindirect.asm
+[bits 64]
+
+%line 12+1 ./travis/test/ppindirect.asm
+ dd 2222*100
+ dd 22*100
+
+
+
+ dd 11
+ dd 22
+ dd 33
+ dd 1111
+ dd 222200
+ dd 3333
+
+
+ dd 999999
+
+%line 35+1 ./travis/test/ppindirect.asm
+
+%line 32+1 ./travis/test/ppindirect.asm
+ db 1
+ db '1'
+%line 32+1 ./travis/test/ppindirect.asm
+ db 2
+ db '2'
+%line 32+1 ./travis/test/ppindirect.asm
+ db 3
+ db '3'
+%line 32+1 ./travis/test/ppindirect.asm
+ db 4
+ db '4'
+%line 32+1 ./travis/test/ppindirect.asm
+ db 5
+ db '5'
+%line 32+1 ./travis/test/ppindirect.asm
+ db 6
+ db '6'
+%line 32+1 ./travis/test/ppindirect.asm
+ db 7
+ db '7'
+%line 32+1 ./travis/test/ppindirect.asm
+ db 8
+ db '8'
+%line 32+1 ./travis/test/ppindirect.asm
+ db 9
+ db '9'
+%line 32+1 ./travis/test/ppindirect.asm
+ db 10
+ db '10'
+%line 32+1 ./travis/test/ppindirect.asm
+ db 11
+ db '11'
+%line 32+1 ./travis/test/ppindirect.asm
+ db 12
+ db '12'
+%line 32+1 ./travis/test/ppindirect.asm
+ db 13
+ db '13'
+%line 32+1 ./travis/test/ppindirect.asm
+ db 14
+ db '14'
+%line 32+1 ./travis/test/ppindirect.asm
+ db 15
+ db '15'
+%line 32+1 ./travis/test/ppindirect.asm
+ db 16
+ db '16'
+%line 32+1 ./travis/test/ppindirect.asm
+ db 17
+ db '17'
+%line 32+1 ./travis/test/ppindirect.asm
+ db 18
+ db '18'
+%line 32+1 ./travis/test/ppindirect.asm
+ db 19
+ db '19'
+%line 32+1 ./travis/test/ppindirect.asm
+ db 20
+ db '20'
+%line 40+1 ./travis/test/ppindirect.asm
+ db 20
+%line 40+0 ./travis/test/ppindirect.asm
+ db 19
+ db 18
+ db 17
+ db 16
+ db 15
+ db 14
+ db 13
+ db 12
+ db 11
+ db 10
+ db 9
+ db 8
+ db 7
+ db 6
+ db 5
+ db 4
+ db 3
+ db 2
+ db 1
More information about the Nasm-commits
mailing list