diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2018-11-11 18:00:06 +0300 |
---|---|---|
committer | Cyrill Gorcunov <gorcunov@gmail.com> | 2018-11-11 21:43:46 +0300 |
commit | 0feb41b08706643baf5770c81d1d104ccef436eb (patch) | |
tree | e98871665eccd5b7556e186a37d4645edbce72e1 /travis | |
parent | 0f26c1ec54b8332f33c5db966390271d8f908435 (diff) | |
download | nasm-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.asm | 32 | ||||
-rw-r--r-- | travis/test/br3028880.bin.t | 8 | ||||
-rw-r--r-- | travis/test/br3028880.json | 13 |
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" } + ] + } +] |