git: c52ca7dd0906 - main - stress2: Don't run aesni.sh on non-x86 platforms
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 27 May 2024 15:27:19 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=c52ca7dd09066648b1cc40f758289404d68ab886
commit c52ca7dd09066648b1cc40f758289404d68ab886
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2024-05-25 17:21:36 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-05-27 15:26:47 +0000
stress2: Don't run aesni.sh on non-x86 platforms
aesni.ko only exists on amd64 and i386, so on other platforms we are
just running geli.sh twice.
In fact, this test has little value anymore because aesni is included in
GENERIC, so it's always going to be used in preference to cryptosoft.
Reviewed by: pho
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D45366
---
tools/test/stress2/misc/aesni.sh | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/tools/test/stress2/misc/aesni.sh b/tools/test/stress2/misc/aesni.sh
index a5160d82dd57..0fe7390d2fbd 100755
--- a/tools/test/stress2/misc/aesni.sh
+++ b/tools/test/stress2/misc/aesni.sh
@@ -29,6 +29,11 @@
# Simple AESNI(4) test.
+if [ $(uname -m) != "amd64" -a $(uname -m) != "i386" ]; then
+ echo "This test requires an x86 system."
+ exit 0
+fi
+
kldstat -v | grep -qw aesni || { kldload aesni.ko; loaded=1; }
../misc/geli.sh