mirror of
https://github.com/stefanberger/libtpms
synced 2026-08-12 18:28:32 +00:00
tests: run a lot less tests in base64decode.sh
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
This commit is contained in:
parent
96e8ed4aa3
commit
04971a0fb9
@ -5,14 +5,12 @@ binary=$(mktemp)
|
||||
|
||||
trap "rm -f $input $binary" EXIT
|
||||
|
||||
if [ -z "$(type -p seq)" ]; then
|
||||
function seq()
|
||||
function sseq()
|
||||
{
|
||||
for ((i = $1; i < $2; i++)); do
|
||||
for ((i = $1; i < $2; i=i<<1)); do
|
||||
echo $i
|
||||
done
|
||||
}
|
||||
fi
|
||||
|
||||
function do_base64()
|
||||
{
|
||||
@ -26,7 +24,7 @@ function do_base64()
|
||||
fi
|
||||
}
|
||||
|
||||
for i in $(seq 1 1024) 2048 10240;
|
||||
for i in $(sseq 1 1024) 2048 10240;
|
||||
do
|
||||
echo $i
|
||||
dd if=/dev/urandom of=$binary bs=1 count=$i &>/dev/null
|
||||
|
||||
Loading…
Reference in New Issue
Block a user