Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <chris@chris-wilson.co.uk>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20161201114711.28697-9-chris@chris-wilson.co.uk
Signed-off-by: Ingo Molnar <mingo@kernel.org>

authored by

Chris Wilson and committed by
Ingo Molnar
2b0b2111 2a0c1128

+10
+10
tools/testing/selftests/locking/ww_mutex.sh
··· 1 + #!/bin/sh 2 + # Runs API tests for struct ww_mutex (Wait/Wound mutexes) 3 + 4 + if /sbin/modprobe -q test-ww_mutex; then 5 + /sbin/modprobe -q -r test-ww_mutex 6 + echo "locking/ww_mutex: ok" 7 + else 8 + echo "locking/ww_mutex: [FAIL]" 9 + exit 1 10 + fi