2024-04-07 15:08:18 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
|
# SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
|
2024-06-08 18:50:39 +00:00
|
|
|
# To successfully run the vsock test, you should
|
|
|
|
|
# 1. Run vsock server binding port 1234 on the host, before running ./vsock_client
|
|
|
|
|
# 2. Run vsock client connecting (cid,port)=(3,4321) on the host, after running ./vsock_server
|
|
|
|
|
|
2024-04-07 15:08:18 +00:00
|
|
|
set -e
|
|
|
|
|
|
2024-06-28 11:12:24 +00:00
|
|
|
VSOCK_DIR=/test/vsock
|
2024-04-07 15:08:18 +00:00
|
|
|
cd ${VSOCK_DIR}
|
|
|
|
|
|
|
|
|
|
echo "Start vsock test......"
|
|
|
|
|
./vsock_client
|
2024-05-14 10:36:14 +00:00
|
|
|
./vsock_server
|
2024-04-07 15:08:18 +00:00
|
|
|
echo "Vsock test passed."
|