[Fuego] [PATCH 33/33] Add test case of xinetd to check the status of it.
Wang Mingyu
wangmy at cn.fujitsu.com
Wed May 8 08:00:41 UTC 2019
Signed-off-by: Wang Mingyu <wangmy at cn.fujitsu.com>
---
tests/Functional.misc/tests/xinetd.sh | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
create mode 100644 tests/Functional.misc/tests/xinetd.sh
diff --git a/tests/Functional.misc/tests/xinetd.sh b/tests/Functional.misc/tests/xinetd.sh
new file mode 100644
index 0000000..37e5d0f
--- /dev/null
+++ b/tests/Functional.misc/tests/xinetd.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+# In target, run comannd in.xinetd.
+
+test="xinetd"
+
+. ./fuego_board_function_lib.sh
+
+set_init_manager
+
+if exec_service_on_target xinetd is-active
+then
+ echo " -> start of xinetd succeeded."
+else
+ echo " -> start of xinetd failed."
+ echo " -> $test: TEST-FAIL"
+ exit
+fi
+
+if ps aux | grep "[/]usr/sbin/xinetd"
+then
+ echo " -> $test: TEST-PASS"
+else
+ echo " -> $test: TEST-FAIL"
+fi
--
1.8.3.1
More information about the Fuego
mailing list