From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751553AbdANM4n (ORCPT ); Sat, 14 Jan 2017 07:56:43 -0500 Received: from terminus.zytor.com ([198.137.202.10]:52800 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751146AbdANM4k (ORCPT ); Sat, 14 Jan 2017 07:56:40 -0500 Date: Sat, 14 Jan 2017 04:56:06 -0800 From: tip-bot for Chris Wilson Message-ID: Cc: linux-kernel@vger.kernel.org, tglx@linutronix.de, mingo@kernel.org, shuah@kernel.org, torvalds@linux-foundation.org, akpm@linux-foundation.org, peterz@infradead.org, paulmck@linux.vnet.ibm.com, chris@chris-wilson.co.uk, hpa@zytor.com Reply-To: chris@chris-wilson.co.uk, hpa@zytor.com, akpm@linux-foundation.org, peterz@infradead.org, paulmck@linux.vnet.ibm.com, shuah@kernel.org, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, mingo@kernel.org In-Reply-To: <20161201114711.28697-9-chris@chris-wilson.co.uk> References: <20161201114711.28697-9-chris@chris-wilson.co.uk> To: linux-tip-commits@vger.kernel.org Subject: [tip:locking/core] locking/ww_mutex: Add ww_mutex to tools/testing/selftests Git-Commit-ID: 2b0b211134a65401ed874ce0d5d48844f4f6f341 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 2b0b211134a65401ed874ce0d5d48844f4f6f341 Gitweb: http://git.kernel.org/tip/2b0b211134a65401ed874ce0d5d48844f4f6f341 Author: Chris Wilson AuthorDate: Thu, 1 Dec 2016 11:47:11 +0000 Committer: Ingo Molnar CommitDate: Sat, 14 Jan 2017 11:37:17 +0100 locking/ww_mutex: Add ww_mutex to tools/testing/selftests Add the minimal test running (modprobe test-ww_mutex) to the kselftests CI framework. Signed-off-by: Chris Wilson Signed-off-by: Peter Zijlstra (Intel) Cc: Andrew Morton Cc: Linus Torvalds Cc: Paul E. McKenney Cc: Peter Zijlstra Cc: Shuah Khan Cc: Thomas Gleixner Link: http://lkml.kernel.org/r/20161201114711.28697-9-chris@chris-wilson.co.uk Signed-off-by: Ingo Molnar --- tools/testing/selftests/locking/ww_mutex.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/testing/selftests/locking/ww_mutex.sh b/tools/testing/selftests/locking/ww_mutex.sh new file mode 100644 index 0000000..6905da9 --- /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