1#!/bin/sh 2# SPDX-License-Identifier: GPL-2.0 3# Checks fast/slow prime_number generation for inconsistencies 4 5if ! /sbin/modprobe -q -r prime_numbers; then 6 echo "prime_numbers: [SKIP]" 7 exit 77 8fi 9 10if /sbin/modprobe -q prime_numbers selftest=65536; then 11 /sbin/modprobe -q -r prime_numbers 12 echo "prime_numbers: ok" 13else 14 echo "prime_numbers: [FAIL]" 15 exit 1 16fi 17