blob: 6ac298c682ca4d0305fa9f1a01a75e9655876636 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/bin/sh
get_list() {
return 1
}
get_title() {
echo "Node State Manager"
}
run_1() {
cd /usr/lib
mv libNodeStateMachineStub.so libNodeStateMachineStub.so.bak
cp /opt/tests/node-state-manager/lib/libNodeStateMachineTest.so \
libNodeStateMachineStub.so
ldconfig
sleep 1
systemctl start node-startup-controller
/opt/tests/node-state-manager/NodeStateTest
systemctl stop node-startup-controller
kill -9 `pidof NodeStateManager`
rm -f libNodeStateMachineStub.so
mv libNodeStateMachineStub.so.bak libNodeStateMachineStub.so
ldconfig
}
|