summaryrefslogtreecommitdiffstats
path: root/scripts/qemuimage-tests/tools/syslog.sh
diff options
context:
space:
mode:
authorVeerabrahmam vr <veerabrahmam.vr@huawei.com>2012-09-06 06:34:34 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-10 13:01:47 +0100
commit913e2e2ef99be560bb4b0a44d9c1e90a665d8807 (patch)
tree9498d9752e177b7fbb815b62568892f09b660644 /scripts/qemuimage-tests/tools/syslog.sh
parentfe4dcbb2527bb8c117d600fbfe704d57306bc666 (diff)
downloadpoky-913e2e2ef99be560bb4b0a44d9c1e90a665d8807.tar.gz
qemuimagetest: add basic function to check syslogd
one test case to check syslogd is executing on target. (From OE-Core rev: 9286ea7a4eb85ba559d48135458f3b94da7a3866) Signed-off-by: veerabrahmam <veerabrahmamvr@huawei.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/qemuimage-tests/tools/syslog.sh')
-rw-r--r--scripts/qemuimage-tests/tools/syslog.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/qemuimage-tests/tools/syslog.sh b/scripts/qemuimage-tests/tools/syslog.sh
new file mode 100644
index 0000000000..9154da3b85
--- /dev/null
+++ b/scripts/qemuimage-tests/tools/syslog.sh
@@ -0,0 +1,17 @@
1#!/bin/bash
2# syslog test script running in qemu
3#
4# Author: veera <veerabrahmamvr@huawei.com>
5#
6# This file is licensed under the GNU General Public License,
7# Version 2.
8#
9
10ps aux | grep -w syslogd | grep -v grep
11if [ $? -eq 0 ]; then
12 echo "QEMU: syslogd is running by default"
13 exit 0
14else
15 echo "QEMU: syslogd is not running"
16 exit 1
17fi