aat

git mirror of https://ccx.te2000.cz/bzr/aat
git clone https://ccx.te2000.cz/git/aat
Log | Files | Refs | README

aat_data.test (1938B)


      1 ./aattest tests/data1
      2 <<<
      3 |BEGIN {
      4 |print "Hello!"
      5 |}
      6 >>>
      7 Hello!
      8 >>>2
      9 >>>= 0
     10 
     11 ./aattest tests/data2
     12 <<<
     13 @awk ../../data.awk
     14 |END{
     15 Hello {<name>}!
     16 |}
     17 ---
     18 name=world
     19 >>>
     20 Hello world!
     21 >>>2
     22 >>>= 0
     23 
     24 ./aattest tests/data3
     25 <<<
     26 @awk ../../data.awk
     27 |END{
     28 Hello {<name:"everyone">}!
     29 |}
     30 ---
     31 name=world
     32 >>>
     33 Hello world!
     34 >>>2
     35 >>>= 0
     36 
     37 ./aattest tests/data4
     38 <<<
     39 @awk ../../data.awk
     40 |END{
     41 Hello {<name:"everyone">}!
     42 |}
     43 ---
     44 >>>
     45 Hello everyone!
     46 >>>2
     47 >>>= 0
     48 
     49 ./aattest tests/data5
     50 <<<
     51 @awk ../../data.awk
     52 |END{
     53 Hello {<name>}!
     54 |}
     55 ---
     56 >>> /Makefile:.*failed/
     57 >>>2 /error: undefined scalar 'name'/
     58 >>>= 2
     59 
     60 ./aattest tests/data6
     61 <<<
     62 @awk ../../data.awk
     63 |END{
     64 foo{<bar:>}baz
     65 spam{<cheese:>}eggs
     66 {<cheese:<bar>>}
     67 {<cheese:'1+1'>}
     68 {<cheese:'(<bar>)" "(<bar>)'>}
     69 |}
     70 ---
     71 bar=qux
     72 >>>
     73 fooquxbaz
     74 spameggs
     75 qux
     76 2
     77 qux qux
     78 >>>2
     79 >>>= 0
     80 
     81 ./aattest tests/data7
     82 <<<
     83 @awk ../../data.awk
     84 |# START: sysresc/inherit/scriptsetup/data.aat
     85 |END{
     86 scriptsetup_src={<scriptsetup_src>}
     87 
     88 scriptsetup_src_override=[
     89 name	source
     90 @for i in scriptsetup_src_override
     91 {<i.name>}	{<i.source>}
     92 @endfor
     93 ]
     94 
     95 scriptsetup_packages=[
     96 name
     97 scriptsetup
     98 ]
     99 
    100 role_sets=[
    101 name
    102 role-scriptsetup
    103 ]
    104 |}
    105 |# END: sysresc/inherit/scriptsetup/data.aat
    106 ---
    107 scriptsetup_src=/home/ccx/bzr
    108 bzr_overlay_src=/home/ccx/bzr
    109 
    110 scriptsetup_src_override=[
    111 name	source
    112 c3net-python	/home/ccx/bzr/c3net/python-current
    113 struct	/home/ccx/bzr/c3net/struct
    114 ]
    115 >>>
    116 scriptsetup_src=/home/ccx/bzr
    117 
    118 scriptsetup_src_override=[
    119 name	source
    120 c3net-python	/home/ccx/bzr/c3net/python-current
    121 struct	/home/ccx/bzr/c3net/struct
    122 ]
    123 
    124 scriptsetup_packages=[
    125 name
    126 scriptsetup
    127 ]
    128 
    129 role_sets=[
    130 name
    131 role-scriptsetup
    132 ]
    133 >>>2
    134 >>>= 0
    135 
    136 ./aattest tests/data8
    137 <<<
    138 @awk ../../data.awk
    139 |END{
    140 @for n in names
    141 Hello {<n.name>}!
    142 @endfor
    143 |}
    144 ---
    145 names=[
    146 name
    147 X
    148 Y
    149 ]
    150 >>>
    151 Hello X!
    152 Hello Y!
    153 >>>2
    154 >>>= 0
    155 
    156 ./aattest tests/data9
    157 <<<
    158 @awk ../../data.awk
    159 |END{
    160 @for n in names
    161 Hello {<n.name>}!
    162 @endfor
    163 |}
    164 ---
    165 >>> /Makefile:.*failed/
    166 >>>2 /error: undefined table 'names'/
    167 >>>= 2