aboutsummaryrefslogtreecommitdiffstats
path: root/travis/test
diff options
context:
space:
mode:
Diffstat (limited to 'travis/test')
-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" }
+ ]
+ }
+]