summaryrefslogtreecommitdiffstats
path: root/tools/regression/geom_eli/init-a.t
diff options
context:
space:
mode:
Diffstat (limited to 'tools/regression/geom_eli/init-a.t')
-rw-r--r--tools/regression/geom_eli/init-a.t7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/regression/geom_eli/init-a.t b/tools/regression/geom_eli/init-a.t
index 87612a2..dbb24fe 100644
--- a/tools/regression/geom_eli/init-a.t
+++ b/tools/regression/geom_eli/init-a.t
@@ -1,10 +1,11 @@
#!/bin/sh
# $FreeBSD$
+. $(dirname $0)/conf.sh
+
base=`basename $0`
-no=45
sectors=100
-keyfile=`mktemp /tmp/$base.XXXXXX` || exit 1
+keyfile=`mktemp $base.XXXXXX` || exit 1
echo "1..1380"
@@ -26,7 +27,7 @@ for cipher in aes:0 aes:128 aes:256 \
keylen=${cipher##*:}
for aalgo in hmac/md5 hmac/sha1 hmac/ripemd160 hmac/sha256 hmac/sha384 hmac/sha512; do
for secsize in 512 1024 2048 4096 8192; do
- rnd=`mktemp /tmp/$base.XXXXXX` || exit 1
+ rnd=`mktemp $base.XXXXXX` || exit 1
mdconfig -a -t malloc -s `expr $secsize \* $sectors + 512`b -u $no || exit 1
dd if=/dev/random of=${keyfile} bs=512 count=16 >/dev/null 2>&1
OpenPOWER on IntegriCloud