Re: adding fdisk GPT support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, May 12, 2009 at 03:37:19PM +0200, Zdenek Behan wrote:
> On 05/12/2009 02:28 PM, Karel Zak wrote:
>>   BTW, the number of your regression tests for fdisk(s) is ZERO :-(
>>    
> ..which is directly proportional to the difficulty of writing any tests  
> for this mess. ;) I'll try to think of a way to throw in some tests. A  
> quick and simple idea: make *fdisk operate on file streams instead of  
> block devices, and create a large set of prepared MBR's for blackbox  

 fdisk(8) does not require block device (try: fdisk -l disk.img)

> testing (perform an operation, and check the result against the expected  
> result using a shell script). 

 yes, see tests/ directory (for example blkid tests).

> A big problem is faking all the ioctl  
> stuff (?).

 use scsi_debug kernel module to create fake scsi device where you can 
 control basic setting (for example block size)

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux