[partition] Test mixed-with-overlap settings
This commit is contained in:
parent
3e758d2d5c
commit
196dd55784
9
src/modules/partition/tests/2d-overlap.conf
Normal file
9
src/modules/partition/tests/2d-overlap.conf
Normal file
@ -0,0 +1,9 @@
|
||||
---
|
||||
efi:
|
||||
mountPoint: "/boot/thisoverlaps"
|
||||
minimumSize: 100MiB
|
||||
recommendedSize: 300MiB
|
||||
|
||||
efiSystemPartition: "/boot/ignored"
|
||||
efiSystemPartitionSize: 175MiB
|
||||
efiSystemPartitionName: legacy
|
@ -178,6 +178,21 @@ ConfigTests::testAll()
|
||||
QCOMPARE( gs->value( "efiSystemPartition" ).toString(), QStringLiteral( "/boot/thisismixed" ) );
|
||||
QCOMPARE( gs->value( "efiSystemPartitionName" ).toString(), QStringLiteral( "legacy" ) );
|
||||
}
|
||||
|
||||
// Mixed settings with overlap
|
||||
{
|
||||
gs->clear();
|
||||
bool ok = false;
|
||||
c.setConfigurationMap( Calamares::YAML::load( QStringLiteral( BUILD_AS_TEST "/2d-overlap.conf" ), &ok ) );
|
||||
|
||||
QVERIFY( ok );
|
||||
|
||||
QCOMPARE( PartUtils::efiFilesystemRecommendedSize(), 300_MiB ); // From modern config
|
||||
QCOMPARE( PartUtils::efiFilesystemMinimumSize(), 100_MiB ); // Taken from modern config, legacy ignored
|
||||
|
||||
QCOMPARE( gs->value( "efiSystemPartition" ).toString(), QStringLiteral( "/boot/thisoverlaps" ) );
|
||||
QCOMPARE( gs->value( "efiSystemPartitionName" ).toString(), QStringLiteral( "legacy" ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user