-
Notifications
You must be signed in to change notification settings - Fork 13
Added the C library to the e2e testing #83
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: phansGithub <[email protected]>
| @@ -0,0 +1,19 @@ | |||
| # Copyright(c) 2022 Intel Corporation. | |||
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.
| # Copyright(c) 2022 Intel Corporation. | |
| # Copyright(c) 2024 Intel Corporation. |
| printf("C Library: Server Version: %s \n", GetUdsServerVersion()); | ||
| printf("C Library: Xsk Map FD request: %d \n", RequestXskMapFd("enp94s0f0")); | ||
| CleanUpConnection(); | ||
| } No newline at end of file |
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.
add a blank line please at the end of file
| int main() { | ||
| printf("C Library: Client Version: %s \n", GetUdsClientVersion()); | ||
| printf("C Library: Server Version: %s \n", GetUdsServerVersion()); | ||
| printf("C Library: Xsk Map FD request: %d \n", RequestXskMapFd("enp94s0f0")); |
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.
| printf("C Library: Xsk Map FD request: %d \n", RequestXskMapFd("enp94s0f0")); | |
| printf("C Library: xskmap FD request: %d \n", RequestXskMapFd("enp94s0f0")); |
| int main() { | ||
| printf("C Library: Client Version: %s \n", GetUdsClientVersion()); | ||
| printf("C Library: Server Version: %s \n", GetUdsServerVersion()); | ||
| printf("C Library: Xsk Map FD request: %d \n", RequestXskMapFd("enp94s0f0")); |
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.
I'm not sure about hardcoding this to a physical interface... might be better to create a veth in the context of the pod for testing?
| spec: | ||
| containers: | ||
| - name: afxdp-c | ||
| image: localhost:5000/afxdp-c-test:latest |
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.
| image: localhost:5000/afxdp-c-test:latest | |
| image: afxdp-c-test:latest |
Added in some code to test the C wrapper library for testing in a separate pod.