@ -59,7 +59,7 @@ CreateLayoutsTests::testFixedSizePartition()
PartitionRole role ( PartitionRole : : Role : : Any ) ;
PartitionRole role ( PartitionRole : : Role : : Any ) ;
QList < Partition * > partitions ;
QList < Partition * > partitions ;
if ( ! layout . addEntry ( { QString( " / " ) , QString ( " 5MiB " ) } ) )
if ( ! layout . addEntry ( { FileSystem: : Type : : Ext4 , QString( " / " ) , QString ( " 5MiB " ) } ) )
{
{
QFAIL ( qPrintable ( " Unable to create / partition " ) ) ;
QFAIL ( qPrintable ( " Unable to create / partition " ) ) ;
}
}
@ -79,7 +79,7 @@ CreateLayoutsTests::testPercentSizePartition()
PartitionRole role ( PartitionRole : : Role : : Any ) ;
PartitionRole role ( PartitionRole : : Role : : Any ) ;
QList < Partition * > partitions ;
QList < Partition * > partitions ;
if ( ! layout . addEntry ( { QString( " / " ) , QString ( " 50% " ) } ) )
if ( ! layout . addEntry ( { FileSystem: : Type : : Ext4 , QString( " / " ) , QString ( " 50% " ) } ) )
{
{
QFAIL ( qPrintable ( " Unable to create / partition " ) ) ;
QFAIL ( qPrintable ( " Unable to create / partition " ) ) ;
}
}
@ -99,17 +99,17 @@ CreateLayoutsTests::testMixedSizePartition()
PartitionRole role ( PartitionRole : : Role : : Any ) ;
PartitionRole role ( PartitionRole : : Role : : Any ) ;
QList < Partition * > partitions ;
QList < Partition * > partitions ;
if ( ! layout . addEntry ( { QString( " / " ) , QString ( " 5MiB " ) } ) )
if ( ! layout . addEntry ( { FileSystem: : Type : : Ext4 , QString( " / " ) , QString ( " 5MiB " ) } ) )
{
{
QFAIL ( qPrintable ( " Unable to create / partition " ) ) ;
QFAIL ( qPrintable ( " Unable to create / partition " ) ) ;
}
}
if ( ! layout . addEntry ( { QString( " /home " ) , QString ( " 50% " ) } ) )
if ( ! layout . addEntry ( { FileSystem: : Type : : Ext4 , QString( " /home " ) , QString ( " 50% " ) } ) )
{
{
QFAIL ( qPrintable ( " Unable to create /home partition " ) ) ;
QFAIL ( qPrintable ( " Unable to create /home partition " ) ) ;
}
}
if ( ! layout . addEntry ( { QString( " /bkup " ) , QString ( " 50% " ) } ) )
if ( ! layout . addEntry ( { FileSystem: : Type : : Ext4 , QString( " /bkup " ) , QString ( " 50% " ) } ) )
{
{
QFAIL ( qPrintable ( " Unable to create /bkup partition " ) ) ;
QFAIL ( qPrintable ( " Unable to create /bkup partition " ) ) ;
}
}
@ -124,7 +124,7 @@ CreateLayoutsTests::testMixedSizePartition()
}
}
# ifdef WITH_KPMCORE4API
# ifdef WITH_KPMCORE4API
// TODO: Get a clean way to instan c iate a test Device from KPMCore
// TODO: Get a clean way to instan t iate a test Device from KPMCore
class DevicePrivate
class DevicePrivate
{
{
public :
public :