[nasm:master] travis: add pragma
nasm-bot for Cyrill Gorcunov
gorcunov at gmail.com
Sun Oct 11 03:06:09 PDT 2020
Commit-ID: bbed2ce3ceb195dab499d6ce184246973d6147e6
Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=bbed2ce3ceb195dab499d6ce184246973d6147e6
Author: Cyrill Gorcunov <gorcunov at gmail.com>
AuthorDate: Sat, 10 Oct 2020 16:43:17 +0300
Committer: Cyrill Gorcunov <gorcunov at gmail.com>
CommitDate: Sat, 10 Oct 2020 16:43:17 +0300
travis: add pragma
Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
---
{test => travis/test}/pragma.asm | 0
travis/test/pragma.json | 12 ++++++++++++
travis/test/pragma.stdout | 10 ++++++++++
3 files changed, 22 insertions(+)
diff --git a/test/pragma.asm b/travis/test/pragma.asm
similarity index 100%
copy from test/pragma.asm
copy to travis/test/pragma.asm
diff --git a/travis/test/pragma.json b/travis/test/pragma.json
new file mode 100644
index 00000000..4ceb3449
--- /dev/null
+++ b/travis/test/pragma.json
@@ -0,0 +1,12 @@
+[
+ {
+ "description": "Test various pragmas",
+ "id": "pragma",
+ "format": "bin",
+ "source": "pragma.asm",
+ "option": "-Ox -E",
+ "target": [
+ { "stdout": "pragma.stdout" }
+ ]
+ }
+]
diff --git a/travis/test/pragma.stdout b/travis/test/pragma.stdout
new file mode 100644
index 00000000..f03c7a4c
--- /dev/null
+++ b/travis/test/pragma.stdout
@@ -0,0 +1,10 @@
+%line 2+1 ./travis/test/pragma.asm
+[pragma bluttan]
+[pragma bluttan blej]
+%line 6+1 ./travis/test/pragma.asm
+[pragma asm foobar]
+%line 9+1 ./travis/test/pragma.asm
+[pragma dbg tjo fidelittan output]
+[pragma dbgdbg tjo fidelittan debug format]
+[pragma Dbg Tjo Fidelittan Output]
+[pragma Dbgdbg Tjo Fidelittan Debug Format]
More information about the Nasm-commits
mailing list