test: nasm-t -- Add br3028880

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov 2018-11-11 18:00:06 +03:00
parent 0f26c1ec54
commit 0feb41b087
3 changed files with 53 additions and 0 deletions

32
travis/test/br3028880.asm Normal file
View File

@ -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

View File

@ -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

View File

@ -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" }
]
}
]