summaryrefslogtreecommitdiff
path: root/tests/Makefile.am
AgeCommit message (Collapse)Author
2013-11-01lib: add more self-tests around the igt_exit checks.Daniel Vetter
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-11-01lib: fix igt_exit assert when only listing subtests.Daniel Vetter
Ooops. Reported by Paulo. Also add a new testcase for make check to make sure this actually works. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-10-29gem_close_race: Fix linker flagsBen Widawsky
Seems the -lpthread was missed in commit 8f771f3facae133bb72216fa05c74bc817920b6d Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Tue Oct 29 14:21:29 2013 +0000 gem_close_race: Also test random closing of active fd Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-10-28tests: Add gem_close_raceChris Wilson
The intention is to exercise #70784. Yet the first challenge is make the test suite happy.
2013-10-24tests/gem_render_copy: Add a simple render copy testDamien Lespiau
The goal is here to both: demonstrate a simple usage of render copy with the possibility to write pngs to visualize what it's doing and to provide a test bed to port the render copy function to new architectures. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-10-22build: Fix small typo that was breaking make distcheckRodrigo Vivi
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
2013-10-21kms_cursor_crc: Add a cursor test using CRCsVille Syrjälä
Use the display CRC support to validate cursor plane functionality. The test will position the cursor plane either fully onscreen, partially onscreen, or fully offscreen, using either a fully opaque or fully transparent surface. In each case it then reads the PF CRC and compares it with the CRC value obtained when the cursor plane was disabled. v2: Loop over all connectors and crtcs Use igt_wait_for_vblank Test more corner cases Add some progress indication ala. kms_flip Make it work for pf and pipe sources Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2013-10-15debugfs_pipe_crc: Let's check CRCs!Damien Lespiau
Let's add a new test that sets a mode, wait for a few vblanks (3) and then make sure we read 3 identical CRCs. Some subtests check for various parsing errors. In the process, improve the debugfs helpers to deal with CRCs. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-10-09tests: add kms_addfbDaniel Vetter
Just a bunch of testcase to check that all the addfb sanity checks work as they should. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-10-04tests: Simulate missed breadcrumb irqsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-09-30testdisplay: Provide a full path when opening pngsDamien Lespiau
This way one doesn't have to be in tests/ for testsdisplay to be able to open pass.png. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-09-30testdisplay: Add left/right images of a lovely sceneDamien Lespiau
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-09-30testdisplay: Distribute pass.pngDamien Lespiau
2013-09-18tests/gem_storedw_batches_loop: Add testcase to check secure dispatchDaniel Vetter
v2: Use the mrb_exec function since otherwise we can't pass flags. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-09-17tests/gem_fenced_exec_thrash: New subtests that uses all fencesDaniel Vetter
igt runs under the assumption that nothing else (besides maybe fbcon) is using the gpu. So we should be able to use all fences. Keep the conservative testcase around though in case someone has a broken setup. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-09-13lib: add test for igt_fork_signal_helperDaniel Vetter
If we're really fast we've trying to stop the signal helper again we somehow race somewhere and it'll never happen. So add a testcase for this. Since I expect more to come for testsuite tests add a separate make target for them. Run tests with $ make check Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-09-04tests/gem_reloc_overflow: convert to subtestsDaniel Vetter
More will come! Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-09-04tests: add gem_persisten_relocsDaniel Vetter
This reproduces the 3.7 relocation regression ... Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-09-03tests/gem_reloc_vs_gpu: add interruptible versionDaniel Vetter
Exercise a bug where we've failed to propagate the error code correctly. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-26tests/gem_mmap: Convert to subtestsDaniel Vetter
I wanted to write a testcase for gtt mmap access restriction checking and only noticed after conversion to subtests that this here is for cpu mmaps ;-) Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-23tests/gem_evict_*: Add interruptible modesDaniel Vetter
Also I've stumbled over igt_fixture again. Somehow gcc loves to wreak havoc with stack variables set up in igt_fixtures ... Duct-tape in the form of moving fd out to global scope applied. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-21tests: ddx_intel_after_fbdev loads intel ddx after fbdev was loaded.Rodrigo Vivi
v2: Don't add to kernel tests. Signed-off-by: Rodrigo Vivi <rodrigo.vivi@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-21tests: Add gem_evict_alignmentChris Wilson
Clone gem_evict_everything and use it to exercise the misalignment paths. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-20tests: add pc8Paulo Zanoni
This test chekcs our code that enables Package C8+. The environment requirements for this test are quite complicated: - The machine needs to be properly configured to reach PC8+ when possible, which means all the power management policies and device drivers must be properly configured. - You need at least one output connected. - You need the /dev/cpu/0/msr file available. - You need the /dev/i2c-* files available. v2: - Many many changes due to the latest review comments and rebase. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-20tests: Add gem_evict_everythingChris Wilson
Exercise the eviction logic. This is just a naive test to ensure that we can evict old buffers to accommodate new batches, and in the process trigger the evict everything logic. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-19tests: add kms_setmodeImre Deak
Iterate through all valid/invalid crtc/connector combinations. At the moment only clone configurations are tested as the single output cases are tested already by testdisplay. Also from combinations where all connectors are on the same crtc (clone-single-crtc) only those are tested that are invalid, as I haven't found any machine that supports these (have to be GT2 with dvo and vga output). For configurations with one crtc per connector the FBs are per-crtc atm. Signed-off-by: Imre Deak <imre.deak@intel.com>
2013-08-14tests: merge gem_*_concurrent_blt togetherDaniel Vetter
Too much copy&pasting isn't good. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-13tests/gem_readwrite: convert to subtestsDaniel Vetter
A bit lazy since the read/write tests are all smashed together. But since we have really evil partial write/read tests for coherency checking that doesn't matter that much really. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-13tests/gem_ctx_bad_exec: convert to subtestsDaniel Vetter
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-12tests: add drm_get_client_authDaniel Vetter
To check we don't break the magic authentication check libva does. Ugh. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-12tests: scrap old automake based kernel test runnerDaniel Vetter
Upstream broke our dynamic creation of the testlist, and I think adding stupid .tests suffixes everywhere just to appease upstream autohell tools isn't that great. So scrap it, we can use piglit instead. References: https://lists.gnu.org/archive/html/help-debbugs/2013-06/msg00000.html Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-12tests: use drmtest_skip() in caching ioctl helpersDaniel Vetter
This way we can rip out all the skip handling from the test control flow, and additionally (by using drmtest_retval()) even get correct exit codes. The only tricky part is that when we only want ot skip parts of a test (like for gem_pread and gem_pwrite) we need to split out those parts as subtests. But no addition of control-flow is required, the set/longjmp magic in the helpers all makes it happen. Also we make extensive use of the behaviour of drmtest_skip to skip all subsequent subtests if it is called outside of a subtest. This allows us to re-flatten the control flow a lot. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-12tests: s/cacheing/cachingDaniel Vetter
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-07tests/gem_pwrite_pread: subtest annotationDaniel Vetter
This testcase mixes correctnes tests with performance tests, so it's good to track the different correctness test separate for QA. Together with pread_after_blt the pwrite->blt tests here exercise the full cache coherency lifecycle of both snooped and uncached objects. /me is happy Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-06tests: add gem_prw_concurrent_bltDaniel Vetter
New testcase to check that pwrite/pread correctly synchronize with oustanding rendering. Just to catch regressions when we change something. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-06tests/prime_self_import: Add racing handle2fd testcaseDaniel Vetter
Similar to how we test flink races. Note that on unfixed kernels this oopses, and with my current set of patches it still leaks like mad. v2: Only close the prime fd if we've successfully created it. v3: Add a reimport test to check whether we don't race when reaping the obj->dma_buf link. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-06gem_pwrite_pread: Measure how long it takes to upload/copy/downloadChris Wilson
Further trying to determine the effects of setting snooping.
2013-08-06gem_pread: Symmetric measurement to gem_pwriteChris Wilson
2013-07-24tests/gem_flink_race: actually make it somewhat usefulDaniel Vetter
- Enable subtest support. - Add a check for the same flink name in the racing threads, which is an issue one of my recent patches actually fixes. - Add the test I've actually wanted to write which races an flink against gem close (with no open in between). That one does indeed leak. - Readd the leak check, but note that this needs a fixed kernel. Otherwise the leak counter will be utter garbage. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-07-23tests: add gem_flink_raceDaniel Vetter
This exercises a race in the flink name descruction of the current drm gem core. When racing a gem close with a gem open the open can sneak in and cause the kernel to leak the flink name and its reference. This results in leaked gem objects that won't get reaped even at drm file close time. On my 2 core/4 threads snb machine this leaks on the order of 1k objects per second. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-07-23tests: sort tests in Makefile.am and .gitignoreDaniel Vetter
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-07-23tests/gem_suspend: exercise fence restore codeDaniel Vetter
This exercise the bug fixed in commit 94a335dba34ff47cad3d6d0c29b452d43a1be3c8 Author: Daniel Vetter <daniel.vetter@ffwll.ch> Date: Wed Jul 17 14:51:28 2013 +0200 drm/i915: correctly restore fences with objects attached For fun I've also added a subtest for the inverse transition. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-07-21tests: Basic tools testerBen Widawsky
Requested-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-07-20test/gem_pread_after_blit: Make the test a little more stressfulChris Wilson
Extend the simply functionality by repeating it under the rude interrupter and chain together a couple of steps in new test cases. As a compromise for adding more tests, incorporate the piglit subtest framework.
2013-07-15tests/prime_nv_api: convert to subtest infrastructureDaniel Vetter
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-07-10test: add gem_write_read_ring_switchDaniel Vetter
This is meant to exercise the bug fixed in https://patchwork.kernel.org/patch/2825192/ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-07-03tests/gem_linear|tiled_blits: convert to subtestsDaniel Vetter
Finer granularity for nightly runs and regression reporting is always nice. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-06-06tests: add kms_renderImre Deak
Add a test going through all connectors/crtcs/modes/formats painting to a front FB with CPU or painting to a back FB with CPU and blitting it to the front FB. Only formats understood by cairo are supported for now. Signed-off-by: Imre Deak <imre.deak@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
2013-05-10tools: Add a standalone tool to test the computation of r,n,p for WRPLLsDamien Lespiau
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-05-09tests: fix script testlistDaniel Vetter
Oops. This has been broken since: commit d798ab9c2a092a08e14c6f2dfb1777376ba407a8 Author: Daniel Vetter <daniel.vetter@ffwll.ch> Date: Tue Dec 18 22:55:58 2012 +0100 tests: add testcase to check igt runtime enviroment