Adding patch for running unit tests from hostap/wpa_supplicant
OSP patch prerequisite for https://github.com/wolfSSL/wolfProvider/pull/148/checks
How did you generate the patch?
How did you generate the patch?
I made edits to the hostap project to get the tests to run, then captured it with git diff.
How did you generate the patch?
I made edits to the
hostapproject to get the tests to run, then captured it withgit diff.
The patch contains large test vectors from this repo: https://github.com/pyca/cryptography.git
I could probably move those to the CI flow to reduce the size of the patch.
I could probably move those to the CI flow to reduce the size of the patch.
Done. Much smaller patch now.
A lot of this looks like it would be solved with defining CONFIG_TLS=openssl in the hostapd configuration. Can you post the .config file?
A lot of this looks like it would be solved with defining
CONFIG_TLS=opensslin the hostapd configuration. Can you post the.configfile?
The unit tests builds the internal hostapd crypto code as a library and then calls into it. So the top level builds which use the .config file are not used for the unit tests. My solution was to rip out anything that conflicted/duplicated openssl functions.
Maybe there is a cleaner way?
Please specify which unit tests exactly you're talking about.
Please specify which unit tests exactly you're talking about.
They are under hostap/tests. I run them with make run-tests.
I see it. Unfortunately, those tests barely test anything. The directory tests/hwsim contain much better tests that test the entire stack. Message me if you need help setting that up.
I see it. Unfortunately, those tests barely test anything. The directory
tests/hwsimcontain much better tests that test the entire stack. Message me if you need help setting that up.
Ok, I will take a look
I see it. Unfortunately, those tests barely test anything. The directory
tests/hwsimcontain much better tests that test the entire stack. Message me if you need help setting that up.Ok, I will take a look
@julek-wolfssl I am still working on the hwsim as a background task. In the meantime, can we move forward with this one?
@julek-wolfssl I am still working on the hwsim as a background task. In the meantime, can we move forward with this one?
@julek-wolfssl, any issues with proceeding with this PR?
@ColtonWilley was going to work with you regarding hostap. Pleased coordinate with him now.