From: Damien Lespiau Subject: [PATCH 07/23] piglit: Support resuming from a previous run Date: Fri, 15 Nov 2013 16:33:24 +0000 Message-ID: <1384533220-20780-8-git-send-email-damien.lespiau@intel.com> References: <1384533220-20780-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 mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTP id 0FA35FB8F4 for ; Fri, 15 Nov 2013 08:33:53 -0800 (PST) In-Reply-To: <1384533220-20780-1-git-send-email-damien.lespiau@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org It can happen that the machine hard hangs in one of tests, say, drv_module_reload. We really want to support resuming the run in that case (probably excluding the faulty test as well). This commit adds an easy way to do that: sudo make run-tests PIGLIT_FLAGS="-x module_reload" RESUME=20131114-piglit-results.1 Signed-off-by: Damien Lespiau --- Makefile.am | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index 471dd3d..5742b82 100644 --- a/Makefile.am +++ b/Makefile.am @@ -58,9 +58,18 @@ TEST_TARGETS := # TEST_TARGETS += run-test run-tests: - @source $(srcdir)/scripts/build-piglit.sh && \ - output=$$(igt_result_directory) && \ - $(PIGLIT) $(IGT_TESTS) $$output && \ + @if [ -n "$(RESUME)" ]; then \ + [ ! -f $(RESUME)/main ] && { \ + echo "$(RESUME) is not a valid piglit project"; \ + exit 1; \ + }; \ + output=$(RESUME); \ + echo "Resuming $(RESUME)..."; \ + PIGLIT_FLAGS="--resume $$PIGLIT_FLAGS"; \ + else \ + source $(srcdir)/scripts/build-piglit.sh && \ + output=$$(igt_result_directory); \ + fi; \ $(PIGLIT) $${PIGLIT_FLAGS} $(IGT_TESTS) $$output && \ $(PIGLIT_HTML) $$output/html $$output/main && \ $(PIGLIT_SUMMARY) $$output/main -- 1.8.3.1