summaryrefslogtreecommitdiff
path: root/travis
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2018-11-11 18:00:06 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2018-11-11 21:43:46 +0300
commit0feb41b08706643baf5770c81d1d104ccef436eb (patch)
treee98871665eccd5b7556e186a37d4645edbce72e1 /travis
parent0f26c1ec54b8332f33c5db966390271d8f908435 (diff)
downloadnasm-0feb41b08706643baf5770c81d1d104ccef436eb.tar.gz
test: nasm-t -- Add br3028880
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'travis')
-rw-r--r--travis/test/br3028880.asm32
-rw-r--r--travis/test/br3028880.bin.t8
-rw-r--r--travis/test/br3028880.json13
3 files changed, 53 insertions, 0 deletions
diff --git a/travis/test/br3028880.asm b/travis/test/br3028880.asm
new file mode 100644
index 00000000..d8395f0d
--- /dev/null
+++ b/travis/test/br3028880.asm
@@ -0,0 +1,32 @@
+;Testname=br3028880; Arguments=-Ox -fbin -obr3028880.o; Files=stdout stderr br3028880.o
+
+%macro import 1
+ %defstr %%incfile %!PROJECTBASEDIR/%{1}.inc
+ %defstr %%decfile %!'PROJECTBASEDIR'/%{1}.dec
+ db %%incfile, `\n`
+ db %%decfile, `\n`
+%endmacro
+
+%ifenv PROJECTBASEDIR
+ import foo
+%else
+ %warning No PROJECTBASEDIR defined
+%endif
+
+%ifenv %!PROJECTBASEDIR
+ import foo
+%else
+ %warning No PROJECTBASEDIR defined
+%endif
+
+%ifenv 'PROJECTBASEDIR'
+ import foo
+%else
+ %warning No PROJECTBASEDIR defined
+%endif
+
+%ifenv %!'PROJECTBASEDIR'
+ import foo
+%else
+ %warning No PROJECTBASEDIR defined
+%endif
diff --git a/travis/test/br3028880.bin.t b/travis/test/br3028880.bin.t
new file mode 100644
index 00000000..79681ff2
--- /dev/null
+++ b/travis/test/br3028880.bin.t
@@ -0,0 +1,8 @@
+./travis/test/foo.inc
+./travis/test/foo.dec
+./travis/test/foo.inc
+./travis/test/foo.dec
+./travis/test/foo.inc
+./travis/test/foo.dec
+./travis/test/foo.inc
+./travis/test/foo.dec
diff --git a/travis/test/br3028880.json b/travis/test/br3028880.json
new file mode 100644
index 00000000..751dedaa
--- /dev/null
+++ b/travis/test/br3028880.json
@@ -0,0 +1,13 @@
+[
+ {
+ "description": "Test environment variables",
+ "id": "br3028880",
+ "format": "bin",
+ "source": "br3028880.asm",
+ "option": "-Ox",
+ "environ": ["PROJECTBASEDIR=./travis/test"],
+ "target": [
+ { "output": "br3028880.bin" }
+ ]
+ }
+]