mirror of https://github.com/wolfSSL/wolfssl.git
portability enhancement: use "#!/usr/bin/env <interpreter>" on all perl scripts and shell scripts that use bash extensions, and use "#!/bin/sh" on the rest.
parent
4f4fb4bd0a
commit
1c68da282c
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Assume we're in wolfssl/Docker
|
# Assume we're in wolfssl/Docker
|
||||||
WOLFSSL_DIR=$(builtin cd ${BASH_SOURCE%/*}/..; pwd)
|
WOLFSSL_DIR=$(builtin cd ${BASH_SOURCE%/*}/..; pwd)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
echo "Running with \"${*}\"..."
|
echo "Running with \"${*}\"..."
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Assume we're in wolfssl/Docker/yocto
|
# Assume we're in wolfssl/Docker/yocto
|
||||||
WOLFSSL_DIR=$(builtin cd ${BASH_SOURCE%/*}/../..; pwd)
|
WOLFSSL_DIR=$(builtin cd ${BASH_SOURCE%/*}/../..; pwd)
|
||||||
|
|
|
@ -35,7 +35,7 @@ press the reset button or power cycle the Arduino before making a connection.
|
||||||
Here's one possible script to test the server from a command-line client:
|
Here's one possible script to test the server from a command-line client:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
echo "client log " > client_log.txt
|
echo "client log " > client_log.txt
|
||||||
counter=1
|
counter=1
|
||||||
THIS_ERR=0
|
THIS_ERR=0
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# testing script: compileAllExamples
|
# testing script: compileAllExamples
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# testAll.sh [keyword suffix]
|
# testAll.sh [keyword suffix]
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Syntax:
|
# Syntax:
|
||||||
# ./testMonitor.sh <example_name> <target> <keyword>
|
# ./testMonitor.sh <example_name> <target> <keyword>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# check if IDF_PATH is set
|
# check if IDF_PATH is set
|
||||||
if [ -z "$IDF_PATH" ]; then
|
if [ -z "$IDF_PATH" ]; then
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
if [ -z $1 ]; then
|
if [ -z $1 ]; then
|
||||||
echo "./build <Debug | Release>"
|
echo "./build <Debug | Release>"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
function usage(){
|
function usage(){
|
||||||
cat << _EOT_
|
cat << _EOT_
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/perl
|
#!/usr/bin/env perl
|
||||||
|
|
||||||
# genhexbuf.pl
|
# genhexbuf.pl
|
||||||
# Copyright (C) 2020 wolfSSL Inc.
|
# Copyright (C) 2020 wolfSSL Inc.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
SIGOPT=rsa_padding_mode:pss
|
SIGOPT=rsa_padding_mode:pss
|
||||||
SIGOPT2=rsa_pss_saltlen:-1
|
SIGOPT2=rsa_pss_saltlen:-1
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# build-wolfssl-framework.sh
|
# build-wolfssl-framework.sh
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
#!/bin/bash -e
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# this scrypt deploy wolfssl and wolfcrypto source code to mynewt project
|
# this script deploys wolfssl and wolfcrypto source code to the mynewt project.
|
||||||
# run as bash "mynewt project root directory path"
|
# run as bash "mynewt project root directory path"
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
SCRIPTDIR=`dirname $0`
|
SCRIPTDIR=`dirname $0`
|
||||||
SCRIPTDIR=`cd $SCRIPTDIR && pwd -P`
|
SCRIPTDIR=`cd $SCRIPTDIR && pwd -P`
|
||||||
WOLFSSL_MYNEWTDIR=${SCRIPTDIR}
|
WOLFSSL_MYNEWTDIR=${SCRIPTDIR}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
set -e # exit on any command failure
|
set -e # exit on any command failure
|
||||||
if [ ! -d wolfssl ]; then
|
if [ ! -d wolfssl ]; then
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# This script creates symbolic links to the required asynchronous
|
# This script creates symbolic links to the required asynchronous
|
||||||
# file for using the asynchronous simulator and make check
|
# file for using the asynchronous simulator and make check
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
# gencrls, crl config already done, see taoCerts.txt for setup
|
# gencrls, crl config already done, see taoCerts.txt for setup
|
||||||
check_result(){
|
check_result(){
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
# run from wolfssl root
|
# run from wolfssl root
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
check_result(){
|
check_result(){
|
||||||
if [ $1 -ne 0 ]; then
|
if [ $1 -ne 0 ]; then
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
EXAMPLE=$1
|
EXAMPLE=$1
|
||||||
echo "This uses ed25519 certificate generator from wolfssl-examples github"
|
echo "This uses ed25519 certificate generator from wolfssl-examples github"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
check_result(){
|
check_result(){
|
||||||
if [ $1 -ne 0 ]; then
|
if [ $1 -ne 0 ]; then
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
###########################################################
|
###########################################################
|
||||||
########## update and sign server-revoked-key.pem ################
|
########## update and sign server-revoked-key.pem ################
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
check_result(){
|
check_result(){
|
||||||
if [ $1 -ne 0 ]; then
|
if [ $1 -ne 0 ]; then
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# renewcerts.sh
|
# renewcerts.sh
|
||||||
#
|
#
|
||||||
# renews the following certs:
|
# renews the following certs:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
check_result(){
|
check_result(){
|
||||||
if [ $1 -ne 0 ]; then
|
if [ $1 -ne 0 ]; then
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
check_result(){
|
check_result(){
|
||||||
if [ $1 -ne 0 ]; then
|
if [ $1 -ne 0 ]; then
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
# run from wolfssl root
|
# run from wolfssl root
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# assemble-chains.sh
|
# assemble-chains.sh
|
||||||
# Create certs and assemble all the certificate CA path test cert chains.
|
# Create certs and assemble all the certificate CA path test cert chains.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
keyList=(
|
keyList=(
|
||||||
chainA-ICA1-key.pem chainA-entity-key.pem
|
chainA-ICA1-key.pem chainA-entity-key.pem
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
generate() {
|
generate() {
|
||||||
# read in certificate and alter the last part of the signature
|
# read in certificate and alter the last part of the signature
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
#commit-tests.sh
|
#commit-tests.sh
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
# This script depends on g++, cmake, git, and make to be installed
|
# This script depends on g++, cmake, git, and make to be installed
|
||||||
|
|
||||||
POSIXLY_CORRECT=1
|
POSIXLY_CORRECT=1
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# fips-check.sh
|
# fips-check.sh
|
||||||
# This script checks the current revision of the code against the
|
# This script checks the current revision of the code against the
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
if test ! -x ./wolfcrypt/test/testwolfcrypt
|
if test ! -x ./wolfcrypt/test/testwolfcrypt
|
||||||
then
|
then
|
||||||
|
@ -18,4 +18,3 @@ then
|
||||||
cp wolfcrypt/src/fips_test.c wolfcrypt/src/fips_test.c.bak
|
cp wolfcrypt/src/fips_test.c wolfcrypt/src/fips_test.c.bak
|
||||||
sed "s/^\".*\";/\"${NEWHASH}\";/" wolfcrypt/src/fips_test.c.bak >wolfcrypt/src/fips_test.c
|
sed "s/^\".*\";/\"${NEWHASH}\";/" wolfcrypt/src/fips_test.c.bak >wolfcrypt/src/fips_test.c
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/perl
|
#!/usr/bin/env perl
|
||||||
|
|
||||||
# gencertbuf.pl
|
# gencertbuf.pl
|
||||||
# version 1.1
|
# version 1.1
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
SRC=vagrant
|
SRC=vagrant
|
||||||
DST=wolfssl
|
DST=wolfssl
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# aria_cmake_build_test.sh
|
# aria_cmake_build_test.sh
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# This script is designed to compare the output of wolfcrypt/benchmark test
|
# This script is designed to compare the output of wolfcrypt/benchmark test
|
||||||
# application. If the file has an extension ".csv", then it will parse the
|
# application. If the file has an extension ".csv", then it will parse the
|
||||||
# comma separated format, otherwise it will use the standard output format. The
|
# comma separated format, otherwise it will use the standard output format. The
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
#crl.test
|
#crl.test
|
||||||
# if we can, isolate the network namespace to eliminate port collisions.
|
# if we can, isolate the network namespace to eliminate port collisions.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/perl
|
#!/usr/bin/env perl
|
||||||
|
|
||||||
# dertoc.pl
|
# dertoc.pl
|
||||||
# version 1.0
|
# version 1.0
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# This script can be run with several environment variables set dictating its
|
# This script can be run with several environment variables set dictating its
|
||||||
# run. You can set the following to what you like:
|
# run. You can set the following to what you like:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# dtlscid.test
|
# dtlscid.test
|
||||||
# Copyright wolfSSL 2022-2024
|
# Copyright wolfSSL 2022-2024
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# external.test
|
# external.test
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# google.test
|
# google.test
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#set -v
|
#set -v
|
||||||
|
|
||||||
# Script to produce a small source/header only package (with CMake support)
|
# Script to produce a small source/header only package (with CMake support)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Run this script from the wolfSSL root as `./scripts/memtest.sh`.
|
# Run this script from the wolfSSL root as `./scripts/memtest.sh`.
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ make
|
||||||
|
|
||||||
for i in {1..1000}
|
for i in {1..1000}
|
||||||
do
|
do
|
||||||
echo "Trying $i...\n"
|
echo -e "Trying ${i}...\n"
|
||||||
|
|
||||||
./tests/unit.test > ./scripts/memtest.txt 2>&1
|
./tests/unit.test > ./scripts/memtest.txt 2>&1
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# ocsp-stapling-with-ca-as-responder.test
|
# ocsp-stapling-with-ca-as-responder.test
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# ocsp-stapling.test
|
# ocsp-stapling.test
|
||||||
# Test requires HAVE_OCSP and HAVE_CERTIFICATE_STATUS_REQUEST
|
# Test requires HAVE_OCSP and HAVE_CERTIFICATE_STATUS_REQUEST
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# ocsp-stapling2.test
|
# ocsp-stapling2.test
|
||||||
# Test requires HAVE_OCSP and HAVE_CERTIFICATE_STATUS_REQUEST_V2
|
# Test requires HAVE_OCSP and HAVE_CERTIFICATE_STATUS_REQUEST_V2
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# openssl.test
|
# openssl.test
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# Test WolfSSL/OpenSSL srtp interoperability
|
# Test WolfSSL/OpenSSL srtp interoperability
|
||||||
#
|
#
|
||||||
# TODO: add OpenSSL client with WolfSSL server
|
# TODO: add OpenSSL client with WolfSSL server
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# pem.test
|
# pem.test
|
||||||
# Copyright wolfSSL 2023-2023
|
# Copyright wolfSSL 2023-2023
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# ping.test
|
# ping.test
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
#pkcallbacks.test
|
#pkcallbacks.test
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# psk.test
|
# psk.test
|
||||||
# copyright wolfSSL 2016
|
# copyright wolfSSL 2016
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
#resume.test
|
#resume.test
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#set -x
|
#set -x
|
||||||
|
|
||||||
# Run this script from the wolfSSL root
|
# Run this script from the wolfSSL root
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
#sniffer-testsuite.test
|
#sniffer-testsuite.test
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
WOLF_ROOT=$(eval "pwd")
|
WOLF_ROOT=$(eval "pwd")
|
||||||
echo "WOLF_ROOT set to: \"$WOLF_ROOT\""
|
echo "WOLF_ROOT set to: \"$WOLF_ROOT\""
|
||||||
cd ../ || exit 5
|
cd ../ || exit 5
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# tls13.test
|
# tls13.test
|
||||||
# Copyright wolfSSL 2016-2021
|
# Copyright wolfSSL 2016-2021
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# trusted_peer.test
|
# trusted_peer.test
|
||||||
# copyright wolfSSL 2016
|
# copyright wolfSSL 2016
|
||||||
|
|
Loading…
Reference in New Issue