mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-10-10 00:25:06 -04:00
test: nasm-t -- Add br3028880
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
32
travis/test/br3028880.asm
Normal file
32
travis/test/br3028880.asm
Normal 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
|
||||||
8
travis/test/br3028880.bin.t
Normal file
8
travis/test/br3028880.bin.t
Normal 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
|
||||||
13
travis/test/br3028880.json
Normal file
13
travis/test/br3028880.json
Normal 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" }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
Reference in New Issue
Block a user