-
Notifications
You must be signed in to change notification settings - Fork 647
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: added tests for socket apis #1900
Conversation
We'd better not check in a binary file (core/iwasm/libraries/lib-socket/test/tcp) |
Yes, don't check in wasm binary file here. |
No, had better move the source files into samples/socket-api/src, rename the sample files with suitable names, and update document about how to run the samples and what the output should be. @hritikgupta Could you add the files as samples in |
@hritikgupta could you also add integration with wasi testsuite to this PR? I think the change might be a bit confusing without that. |
Got it, if they are only tests, it should be good to put them here, and yes, had better add them to CI test. |
Right right, this got committed accidentally while I was testing the script, will remove this as a part of the commit addressing the remaining review comments. |
0e65441
to
c34cabc
Compare
@@ -457,6 +457,10 @@ jobs: | |||
$THREADS_TEST_OPTIONS, | |||
$WASI_TEST_OPTIONS, | |||
] | |||
wasi_sdk_release: | |||
[ | |||
"https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-19/wasi-sdk-19.0-linux.tar.gz", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same change was already added in #1963 so now no need to add this line here after it was merged.
https://github.com/bytecodealliance/wasm-micro-runtime/blob/main/.github/workflows/compilation_on_android_ubuntu.yml#L462
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
cd /opt | ||
sudo wget ${{ matrix.wasi_sdk_release }} | ||
sudo tar -xzf wasi-sdk-19.0-*.tar.gz | ||
sudo mv wasi-sdk-19.0 wasi-sdk |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NM=/opt/wasi-sdk/bin/llvm-nm \ | ||
CC=/opt/wasi-sdk/bin/clang \ | ||
THREAD_MODEL=posix | ||
working-directory: core/deps |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Add internal tests for socket apis (bytecodealliance#1900)
No description provided.