phase 2 serial
This commit is contained in:
@@ -7,12 +7,13 @@ fuser -k 9000/tcp 4840/tcp 2>/dev/null || true
|
||||
sleep 1
|
||||
|
||||
./build/bin/softbus_daemon \
|
||||
--config config/daemon_profile.json \
|
||||
--point-table config/point_table.json \
|
||||
--config config/daemon/daemon_profile.json \
|
||||
--logical-points config/daemon/logical_points.json \
|
||||
--bindings-global config/daemon/bindings_global.json \
|
||||
--self-test > /tmp/valve_loop_daemon.log 2>&1 &
|
||||
DAEMON_PID=$!
|
||||
sleep 1
|
||||
./build/bin/softbus_edge --config config/edge.json > /tmp/valve_loop_edge.log 2>&1 &
|
||||
./build/bin/softbus_edge --config config/edge/edge.json > /tmp/valve_loop_edge.log 2>&1 &
|
||||
EDGE_PID=$!
|
||||
sleep 8
|
||||
|
||||
@@ -21,6 +22,6 @@ fuser -k 9000/tcp 4840/tcp 2>/dev/null || true
|
||||
|
||||
grep -q "state=Succeeded" /tmp/valve_loop_daemon.log
|
||||
grep -q "executedValue=60" /tmp/valve_loop_daemon.log
|
||||
grep -q "ValveOpening value=60" /tmp/valve_loop_edge.log
|
||||
grep -qE "write edge01/phy_modbus_s1_r40002|ValveOpening value=60" /tmp/valve_loop_edge.log
|
||||
|
||||
echo "valve_control_loop: PASS"
|
||||
|
||||
Reference in New Issue
Block a user