Merge branch 'locking-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[cris-mirror.git] / tools / testing / selftests / lib / prime_numbers.sh
blobb363994e5e11aa52c9925488e3f40a85f49bbeae
1 #!/bin/sh
2 # SPDX-License-Identifier: GPL-2.0
3 # Checks fast/slow prime_number generation for inconsistencies
5 if ! /sbin/modprobe -q -r prime_numbers; then
6 echo "prime_numbers: [SKIP]"
7 exit 77
8 fi
10 if /sbin/modprobe -q prime_numbers selftest=65536; then
11 /sbin/modprobe -q -r prime_numbers
12 echo "prime_numbers: ok"
13 else
14 echo "prime_numbers: [FAIL]"
15 exit 1