mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 00:43:12 +00:00
Add the minimal test running (modprobe test-ww_mutex) to the kselftests CI framework. Signed-off-by: Chris Wilson <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Paul E. McKenney <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Shuah Khan <[email protected]> Cc: Thomas Gleixner <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
11 lines
248 B
Bash
11 lines
248 B
Bash
#!/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
|