diff options
Diffstat (limited to 'tests/run_test.sh')
| -rwxr-xr-x | tests/run_test.sh | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/run_test.sh b/tests/run_test.sh index fc44ad6..6d17958 100755 --- a/tests/run_test.sh +++ b/tests/run_test.sh @@ -63,14 +63,14 @@ for port in $LDS_PORT $SR_PORT; do done # ── start LDS ────────────────────────────────────────────────── -build/ServerLDS "$CONFIG_DIR/server_lds.conf" >/dev/null 2>&1 & +build/bobink_opcua_discovery_server "$CONFIG_DIR/server_lds.conf" >/dev/null 2>&1 & LDS_PID=$! -wait_for_port "$LDS_PORT" "$LDS_PID" "ServerLDS" +wait_for_port "$LDS_PORT" "$LDS_PID" "bobink_opcua_discovery_server" # ── start ServerRegister ─────────────────────────────────────── -build/ServerRegister "$CONFIG_DIR/server_register.conf" "$CONFIG_DIR/server_register_client.conf" "opc.tcp://localhost:$LDS_PORT" >/dev/null 2>&1 & +build/bobink_opcua_server "$CONFIG_DIR/server_register.conf" "$CONFIG_DIR/server_register_client.conf" "opc.tcp://localhost:$LDS_PORT" >/dev/null 2>&1 & SR_PID=$! -wait_for_port "$SR_PORT" "$SR_PID" "ServerRegister" +wait_for_port "$SR_PORT" "$SR_PID" "bobink_opcua_server" # ── validation helper ───────────────────────────────────────── check() { @@ -85,7 +85,7 @@ check() { # ── FindServers ─────────────────────────────────────────────── TMPFILE=$(mktemp) -build/Client "$CONFIG_DIR/client.conf" find-servers "opc.tcp://localhost:$LDS_PORT" >"$TMPFILE" 2>&1 +build/client "$CONFIG_DIR/client.conf" find-servers "opc.tcp://localhost:$LDS_PORT" >"$TMPFILE" 2>&1 FS_RC=$? FS_OUTPUT=$(<"$TMPFILE") @@ -96,7 +96,7 @@ echo "$FS_OUTPUT" | grep -q "urn:localhost:bobink:ServerRegister" check "find-servers contains urn:localhost:bobink:ServerRegister" $? # ── GetEndpoints ────────────────────────────────────────────── -build/Client "$CONFIG_DIR/client.conf" get-endpoints "opc.tcp://localhost:$SR_PORT" >"$TMPFILE" 2>&1 +build/client "$CONFIG_DIR/client.conf" get-endpoints "opc.tcp://localhost:$SR_PORT" >"$TMPFILE" 2>&1 GE_RC=$? GE_OUTPUT=$(<"$TMPFILE") @@ -107,7 +107,7 @@ echo "$GE_OUTPUT" | grep -q "$EXPECTED_POLICY" check "get-endpoints contains $EXPECTED_POLICY" $? # ── ReadTime ────────────────────────────────────────────────── -build/Client "$CONFIG_DIR/client.conf" read-time "opc.tcp://localhost:$SR_PORT" >"$TMPFILE" 2>&1 +build/client "$CONFIG_DIR/client.conf" read-time "opc.tcp://localhost:$SR_PORT" >"$TMPFILE" 2>&1 RT_RC=$? RT_OUTPUT=$(<"$TMPFILE") |
