Re: [PATCH 02/16] kselftests: Exercise hw-independent mock tests for i915.ko

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

 



On Wed, Dec 07, 2016 at 01:58:19PM +0000, Chris Wilson wrote:
> Although being a GPU driver most functionality of i915.ko depends upon
> real hardware, many of its internal interfaces can be "mocked" and so
> tested independently of any hardware. Expanding the test coverage is not
> only useful for i915.ko, but should provide some integration tests for
> core infrastructure as well.
> 
> Loading i915.ko with mock_selftests=-1 will cause it to execute its mock
> tests then fail with -ENOTTY. If the driver is already loaded and bound
> to hardware, it requires a few more steps to unbind, and so the simple
> preliminary modprobe -r will fail.

I changed the exit condition to return 0 after successfully completing
the mock tests (when passed mock_selftests=-1) so modprobe reports
success/fail clearly.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre
--
To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux