From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757882AbcLALsG (ORCPT ); Thu, 1 Dec 2016 06:48:06 -0500 Received: from mail-wj0-f193.google.com ([209.85.210.193]:33471 "EHLO mail-wj0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757627AbcLALrc (ORCPT ); Thu, 1 Dec 2016 06:47:32 -0500 From: Chris Wilson To: linux-kernel@vger.kernel.org Cc: Chris Wilson , Shuah Khan , Peter Zijlstra , Ingo Molnar Subject: [PATCH v2 8/8] locking: Add ww_mutex to tools/testing/selftests Date: Thu, 1 Dec 2016 11:47:11 +0000 Message-Id: <20161201114711.28697-9-chris@chris-wilson.co.uk> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161201114711.28697-1-chris@chris-wilson.co.uk> References: <20161201114711.28697-1-chris@chris-wilson.co.uk> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the minimal test running (modprobe test-ww_mutex) to the kselftests CI framework. Signed-off-by: Chris Wilson Cc: Shuah Khan Cc: Peter Zijlstra Cc: Ingo Molnar --- tools/testing/selftests/locking/ww_mutex.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 tools/testing/selftests/locking/ww_mutex.sh diff --git a/tools/testing/selftests/locking/ww_mutex.sh b/tools/testing/selftests/locking/ww_mutex.sh new file mode 100755 index 000000000000..6905da965f3b --- /dev/null +++ b/tools/testing/selftests/locking/ww_mutex.sh @@ -0,0 +1,10 @@ +#!/bin/sh +# Runs API tests for struct ww_mutex (Wait/Wound mutexes) + +if /sbin/modprobe -q test-ww_mutex; then + /sbin/modprobe -q -r test-ww_mutex + echo "locking/ww_mutex: ok" +else + echo "locking/ww_mutex: [FAIL]" + exit 1 +fi -- 2.10.2