genlink: Update genlink tests

This commit is contained in:
George Jiglau 2017-11-21 02:12:40 +00:00 committed by Karl Palsson
parent 396701808d
commit 974ca8a652
20 changed files with 65 additions and 19 deletions

View File

@ -1 +0,0 @@
dash END A B C D -mcpu=cortex-m0

View File

@ -1 +0,0 @@
-D_A -D_B -D_C -D_D -mcpu=cortex-m0

2
ld/tests/device.data Normal file
View File

@ -0,0 +1,2 @@
device family A=val B=val
family END CPU=cpu FPU=fpu

6
ld/tests/device.result Normal file
View File

@ -0,0 +1,6 @@
-DFAMILY -DDEVICE
-DFAMILY -DDEVICE -D_A=val -D_B=val
family
device
cpu
fpu

1
ld/tests/ignore.data Normal file
View File

@ -0,0 +1 @@
ignore END A B C D -E=val f=val

6
ld/tests/ignore.result Normal file
View File

@ -0,0 +1,6 @@
-DIGNORE
-DIGNORE
ignore

View File

@ -1,2 +0,0 @@
longline + A=parameter B=parameter C=parameter D=parameter E==parameter
longline END F=parameter G=parameter

View File

@ -1 +0,0 @@
-D_A=parameter -D_B=parameter -D_C=parameter -D_D=parameter -D_E==parameter -D_F=parameter -D_G=parameter

2
ld/tests/multiline.data Normal file
View File

@ -0,0 +1,2 @@
multiline + A=val B=val
multiline END C=val D=val

View File

@ -0,0 +1,6 @@
-DMULTILINE
-DMULTILINE -D_A=val -D_B=val -D_C=val -D_D=val
multiline

2
ld/tests/pattern.data Normal file
View File

@ -0,0 +1,2 @@
p?tte* parent A=val B=val
parent END C=val D=val

6
ld/tests/pattern.result Normal file
View File

@ -0,0 +1,6 @@
-DPARENT -DPATTERN
-DPARENT -DPATTERN -D_A=val -D_B=val -D_C=val -D_D=val
parent
pattern

View File

@ -1 +1 @@
single END A B C D
single END A=val B=val

View File

@ -1 +1,6 @@
-D_A -D_B -D_C -D_D
-DSINGLE
-DSINGLE -D_A=val -D_B=val
single

View File

@ -1,2 +1,2 @@
tree1 treeparent A B C D
treeparent END E F
tree1 parent A=val B=val
parent END C=val D=val

View File

@ -1 +1,6 @@
-D_A -D_B -D_C -D_D -D_E -D_F
-DPARENT -DTREE1
-DPARENT -DTREE1 -D_A=val -D_B=val -D_C=val -D_D=val
parent
tree1

View File

@ -1,5 +1,5 @@
tree5 tree4 A
tree4 tree3 B
tree3 tree2 C
tree2 tree1 D
tree1 END E F
tree5 tree4 A=val
tree4 tree3 B=val
tree3 tree2 C=val
tree2 tree1 D=val
tree1 END E=VAL F=val

View File

@ -1 +1,6 @@
-D_A -D_B -D_C -D_D -D_E -D_F
-DTREE1 -DTREE2 -DTREE3 -DTREE4 -DTREE5
-DTREE1 -DTREE2 -DTREE3 -DTREE4 -DTREE5 -D_A=val -D_B=val -D_C=val -D_D=val -D_E=VAL -D_F=val
tree1
tree2

View File

@ -1,4 +1,4 @@
twomatch treeparent A B C D
twomatch treeparent A=val B=val C=val D=val
# the next line will be ignored because previous matches before and no + there
twomatch treeparent P Q R S
twomatch treeparent P=val Q=val R=val S=val
treeparent END E F

View File

@ -1 +1,6 @@
-D_A -D_B -D_C -D_D -D_E -D_F
-DTREEPARENT -DTWOMATCH
-DTREEPARENT -DTWOMATCH -D_A=val -D_B=val -D_C=val -D_D=val
treeparent
twomatch