From: Damien Lespiau Subject: [PATCH i-g-t 3/5] tests: Use IGT_SIMULATION to tune the list of tests to run Date: Tue, 26 Mar 2013 15:24:37 +0000 Message-ID: <1364311479-20669-4-git-send-email-damien.lespiau@intel.com> References: <1364311479-20669-1-git-send-email-damien.lespiau@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga03.intel.com (mga03.intel.com [143.182.124.21]) by gabe.freedesktop.org (Postfix) with ESMTP id 89C9CE5F6D for ; Tue, 26 Mar 2013 08:25:39 -0700 (PDT) In-Reply-To: <1364311479-20669-1-git-send-email-damien.lespiau@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org There are two ways to run tests, directly with make check/test or through piglit. When IGT_SIMULATION is set to '1', we substitute the list of tests in those two code paths with carefully selected tests. The stress tests and other horrors are left to torture the real hardware as they don't make too much sense in simulation. Signed-off-by: Damien Lespiau --- tests/Makefile.am | 43 ++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 40 insertions(+), 3 deletions(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index 2fddfe8..33db962 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -137,22 +137,59 @@ kernel_tests = \ $(multi_kernel_tests) \ $(NULL) +# We maintain here a list of tests to run in our simulation environments +single_simulation_tests = \ + gem_mmap \ + gem_pread_after_blit \ + gem_ring_sync_loop \ + gem_ctx_basic \ + gem_pipe_control_store_loop \ + gem_storedw_loop_render \ + gem_storedw_loop_blt \ + gem_storedw_loop_bsd \ + gem_render_linear_blits \ + gem_tiled_blits \ + gem_cpu_reloc \ + $(NULL) + +multi_simulation_tests = \ + gem_exec_nop \ + gem_mmap_gtt \ + $(NULL) + +simulation_tests = \ + $(single_simulation_tests) \ + $(multi_simulation_tests) \ + $(NULL) + TESTS = \ $(NULL) test: @whoami | grep root || ( echo ERROR: not running as root; exit 1 ) @./check_drm_clients - @make TESTS="${kernel_tests}" check + @if [ "${IGT_SIMULATION}" == 1 ]; then \ + make TESTS="${simulation_tests}" check; \ + else \ + make TESTS="${kernel_tests}" check; \ + fi list-single-tests: @echo TESTLIST - @echo ${single_kernel_tests} + @if [ "${IGT_SIMULATION}" == 1 ]; then \ + echo ${single_simulation_tests}; \ + else \ + echo ${single_kernel_tests}; \ + fi @echo END TESTLIST list-multi-tests: @echo TESTLIST - @echo ${multi_kernel_tests} + @if [ "${IGT_SIMULATION}" == 1 ]; then \ + echo ${multi_simulation_tests}; \ + else \ + echo ${multi_kernel_tests}; \ + fi @echo END TESTLIST HANG = \ -- 1.7.11.7