mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-25 06:05:36 +00:00
Make test script more portable
seq isn't POSIX and isn't present by default on BSDs
This commit is contained in:
parent
77644f2815
commit
e23f7b312d
|
@ -16,7 +16,8 @@ $OPENSSL req -new -x509 -subj "/C=UK/O=mbed TLS/CN=CA00" $OPT \
|
||||||
cp 00.crt c00.pem
|
cp 00.crt c00.pem
|
||||||
|
|
||||||
# generate long chain
|
# generate long chain
|
||||||
for i in $(seq 1 $NB); do
|
i=1
|
||||||
|
while [ $i -le $NB ]; do
|
||||||
UP=$( printf "%02d" $((i-1)) )
|
UP=$( printf "%02d" $((i-1)) )
|
||||||
ME=$( printf "%02d" $i )
|
ME=$( printf "%02d" $i )
|
||||||
|
|
||||||
|
@ -30,4 +31,5 @@ for i in $(seq 1 $NB); do
|
||||||
cat ${ME}.crt c${UP}.pem > c${ME}.pem
|
cat ${ME}.crt c${UP}.pem > c${ME}.pem
|
||||||
|
|
||||||
rm ${ME}.csr
|
rm ${ME}.csr
|
||||||
|
i=$((i+1))
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue