diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-02-18 23:36:35 +0100 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-02-18 23:36:35 +0100 |
| commit | 52727a053c45f8d6c634d405742c3289a0be1f78 (patch) | |
| tree | 6f5c5b33e1e0584d49e496ae88b2123268c5dba5 /tests/run_test.sh | |
| parent | 3d30c8499ae37ca0ff837e9deaad359de0297765 (diff) | |
| download | BobinkCOpcUa-52727a053c45f8d6c634d405742c3289a0be1f78.tar.gz BobinkCOpcUa-52727a053c45f8d6c634d405742c3289a0be1f78.zip | |
Rename CMake project and executable targets
Project: OpcUaC → BobinkOpcUaC
Targets: ServerLDS → bobink_opcua_discovery_server,
ServerRegister → bobink_opcua_server,
Client → client
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") |
