wolfssl icon indicating copy to clipboard operation
wolfssl copied to clipboard

Introduce WOLFSSL_ESPIDF_EXIT_MESSAGE macro

Open gojimmypi opened this issue 1 year ago • 2 comments

Description

This PR adds the WOLFSSL_ESPIDF_EXIT_MESSAGE macro to the Espressif port, along with some minor example code cleanup.

When a keyword is encountered by the new testMonitor.sh script (PR for that coming soon)... the serial port capture process exits. This is in contrast to using the ESP-IDF.py monitor command that continues to monitor until Ctrl-] is pressed.

For reference, see also the suggestion from Ivan regarding using the espressif/pytest-embedded. I chose to write a small Python script, instead.

./testMonitor.sh wolfssl_benchmark esp32c6 HW

The exit when detecting the WOLFSSL_COMPLETE keyword looks something like this for the benchmark example:

I (55745) wolfssl_benchmark:

Done!

WOLFSSL_COMPLETE
Example completed. Exiting monitor.

Fixes zd# n/a/

Testing

How did you test?

Tested in the ESP-IDF environment only.

See https://github.com/wolfSSL/wolfssl/issues/6234 for a roadmap of Espressif updates.

Checklist

  • [ ] added tests
  • [ ] updated/added doxygen
  • [ ] updated appropriate READMEs
  • [ ] Updated manual and documentation

gojimmypi avatar Dec 14 '23 01:12 gojimmypi

Jenkins retest this please.

gojimmypi avatar Dec 14 '23 03:12 gojimmypi

Jenkins retest this please.

gojimmypi avatar Dec 14 '23 14:12 gojimmypi

Jenkins retest this please.

gojimmypi avatar Mar 07 '24 15:03 gojimmypi