• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/sh
2# SPDX-License-Identifier: GPL-2.0
3# Runs copy_to/from_user infrastructure using test_user_copy kernel module
4
5# Kselftest framework requirement - SKIP code is 4.
6ksft_skip=4
7
8if ! /sbin/modprobe -q -n test_user_copy; then
9	echo "user: module test_user_copy is not found [SKIP]"
10	exit $ksft_skip
11fi
12if /sbin/modprobe -q test_user_copy; then
13	/sbin/modprobe -q -r test_user_copy
14	echo "user_copy: ok"
15else
16	echo "user_copy: [FAIL]"
17	exit 1
18fi
19