Skip to content

Commit

Permalink
initial TLS 1.3 test server
Browse files Browse the repository at this point in the history
  • Loading branch information
gojimmypi committed Oct 12, 2024
1 parent c3ab124 commit f19e833
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions IDE/Espressif/ESP-IDF/examples/wolfssl_server/test_server.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
#!/bin/bash
#
# peek_openssl.sh
#

LOOPS=10000

# Run shell check to ensure this a good script.
# Specify the executable shell checker you want to use:
MY_SHELLCHECK="shellcheck"

# Check if the executable is available in the PATH
if command -v "$MY_SHELLCHECK" >/dev/null 2>&1; then
# Run your command here
shellcheck "$0" || exit 1
else
echo "$MY_SHELLCHECK is not installed. Please install it if changes to this script have been made."
exit 1
fi

failed=0
count=1

echo "Running clients to connect to servers..."
pushd /mnt/c/workspace/wolfssl-gojimmypi-pr || exit 1


tls_test() {
THIS_DEVICE_NAME="$1"
THIS_IP=$2
echo "Connect to $THIS_DEVICE_NAME at $THIS_IP"

if ! ./examples/client/client -h "$THIS_IP" -v 4; then
echo "Failed with exit code $?."
failed=1
fi
}

until [ $count -gt "$LOOPS" ] || [ $failed -gt 0 ]; do
echo "Count: $count"

tls_test "ESP8266" "192.168.1.47"

tls_test "ESP32-C2" "192.168.1.48"

tls_test "ESP32-C2" "192.168.1.53"

tls_test "ESP32-C3" "192.168.1.26"

tls_test "ESP32-C6" "192.168.1.127"

tls_test "ESP32" "192.168.1.27"

tls_test "ESP32-S2" "192.168.1.79"

tls_test "ESP32-S3" "192.168.1.236"

count=$((count + 1))
done

popd || exit 1

echo "done"

0 comments on commit f19e833

Please sign in to comment.