Megatest

Check-in [138dddc6f7]
Login
Overview
Comment:Fixed ordering in couple itemmap cases
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | v1.60
Files: files | file ages | folders
SHA1: 138dddc6f745ebdcacd610befe7c904485d94cb9
User & Date: matt on 2015-09-12 00:30:56
Other Links: branch diff | manifest | tags
Context
2015-09-12
04:47
Moved some parameters around to accomodate new itemmap method check-in: bf87ee76eb user: matt tags: v1.60
00:31
Updated trunk for docs check-in: d0d5324095 user: matt tags: trunk
00:30
Fixed ordering in couple itemmap cases check-in: 138dddc6f7 user: matt tags: v1.60
00:22
Added missing png file check-in: e3e07ee085 user: matt tags: v1.60
Changes

Modified docs/manual/megatest_manual.html from [9f68ad88dd] to [56893fab94].

1216
1217
1218
1219
1220
1221
1222

1223
1224


1225
1226
1227
1228
1229
1230
1231
1216
1217
1218
1219
1220
1221
1222
1223


1224
1225
1226
1227
1228
1229
1230
1231
1232







+
-
-
+
+







"itemmatch" are synonyms.</p></div>
<div class="listingblock">
<div class="content monospaced">
<pre>[requirements]
mode itemmatch</pre>
</div></div>
</div>
</div>
<div class="sect3">
<h4 id="_itemmap">Itemmap</h4>
<div class="sect2">
<h3 id="_itemmap_handling">Itemmap Handling</h3>
<div class="paragraph"><p>For cases were the dependent test has a similar but not identical
itempath to the downstream test an itemmap can allow for itemmatch
mode</p></div>
<div class="listingblock">
<div class="content monospaced">
<pre>[requirements]
mode itemmatch
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269

1270
1271
1272
1273
1274
1275
1276
1277
1278
1279

1280
1281
1282
1283
1284
1285
1286
1245
1246
1247
1248
1249
1250
1251

1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268

1269
1270
1271
1272
1273
1274
1275
1276
1277
1278

1279
1280
1281
1282
1283
1284
1285
1286







-

















-
+









-
+







# multi-line; matches are applied in the listed order
# The following would map:
#   a123b321 to b321fooa123 then to 321fooa123p
#
itemmap (a\d+)(b\d+) \2foo\1
  b(.*) \1p</pre>
</div></div>
</div>
<div class="sect3">
<h4 id="_complex_mappings">Complex mappings</h4>
<div class="paragraph"><p>Complex mappings can be handled with the [itemmap] section</p></div>
<div class="imageblock">
<div class="content">
<img src="complex-itemmap.png" alt="complex-itemmap.png">
</div>
</div>
<div class="paragraph"><p>Example:</p></div>
<div class="olist arabic"><ol class="arabic">
<li>
<p>
Request to run D/1/res
</p>
</li>
<li>
<p>
Megatest calculates all posible items for Test C and filters down to: C/1/aa
Megatest uses rule "(\d+)/res" &#8594; "\1/aa" to create item C/1/aa from D/1/res
</p>
</li>
<li>
<p>
Full list to be run is now: D/1/res, C/1/aa
</p>
</li>
<li>
<p>
Megatest calculates all posible items for Test A and filters down to: A/aa/1
Megatest uses rule "(\d+)/aa" &#8594; "aa/\1" to create item A/aa/1
</p>
</li>
<li>
<p>
Full list to be run is now: D/1/res, C/1/aa, A/aa/1
</p>
</li>

Modified docs/manual/reference.txt from [6bca5ae941] to [ae56b797b4].

131
132
133
134
135
136
137
138

139

140
141
142
143
144
145
146
131
132
133
134
135
136
137

138

139
140
141
142
143
144
145
146







-
+
-
+







"itemmatch" are synonyms.

-------------------
[requirements]
mode itemmatch
-------------------

Itemmap
Itemmap Handling
^^^^^^^
~~~~~~~~~~~~~~~~

For cases were the dependent test has a similar but not identical
itempath to the downstream test an itemmap can allow for itemmatch
mode

-------------------
[requirements]
172
173
174
175
176
177
178
179

180
181

182
183
184
185
186
187
188
172
173
174
175
176
177
178

179
180

181
182
183
184
185
186
187
188







-
+

-
+








// image::itemmap.png[]
image::complex-itemmap.png[]

Example:

. Request to run D/1/res
. Megatest calculates all posible items for Test C and filters down to: C/1/aa
. Megatest uses rule "(\d+)/res" -> "\1/aa" to create item C/1/aa from D/1/res
. Full list to be run is now: D/1/res, C/1/aa
. Megatest calculates all posible items for Test A and filters down to: A/aa/1
. Megatest uses rule "(\d+)/aa" -> "aa/\1" to create item A/aa/1
. Full list to be run is now: D/1/res, C/1/aa, A/aa/1

.Testconfig for Test C
----------------------
[requirements]
waiton A B