]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/blame - tools/testing/selftests/locking/ww_mutex.sh
UBUNTU: Ubuntu-5.0.0-29.31
[mirror_ubuntu-disco-kernel.git] / tools / testing / selftests / locking / ww_mutex.sh
CommitLineData
2b0b2111 1#!/bin/sh
b2441318 2# SPDX-License-Identifier: GPL-2.0
f9fedb27
SKSO
3
4# Kselftest framework requirement - SKIP code is 4.
5ksft_skip=4
6
2b0b2111 7# Runs API tests for struct ww_mutex (Wait/Wound mutexes)
f9fedb27
SKSO
8if ! /sbin/modprobe -q -n test-ww_mutex; then
9 echo "ww_mutex: module test-ww_mutex is not found [SKIP]"
10 exit $ksft_skip
11fi
2b0b2111
CW
12
13if /sbin/modprobe -q test-ww_mutex; then
14 /sbin/modprobe -q -r test-ww_mutex
15 echo "locking/ww_mutex: ok"
16else
17 echo "locking/ww_mutex: [FAIL]"
18 exit 1
19fi