blob: dfde77bef3c0a93111ed281d4ed282c5e528b783 (
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/bash
REQUIREDSOCKETS="cynara.socket dbus.socket security-manager.socket"
REQUIREDSERVICES="afm-system-daemon.service afm-user-daemon.service connman.service ofono.service weston.service HomeScreen.service lightmediascanner.service bluetooth.service"
ALL="${REQUIREDSOCKETS} ${REQUIREDSERVICES}"
RESULT="unknown"
# add delay for services to fully start
sleep 5
for i in ${ALL} ; do
echo -e "\n########## Test for service ${i} being active ##########\n"
systemctl is-active ${i} >/dev/null 2>&1
if [ $? -eq 0 ] ; then
RESULT="pass"
else
RESULT="fail"
fi
lava-test-case ${i} --result ${RESULT}
if [ x"fail" == x"${RESULT}" ] ; then
systemctl status ${i} || true
fi
echo -e "\n########## Result for service ${i} : $RESULT ##########\n"
done
exit 0
|