You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
483 B
25 lines
483 B
#!/bin/bash |
|
|
|
# Test script for ETCP connection establishment with real instances |
|
|
|
DIR=$(cd "$(dirname "$0")" && pwd) |
|
|
|
echo "=== ETCP Two-Instance Test ===" |
|
echo |
|
|
|
# Start server instance in background |
|
echo "Starting server instance..." |
|
$DIR/test_server_only & |
|
SERVER_PID=$! |
|
sleep 1 |
|
|
|
# Start client instance |
|
echo "Starting client instance..." |
|
timeout 10 $DIR/test_server_only 2>&1 |
|
|
|
# Cleanup |
|
kill $SERVER_PID 2>/dev/null |
|
wait $SERVER_PID 2>/dev/null |
|
|
|
echo |
|
echo "=== Test completed ===" |