Re: Python tests

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

 



Hi,

On 2022-08-24 10:23, Coly Li wrote:
> 
> 
>> 2022年8月24日 16:15,Lukasz Florczak <lukasz.florczak@xxxxxxxxxxxxxxx> 写道:
>>
>> Hi Coly,
>> I want to write some mdadm tests for assemblation and incremental
>> regarding duplicated array names in config and I'd like to do it in
>> python. I've seen that some time ago[1] you said that you could try to
>> integrate the python tests framework into the mdadm ci. I was wondering
>> how is it going? Do you need any help with this subject?
>>
>> Thanks,
>> Lukasz
>>
>> [1] https://marc.info/?l=linux-raid&m=165277539509464&w=2
> 
> Hi Lukasz,
> 
> Now I just make some of the existed mdadm test scripts running, which are copied from upstream mdadm. There won’t be any conflict for the python testing code between you and me, because now I am just studying Python again and not do any useful thing yet.
> 
> As I said if no one works on the testing framework, I will do it, but it may take time. How about posting out the python code once you make it, then let’s put it into mdadm-test to test mdadm-CI, and improve whole things step by step.
> 

I'm not sure if this is of use to anyone but we are very slowly growing
a testing framework written mostly in python. Its focused on raid5 at
the moment and still is a fairly sizable mess, but we've caught a lot of
bugs with it and continue to run it, clean it up and make improvements.

https://github.com/Eideticom/raid5-tests/

The 'md.py 'file provides a nice interface to setup an array based on
ram, loop or block devices and provides methods to degrade, recover or
grow the array. 'test3' does grow/degrade tests while running IO,
'test_all' runs all the tests with an array of different settings.

Feel free to use anything from it that you may find useful.

Logan




[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux