Commit 2b785527 authored by Harald Sitter's avatar Harald Sitter

add a completely new partitioning-only test for calamares

recently kpmcore got a large change which broke a whole bunch of stuff.
this test switches cala into a partitioning only mode and then uses the
features erase, replace, resize, and wipe in that order. this happens all
on a GPT table. for the grand finale we then clear the table and change to
MBR and do a simple manual partitioning.

none of this asserts the outcome is actually correct (which is a bit tricky
to do anyway). instead we primarily care about the partitioning failing
entirely.
parent 016422cc
......@@ -34,6 +34,7 @@ still fish them out of `ENV` I suppose).
|OPENQA_SNAP_NAME|For snap testing this sets the application snap name. This is also the name that will be passed to `snap run`|
|OPENQA_SNAP_CHANNEL|For snap testing this sets the store channel snaps are pulled from|
|OPENQA_SNAP_RUNTIME_CHANNEL|For snap testing this sets the store channel the snap runtime (kde-frameworks-5) is pulled from. If this is not set OPENQA_SNAP_CHANNEL will be used. If that isn't set either, the stable channel is used instead|
|OPENQA_PARTITIONING|Can only be used in combination with INSTALLATION=1. Selects advanced partitioning tests during installation. This does not create a fully functional installation when done but instead serves only to test all partitioning features in the installer.|
# Test Suites
......
......@@ -121,7 +121,10 @@ sub cleanup_needles {
$needle::cleanuphandler = \&cleanup_needles;
if (testapi::get_var("INSTALLATION")) {
if (testapi::get_var("INSTALLATION") && testapi::get_var('OPENQA_PARTITIONING')) {
autotest::loadtest('tests/install/calamares_partitioning.pm');
} elsif (testapi::get_var("INSTALLATION")) {
my %test = (
'devedition-gitunstable' => "tests/install_calamares.pm",
'' => "tests/install_ubiquity.pm"
......
{
"area": [
{
"height": 49,
"match": 95,
"type": "match",
"width": 286,
"xpos": 454,
"ypos": 271
},
{
"height": 50,
"match": 95,
"type": "match",
"width": 120,
"xpos": 541,
"ypos": 426
},
{
"height": 64,
"match": 95,
"type": "match",
"width": 604,
"xpos": 296,
"ypos": 334
},
{
"height": 45,
"match": 95,
"type": "match",
"width": 92,
"xpos": 929,
"ypos": 681
}
],
"properties": [],
"tags": [
"calamares-installer-close"
]
}
{
"area": [
{
"height": 14,
"match": 95,
"type": "match",
"width": 80,
"xpos": 323,
"ypos": 634
},
{
"height": 42,
"match": 95,
"type": "match",
"width": 595,
"xpos": 201,
"ypos": 133
},
{
"height": 21,
"match": 95,
"type": "match",
"width": 20,
"xpos": 465,
"ypos": 598
}
],
"properties": [],
"tags": [
"calamares-installer-disk-alongside-adjust",
"calamares-installer-disk-alongside-adjust-max"
]
}
{
"area": [
{
"height": 14,
"match": 90,
"type": "match",
"width": 87,
"xpos": 323,
"ypos": 633
},
{
"height": 42,
"match": 95,
"type": "match",
"width": 415,
"xpos": 201,
"ypos": 133
},
{
"height": 21,
"match": 90,
"type": "match",
"width": 20,
"xpos": 576,
"ypos": 599
}
],
"properties": [],
"tags": [
"calamares-installer-disk-alongside-adjust"
]
}
{
"area": [
{
"height": 42,
"match": 95,
"type": "match",
"width": 595,
"xpos": 201,
"ypos": 133
},
{
"height": 36,
"match": 95,
"type": "match",
"width": 507,
"xpos": 201,
"ypos": 514
}
],
"properties": [],
"tags": [
"calamares-installer-disk-alongside-select"
]
}
{
"area": [
{
"height": 38,
"match": 95,
"type": "match",
"width": 80,
"xpos": 285,
"ypos": 512
},
{
"height": 42,
"match": 95,
"type": "match",
"width": 595,
"xpos": 201,
"ypos": 133
},
{
"height": 25,
"match": 95,
"type": "match",
"width": 390,
"xpos": 390,
"ypos": 596
},
{
"height": 19,
"match": 95,
"type": "match",
"width": 98,
"xpos": 325,
"ypos": 631
}
],
"properties": [],
"tags": [
"calamares-installer-disk-alongside-selected"
]
}
{
"area": [
{
"height": 44,
"match": 95,
"type": "match",
"width": 652,
"xpos": 198,
"ypos": 128
}
],
"properties": [],
"tags": [
"calamares-installer-disk-alongside"
]
}
{
"area": [
{
"height": 374,
"match": 95,
"type": "match",
"width": 652,
"xpos": 198,
"ypos": 128
}
],
"properties": [],
"tags": [
"calamares-installer-disk-complete",
"calamares-installer-disk"
]
}
{
"area": [
{
"height": 67,
"match": 95,
"type": "match",
"width": 139,
"xpos": 206,
"ypos": 243
},
{
"height": 25,
"match": 95,
"type": "match",
"width": 595,
"xpos": 194,
"ypos": 126
}
],
"properties": [],
"tags": [
"calamares-installer-disk-manual-clean"
]
}
{
"area": [
{
"height": 18,
"match": 95,
"type": "match",
"width": 64,
"xpos": 161,
"ypos": 113
},
{
"height": 26,
"match": 95,
"type": "match",
"width": 91,
"xpos": 132,
"ypos": 144
},
{
"height": 22,
"match": 95,
"type": "match",
"width": 81,
"xpos": 143,
"ypos": 194
},
{
"height": 21,
"match": 95,
"type": "match",
"width": 64,
"xpos": 229,
"ypos": 195
},
{
"height": 19,
"match": 95,
"type": "match",
"width": 98,
"xpos": 445,
"ypos": 48
},
{
"height": 52,
"match": 95,
"type": "match",
"width": 93,
"xpos": 694,
"ypos": 665
}
],
"properties": [],
"tags": [
"calamares-installer-disk-manual-create-dialog"
]
}
{
"area": [
{
"height": 42,
"match": 95,
"type": "match",
"width": 102,
"xpos": 207,
"ypos": 241
},
{
"height": 39,
"match": 95,
"type": "match",
"width": 96,
"xpos": 740,
"ypos": 607
}
],
"properties": [],
"tags": [
"calamares-installer-disk-manual-create"
]
}
{
"area": [
{
"height": 67,
"match": 95,
"type": "match",
"width": 114,
"xpos": 210,
"ypos": 242
},
{
"height": 23,
"match": 95,
"type": "match",
"width": 163,
"xpos": 206,
"ypos": 242
}
],
"properties": [],
"tags": [
"calamares-installer-disk-manual-free-space"
]
}
{
"area": [
{
"height": 20,
"match": 95,
"type": "match",
"width": 64,
"xpos": 197,
"ypos": 160
},
{
"height": 20,
"match": 95,
"type": "match",
"width": 64,
"xpos": 761,
"ypos": 242
},
{
"height": 19,
"match": 95,
"type": "match",
"width": 27,
"xpos": 853,
"ypos": 243
},
{
"height": 42,
"match": 95,
"type": "match",
"width": 112,
"xpos": 208,
"ypos": 242
}
],
"properties": [],
"tags": [
"calamares-installer-disk-manual-new-ext4-root"
]
}
{
"area": [
{
"height": 19,
"match": 95,
"type": "match",
"width": 221,
"xpos": 263,
"ypos": 359
},
{
"height": 42,
"match": 95,
"type": "match",
"width": 95,
"xpos": 556,
"ypos": 411
}
],
"properties": [],
"tags": [
"calamares-installer-disk-manual-new-mbr-ok"
]
}
{
"area": [
{
"height": 42,
"match": 95,
"type": "match",
"width": 145,
"xpos": 198,
"ypos": 607
}
],
"properties": [],
"tags": [
"calamares-installer-disk-manual-new-table"
]
}
{
"area": [
{
"height": 42,
"match": 95,
"type": "match",
"width": 595,
"xpos": 196,
"ypos": 308
}
],
"properties": [],
"tags": [
"calamares-installer-disk-manual"
]
}
{
"area": [
{
"height": 30,
"match": 95,
"type": "match",
"width": 283,
"xpos": 329,
"ypos": 257
},
{
"height": 45,
"match": 95,
"type": "match",
"width": 94,
"xpos": 651,
"ypos": 409
}
],
"properties": [],
"tags": [
"calamares-installer-disk-manual-no-esp"
]
}
{
"area": [
{
"height": 42,
"match": 95,
"type": "match",
"width": 595,
"xpos": 196,
"ypos": 308
}
],
"properties": [],
"tags": [
"calamares-installer-disk-manual"
]
}
{
"area": [
{
"height": 44,
"match": 95,
"type": "match",
"width": 652,
"xpos": 199,
"ypos": 188
},
{
"height": 40,
"match": 70,
"type": "match",
"width": 418,
"xpos": 200,
"ypos": 490
}
],
"properties": [],
"tags": [
"calamares-installer-disk-replace-select"
]
}
{
"area": [
{
"height": 44,
"match": 95,
"type": "match",
"width": 652,
"xpos": 199,
"ypos": 188
},
{
"height": 18,
"match": 95,
"type": "match",
"width": 22,
"xpos": 254,
"ypos": 531
},
{
"height": 17,
"match": 95,
"type": "match",
"width": 21,
"xpos": 397,
"ypos": 532
},
{
"height": 37,
"match": 95,
"type": "match",
"width": 418,
"xpos": 274,
"ypos": 489
}
],
"properties": [],
"tags": [
"calamares-installer-disk-replace-selected"
]
}
{
"area": [
{
"height": 44,
"match": 95,
"type": "match",
"width": 652,
"xpos": 199,
"ypos": 188
}
],
"properties": [],
"tags": [
"calamares-installer-disk-replace"
]
}
{
"area": [
{
"height": 49,
"match": 95,
"type": "match",
"width": 286,
"xpos": 454,
"ypos": 271
},
{
"height": 64,
"match": 95,
"type": "match",
"width": 604,
"xpos": 296,
"ypos": 334