deleted file mode 100644
@@ -1,71 +0,0 @@
-#!/bin/sh
-
-# If the target start the acpid.
-# Add the action file and event file to /etc/acpid to reload acpid.
-# Check the log file.
-
-test="reload"
-
-. ./fuego_board_function_lib.sh
-
-set_init_manager
-logger_service=$(detect_logger_service)
-
-if [ ! -f /etc/acpi/actions ]
-then
- mkdir -p /etc/acpi/actions
-fi
-
-if [ ! -f /etc/acpi/events/testhkey ]
-then
- touch /etc/acpi/events/testhkey
-fi
-
-if [ ! -f /etc/acpi/actions/test_action.sh ]
-then
- touch /etc/acpi/actions/test_action.sh
-fi
-
-cp data/testhkey /etc/acpi/events/testhkey
-cp data/test_action.sh /etc/acpi/actions/test_action.sh
-
-chmod +x /etc/acpi/actions/test_action.sh
-if [ -f /var/log/acpid ]
-then
- rm -f /var/log/acpid
-fi
-
-exec_service_on_target $logger_service stop
-if [ -f /var/log/syslog ]
-then
- mv /var/log/syslog /var/log/syslog_bak
-fi
-
-sleep 5
-
-exec_service_on_target $logger_service restart
-
-if exec_service_on_target acpid restart
-then
- echo " -> restart of acpid succeeded."
-else
- echo " -> restart of acpid failed."
- echo " -> $test: TEST-FAIL"
- exit
-fi
-
-sleep 5
-
-if tail /var/log/syslog | grep "starting up"
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
-exec_service_on_target acpid stop
-rm -f /etc/acpi/events/testhkey
-rm -f /etc/acpi/actions/test_action.sh
-if [ -e /var/log/syslog_bak ]
-then
- mv /var/log/syslog_bak /var/log/syslog
-fi
deleted file mode 100644
@@ -1,49 +0,0 @@
-#!/bin/sh
-
-# In the target start atd, add job and verify job completion.
-# Check the syslog string "fuego autotest".
-
-test="syslog"
-
-. ./fuego_board_function_lib.sh
-
-set_init_manager
-
-logger_service=$(detect_logger_service)
-
-exec_service_on_target $logger_service stop
-exec_service_on_target atd stop
-
-if [ -f /var/log/syslog ]
-then
- mv /var/log/syslog /var/log/syslog_bak
-fi
-exec_service_on_target $logger_service restart
-
-if exec_service_on_target atd start
-then
- echo " -> start atd succeeded."
-else
- echo " -> start atd failed."
-fi
-
-mkdir test_dir
-cp data/test_add.sh test_dir/
-
-at -f test_dir/test_add.sh now + 1 minutes
-
-echo "sleep 60s"
-sleep 60
-
-if cat /var/log/syslog | grep "hello fuego autotest"
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
-
-rm -fr test_dir
-
-at -d $(at -l | cut -b 1-2)
-exec_service_on_target atd stop
-exec_service_on_target $logger_service stop
deleted file mode 100644
@@ -1,69 +0,0 @@
-#!/bin/sh
-
-# In the target start bgpd and zebra, then confirm the log file.
-# check the /var/log/quagga/bgpd.log file.
-
-test="logfile"
-
-. ./fuego_board_function_lib.sh
-
-set_init_manager
-
-exec_service_on_target bgpd stop
-exec_service_on_target zebra stop
-
-if [ ! -f /var/log/quagga/bgpd.log ]
-then
- mkdir /var/log/quagga
- chown -R quagga:quagga /var/log/quagga
-fi
-
-mv /var/log/quagga/bgpd.log /var/log/quagga/bgpd.log.bck
-
-#Backup the config file
-mv /etc/quagga/bgpd.conf /etc/quagga/bgpd.conf.bck
-mv /etc/quagga/zebra.conf /etc/quagga/zebra.conf.bck
-
-cp data/bgpd.conf /etc/quagga/bgpd.conf
-cp data/zebra.conf /etc/quagga/zebra.conf
-chown quagga:quagga /etc/quagga/*.conf
-
-if exec_service_on_target zebra start
-then
- echo " -> start of zebra succeeded."
-else
- echo " -> start of zebra failed."
- echo " -> $test: TEST-FAIL"
- exit
-fi
-
-if exec_service_on_target bgpd start
-then
- echo " -> start of bgpd succeeded."
-else
- echo " -> start of bgpd failed."
- echo " -> $test: TEST-FAIL"
- exit
-fi
-
-if ls /var/log/quagga/bgpd.log
-then
- echo " -> get log file of bgpd."
- echo " -> $test: TEST-PASS"
-else
- echo " -> can't get log file of bgpd."
- echo " -> $test: TEST-FAIL"
- exit
-fi
-
-exec_service_on_target bgpd stop
-exec_service_on_target zebra stop
-
-#Restore the config file
-mv /etc/quagga/bgpd.conf.bck /etc/quagga/bgpd.conf
-mv /etc/quagga/zebra.conf.bck /etc/quagga/zebra.conf
-
-if [ -f /var/log/quagga/bgpd.log.bck ]
-then
- mv /var/log/quagga/bgpd.log.bck /var/log/quagga/bgpd.log
-fi
deleted file mode 100644
@@ -1,73 +0,0 @@
-#!/bin/sh
-
-# In the target start bgpd and zebra.
-# At the same time, start syslog-ng and check the keyword "bgpd" in syslog.
-
-test="syslog"
-
-. ./fuego_board_function_lib.sh
-
-set_init_manager
-
-exec_service_on_target bgpd stop
-exec_service_on_target zebra stop
-exec_service_on_target syslog-ng stop
-
-rm -f /var/run/quagga/bgpd.pid
-#Backup the config file
-mv /etc/quagga/bgpd.conf /etc/quagga/bgpd.conf.bck
-mv /etc/quagga/zebra.conf /etc/quagga/zebra.conf.bck
-#Backup the syslog file
-mv /var/log/syslog /var/log/syslog.bck
-
-cp data/bgpd.conf /etc/quagga/bgpd.conf
-cp data/zebra.conf /etc/quagga/zebra.conf
-chown quagga:quagga /etc/quagga/*.conf
-
-if exec_service_on_target syslog-ng restart
-then
- echo " -> restart of syslog-ng succeeded."
-else
- echo " -> restart of syslog-ng failed."
- echo " -> $test: TEST-FAIL"
- exit
-fi
-
-if exec_service_on_target zebra start
-then
- echo " -> start of zebra succeeded."
-else
- echo " -> start of zebra failed."
- echo " -> $test: TEST-FAIL"
- exit
-fi
-
-if exec_service_on_target bgpd start
-then
- echo " -> start of bgpd succeeded."
-else
- echo " -> start of bgpd failed."
- echo " -> $test: TEST-FAIL"
- exit
-fi
-
-sleep 10
-
-if cat /var/log/syslog | grep "bgpd"
-then
- echo " -> get the syslog of bgpd."
- echo " -> $test: TEST-PASS"
-else
- echo " -> can't get the syslog of bgpd."
- echo " -> $test: TEST-FAIL"
- exit
-fi
-
-exec_service_on_target bgpd stop
-exec_service_on_target zebra stop
-
-#Restore the config file
-mv /etc/quagga/bgpd.conf.bck /etc/quagga/bgpd.conf
-mv /etc/quagga/zebra.conf.bck /etc/quagga/zebra.conf
-#Restore the syslog file
-mv /var/log/syslog.bck /var/log/syslog
deleted file mode 100644
@@ -1,59 +0,0 @@
-#!/bin/sh
-
-# Launch named chroot with the target and check if syslogis exist.
-
-test="chroot_syslog-ng"
-
-named_status=$(get_service_status named)
-dnsmasq_status=$(get_service_status dnsmasq)
-killall -9 named
-exec_service_on_target dnsmasq stop
-
-if [ -d /var/named/ ]
-then
- mv /var/named /var/named_bak
-fi
-
-exec_service_on_target syslog-ng stop
-
-if [ -f /var/log/syslog ]
-then
- mv /var/log/syslog /var/log/syslog_bak
-fi
-
-mkdir -p /var/named/chroot/etc/bind
-cp -f /etc/bind/* /var/named/chroot/etc/bind/
-mkdir -p /var/named/chroot/var/named
-mkdir -p /var/named/chroot/var/cache/bind
-mkdir -p /var/named/chroot/var/run/named
-
-exec_service_on_target syslog-ng restart
-
-named -t /var/named/chroot
-
-sleep 10
-
-if cat /var/log/syslog | grep "BIND"
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
-killall -9 named
-rm -rf /var/named
-if [ -d /var/named_bak ]
-then
- mv /var/named_bak /var/named
-fi
-if [ -f /var/log/syslog_bak ]
-then
- mv /var/log/syslog_bak /var/log/syslog
-fi
-if [ "$named_status" = "active" -o "$named_status" = "unknown" ]
-then
- exec_service_on_target named start
-fi
-if [ "$dnsmasq_status" = "active" -o "$dnsmasq_status" = "unknown" ]
-then
- exec_service_on_target dnsmasq start
-fi
deleted file mode 100644
@@ -1,70 +0,0 @@
-#!/bin/sh
-
-# Start the named on target.
-# Check the log of named.
-
-test="named_syslog"
-
-logger_service=$(detect_logger_service)
-
-named_status=$(get_service_status named)
-dnsmasq_status=$(get_service_status dnsmasq)
-exec_service_on_target dnsmasq stop
-
-if [ -f /etc/bind/rndc.key ]
-then
- rm -f /etc/bind/rndc.key
-fi
-
-exec_service_on_target named stop
-exec_service_on_target syslog.socket stop
-exec_service_on_target $logger_service stop
-
-if [ -f /var/log/syslog ]
-then
- mv /var/log/syslog /var/log/syslog_bak
-fi
-
-exec_service_on_target $logger_service restart
-sleep 5
-
-if exec_service_on_target named start
-then
- echo " -> start of named succeeded."
-else
- echo " -> start of named failed."
- echo " -> $test: TEST-FAIL"
- if [ "$dnsmasq_status" = "active" -o "$dnsmasq_status" = "unknown" ]
- then
- exec_service_on_target dnsmasq start
- fi
- if [ -f /var/log/syslog_bak ]
- then
- mv /var/log/syslog_bak /var/log/syslog
- fi
- exit
-fi
-
-sleep 5
-
-if cat /var/log/syslog | grep "BIND"
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> log is not generated."
- echo " -> $test: TEST-FAIL"
-fi
-
-if [ "$named_status" = "active" -o "$named_status" = "unknown" ]
-then
- exec_service_on_target named start
-fi
-if [ "$dnsmasq_status" = "active" -o "$dnsmasq_status" = "unknown" ]
-then
- exec_service_on_target dnsmasq start
-fi
-
-if [ -f /var/log/syslog_bak ]
-then
- mv /var/log/syslog_bak /var/log/syslog
-fi
deleted file mode 100644
@@ -1,19 +0,0 @@
-#!/bin/sh
-
-# The testscript checks the following options of the command logger
-# 1) Option none
-
-test="logger"
-
-msg="This is a test message $(date)"
-busybox logger "$msg"
-
-sleep 1
-
-if grep "$msg" /var/log/syslog
-then
- echo " -> $test: TEST-PASS"
-else
- echo " Didn't find test string in log"
- echo " -> $test: TEST-FAIL"
-fi;
deleted file mode 100644
@@ -1,22 +0,0 @@
-#!/bin/sh
-
-# The testscript checks the following options of the command rpm
-# 1) Option -qpi/-qpl
-
-test="rpm"
-
-test_rpm="test-manual-1.2.3.noarch.rpm"
-
-if busybox rpm -qpi $test_rpm | grep "1.2.3"
-then
- echo " -> $test: check rpm info success"
-else
- echo " -> $test: TEST-FAIL"
-fi
-
-if busybox rpm -qpl $test_rpm | grep "text1.txt"
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
deleted file mode 100644
@@ -1,20 +0,0 @@
-#!/bin/sh
-
-# The testscript checks the following options of the command rpm2cpio
-# 1) Option none
-
-test="rpm2cpio"
-
-test_rpm="test-manual-1.2.3.noarch.rpm"
-output_file="output_file"
-
-busybox rpm2cpio $test_rpm > $output_file
-
-if file $output_file | grep "cpio"
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
-
-rm -f $output_file
\ No newline at end of file
deleted file mode 100644
@@ -1,24 +0,0 @@
-#!/bin/sh
-
-# The testscript checks the following options of the command setkeycodes
-# 1) Option none
-
-test="setkeycodes"
-
-test_addr=$(getkeycodes | grep "e0 " | grep " 0" | head -1 | cut -d':' -f1 | cut -b 1-2,4-5)
-test_value="122"
-if getkeycodes | grep $test_value
-then
- test_value=$(($test_value+1))
-fi
-
-busybox setkeycodes $test_addr $test_value
-
-if getkeycodes | grep $test_value
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
-
-setkeycodes $test_addr 0
deleted file mode 100644
@@ -1,35 +0,0 @@
-#!/bin/sh
-
-# The testscript checks the following options of the command telnet
-# 1) Option none
-
-test="telnet"
-
-expect <<-EOF
-spawn busybox telnet 127.0.0.1
-expect {
- -re ".*login:.*" {
- send "$name\n"
- }
- default { send_user "Can not log into the board. Name error.\n"
- send_user " -> $test: TEST-FAIL\n"
- send "exit\n"} }
-expect {
- -re ".*Password:.*" {
- send "$passwd\n"
- }
- default { send_user "Can not log into the board. Passwd error. $passwd\n"
- send_user " -> $test: TEST-FAIL\n"
- send "exit\n"} }
-
-expect {
- -re ".*" {
- send_user " -> $test: TEST-PASS\n"
- }
- default {
- send_user " -> can't login.\n"
- send_user " -> $test: TEST-FAIL\n"} }
-send "exit\n"
-
-expect eof
-EOF
deleted file mode 100644
@@ -1,70 +0,0 @@
-#!/bin/sh
-
-# In the target start mdadm, and confirm the process condition by command ps.
-
-test="mdadm"
-
-. ./fuego_board_function_lib.sh
-
-set_init_manager
-
-service_status=$(exec_service_on_target mdmonitor is-active)
-
-exec_service_on_target mdmonitor stop
-
-if [ -f /etc/mdadm.conf ]
-then
- cp /etc/mdadm.conf /etc/mdadm.conf_bak
-fi
-
-echo "MAILADDR root@mydomain.tld" >> /etc/mdadm.conf
-
-restore_target() {
- if [ -f /etc/mdadm.conf_bak ]
- then
- mv /etc/mdadm.conf_bak /etc/mdadm.conf
- else
- rm -f /etc/mdadm.conf
- fi
-}
-
-if exec_service_on_target mdmonitor start
-then
- echo " -> start of mdmonitor succeeded."
-else
- echo " -> start of mdmonitor failed."
- echo " -> $test: TEST-FAIL"
- restore_target
- exit
-fi
-
-sleep 5
-
-if ps aux | grep "[/]sbin/mdadm"
-then
- echo " -> get the process of mdadm."
-else
- echo " -> can't get the process of mdadm."
- echo " -> $test: TEST-FAIL"
- exec_service_on_target mdmonitor stop
- restore_target
- if [ "$service_status" = "active" ]
- then
- exec_service_on_target mdmonitor start
- fi
- exit
-fi
-
-exec_service_on_target mdmonitor stop
-
-if ps aux | grep "[/]sbin/mdadm"
-then
- echo " -> $test: TEST-FAIL"
-else
- echo " -> $test: TEST-PASS"
-fi
-restore_target
-if [ "$service_status" = "active" ]
-then
- exec_service_on_target mdmonitor start
-fi
deleted file mode 100644
@@ -1,71 +0,0 @@
-#!/bin/sh
-
-# In the target start opensafd, and confirm the process condition by command ps.
-
-test="opensafd"
-
-. ./fuego_board_function_lib.sh
-
-set_init_manager
-
-exec_service_on_target opensafd stop
-
-cp /etc/opensaf/nid.conf /etc/opensaf/nid.conf_bak cp
-/etc/opensaf/dtmd.conf /etc/opensaf/dtmd.conf_bak cp
-/etc/opensaf/node_name /etc/opensaf/node_name_bak cp /etc/plmcd.conf
-/etc/plmcd.conf_bak
-
-sed -i 's/REBOOT_TIMEOUT=60/REBOOT_TIMEOUT=0/g' /etc/opensaf/nid.conf
-sed -i 's/GROUP=opensaf/GROUP=root/g' /etc/opensaf/nid.conf sed -i
-'s/USER=opensaf/USER=root/g' /etc/opensaf/nid.conf
-
-sed -i 's/10.130.100.114/$test_target/g' /etc/opensaf/dtmd.conf
-
-echo $hostname > /etc/opensaf/node_name
-
-cd /usr/share/opensaf/immxml/; ./immxml-clustersize -s 1 sed -i 's/1
-SC-1/1 $test_host_name/g' nodes.cfg rm imm.xml.* ./immxml-configure; cp
-imm.xml.* /etc/opensaf/imm.xml
-
-sed -i 's/0020f/safEE=SC-1,safDomain=domain_1/g' /etc/plmcd.conf sed -i
-'s/10.105.1.3/$test_target/g' /etc/plmcd.conf sed -i
-'s/10.105.1.6/$test_target/g' /etc/plmcd.conf sed -i
-'s/1;os;Fedora;2.6.31/1;os;SUSE;2.6/g' /etc/plmcd.conf
-
-restore_target() {
- mv /etc/opensaf/nid.conf_bak /etc/opensaf/nid.conf
- mv /etc/opensaf/dtmd.conf_bak /etc/opensaf/dtmd.conf
- mv /etc/opensaf/node_name_bak /etc/opensaf/node_name
- mv /etc/plmcd.conf_bak /etc/plmcd.conf
- rm -rf /usr/share/opensaf/immxml/imm.xml.* /etc/opensaf/imm.xml
-/usr/share/opensaf/immxml/nodes.cfg
- }
-
-if exec_service_on_target opensafd start then
- echo " -> start of opensafd succeeded."
-else
- echo " -> start of opensafd failed."
- echo " -> $test: TEST-FAIL"
- exit
-fi
-
-sleep 5
-
-if ps aux | grep -v grep | grep "opensaf"
-then
- echo " -> get the process of opensafd."
-else
- echo " -> can't get the process of opensafd."
- echo " -> $test: TEST-FAIL"
- exec_service_on_target opensafd stop
- exit
-fi
-
-exec_service_on_target opensafd stop
-
-if ps aux | grep -v grep | grep "opensaf"
-then
- echo " -> $test: TEST-FAIL"
-else
- echo " -> $test: TEST-PASS"
-fi
deleted file mode 100644
@@ -1,51 +0,0 @@
-#!/bin/sh
-
-# In the target start smartd, and confirm the process condition by command ps.
-
-test="smartd"
-
-. ./fuego_board_function_lib.sh
-
-set_init_manager
-
-service_status=$(exec_service_on_target smartd is-active)
-
-exec_service_on_target smartd stop
-
-if exec_service_on_target smartd start
-then
- echo " -> start of smartd succeeded."
-else
- echo " -> start of smartd failed."
- echo " -> $test: TEST-FAIL"
- exit
-fi
-
-sleep 5
-
-if ps aux | grep "[/]usr/sbin/smartd"
-then
- echo " -> get the process of smartd."
-else
- echo " -> can't get the process of smartd."
- echo " -> $test: TEST-FAIL"
- if [ "$service_status" != "active" ]
- then
- exec_service_on_target smartd stop
- fi
- exit
-fi
-
-exec_service_on_target smartd stop
-
-if ps aux | grep "[/]usr/sbin/smartd"
-then
- echo " -> $test: TEST-FAIL"
-else
- echo " -> $test: TEST-PASS"
-fi
-
-if [ "$service_status" = "active" ]
-then
- exec_service_on_target smartd start
-fi
deleted file mode 100644
@@ -1,80 +0,0 @@
-#!/bin/sh
-
-# In the target start dhcpd6, and check the messages of /var/log/syslog.
-# check the keyword "dhcpd".
-
-test="syslog"
-
-. ./fuego_board_function_lib.sh
-
-set_init_manager
-logger_service=$(detect_logger_service)
-dhcrelay_status=$(exec_service_on_target dhcrelay is-active)
-dnsmasq_status=$(exec_service_on_target dnsmasq is-active)
-
-remote_ifeth=$(ifconfig | cut -d' ' -f1 | sed -n 1p)
-exec_service_on_target dhcrelay stop
-exec_service_on_target dnsmasq stop
-exec_service_on_target $logger_service stop
-
-if [ -f /var/log/syslog ]
-then
- mv /var/log/syslog /var/log/syslog_bak
-fi
-
-if [ -f /etc/default/dhcp-relay ]
-then
- cp /etc/default/dhcp-relay /etc/default/dhcp-relay_bak
-fi
-
-restore_target() {
- if [ -f /etc/default/dhcp-relay_bak ]
- then
- mv /etc/default/dhcp-relay_bak /etc/default/dhcp-relay
- fi
- if [ -f /var/log/syslog_bak ]
- then
- mv /var/log/syslog_bak /var/log/syslog
- fi
-}
-
-echo "SERVERS=\"192.168.246.100\"" > /etc/default/dhcp-relay
-echo "INTERFACES=\"$remote_ifeth\"" >> /etc/default/dhcp-relay
-echo "OPTIONS=\"\"" >> /etc/default/dhcp-relay
-
-exec_service_on_target $logger_service restart
-
-if exec_service_on_target dhcrelay start
-then
- echo " -> start of dhcrelay succeeded."
-else
- echo " -> start of dhcrelay failed."
- echo " -> $test: TEST-FAIL"
- restore_target
- if [ "$dnsmasq_status" = "active" ]
- then
- exec_service_on_target dnsmasq start
- fi
- exit
-fi
-
-sleep 10
-
-if cat /var/log/syslog | grep "DHCP Relay"
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
-
-exec_service_on_target dhcrelay stop
-restore_target
-
-if [ "$dhcrelay_status" = "active" ]
-then
- exec_service_on_target dhcrelay start
-fi
-if [ "$dnsmasq_status" = "active" ]
-then
- exec_service_on_target dnsmasq start
-fi
deleted file mode 100644
@@ -1,79 +0,0 @@
-#!/bin/sh
-
-# In the target to start dovecot dovecot, to confirm the acquisition of the log.
-# check the keyword "dovecot".
-
-test="logfile"
-
-dovecot_status=$(get_service_status dovecot)
-logger_service=$(detect_logger_service)
-postfix_status=$(get_service_status postfix)
-
-exec_service_on_target postfix stop
-exec_service_on_target dovecot stop
-
-if [ -f /var/log/mail.log ]
-then
- mv /var/log/mail.log /var/log/mail.log_bak
-fi
-
-if [ -f /var/log/messages ]
-then
- mv /var/log/messages /var/log/messages_bak
-fi
-
-restore_target() {
- if [ "$postfix_status" = "inactive" ]
- then
- exec_service_on_target postfix stop
- fi
- if [ -f /var/log/messages_bak ]
- then
- mv /var/log/messages_bak /var/log/messages
- fi
- if [ -f /var/log/mail.log_bak ]
- then
- mv /var/log/mail.log_bak /var/log/mail.log
- fi
-}
-
-exec_service_on_target $logger_service restart
-
-sleep 3
-
-exec_service_on_target postfix start
-
-if exec_service_on_target dovecot start
-then
- echo " -> start of dovecot succeeded."
-else
- echo " -> start of dovecot failed."
- echo " -> $test: TEST-FAIL"
- restore_target
- exit
-fi
-
-sleep 3
-
-if grep "dovecot" /var/log/mail.log
-then
- echo " -> grep dovecto from mail.log"
- echo " -> $test: TEST-PASS"
-else
- echo " -> can't grep dovecot from mail.log"
- if grep "dovecot" /var/log/messages
- then
- echo " -> grep dovecto from messages"
- echo " -> $test: TEST-PASS"
- else
- echo " -> can't grep dovecot from messages"
- echo " -> $test: TEST-FAIL"
- fi
-fi
-
-exec_service_on_target dovecot stop
-restore_target
-if [ "$dovecot_status" = "active" -o "$dovecot_status" = "unknown" ]
-then
- exec_service_on_target dovecot start
-fi
deleted file mode 100644
GIT binary patch
literal 0
HcmV?d00001
literal 17814
zcmV)RK(oIeiwFP(?i*MD1MEC)Y+O}#*I!9&633xo351eMAi)myc*b7|aSV16hY2_z
z>o`CO=J7o9#`88a?+x$6AJFVZ3b5-9p{Z2SZM#2Ee<0LWDqSHIp)NRt5~<oBVFhZ{
z-BuA@RyH3J?52oz0r#By@#eidGfCJ$RMcFE@4M%obMCq4oO|xM?_<Vu=2%Me4A*np
z$=6ikP&RJtW;GPGX4i?%c)X`Go`@$p2>gq8br9P9bqN$MzU%1@rNpsq?|gU{>i>q8
z@sR!DvfyPMLr*inSLP2FYyZyfuFj5)39x^6M`!01`(KW7KKqMCEOm)vpn-e3x+>W}
z(F4Yg+J9rbV<VyQuVjW7DF4sxf3s<&a(>#NTcowKcTn0;1pAihdL>W*nKlQ)|EA?p
z*U$ID<%Dgf=?2HQEW@GAyj9R0J>Sw>#Lerb)r=RqGoEUtsVrDv16)rW7;OQR#~3E1
zfiqIiO!wAfY2QFOkRs!D1yT1r2e7dcqhYU^q0KlDy{V6Ov@nny0ZXRffGB_ib21#K
zm9F(&ecafr$86u*0$s*9Ol3mP`Nka&T5DT+14_s6e8-|~iC)3(P<TYoHk;X;5~H+*
zZlUoO(R=>E*QIG5e3FiVmiuTNMr@^FUM(%XA^M6UL{ws0rq{e4FI#$r77^4+Gqyv=
z4bL;Jahf(Vx}Wp-OiOi}g1?^8ydF%^N*S+K%FWzLrD(m#nIlqN8mffTcWkgeW3zkz
z&`==Jq;7glpj6h(8In3>=L<R03k2evgwoc6)6qV<F3q$AjX*a-FL7*hl|(!<;+RE;
zLzgsLsb467#rwG0!_G@7A22SPC~mU}5YWGg_F|-PecNs2tc}#S^-;5uv5YCOQ@n)>
z-Edjf|3$?AOCE#m|J{}L|BgiWMs@%1=}B~6iT{_Qd~a}QM|D+I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vzVoMgfjL|+UT8of6xgGE_k;mVql(S_b0N3~(
zuVq+l9;(-{{A%L4jvQ$R{X~_jYtJpgx2drMBe&(JN1+Y&g(u1jBI0>riMS$Xsj~bt
zi?EW^#;}H9b=XeiBeJ6e;zQCMq>9M}G$|K#wxVQ)$Bbn3vgXmh{Ex{(OnkEEH1ye2
zP^IZKibb{!tK#<cny09a!pMZB!lfwuq<Xj++eJECbs%`gJ)U<gJXxBH`ds1Pv+{S|
zWZ|&hHy=<arm1dJc8I_qNuo3BHQQ}hUWNG;7adWI3lSl;j-Ns6Z9`>PzHwCaEwv5d
zR+Y{owZ}7feZ;HQjNHOUe1zp!U)Vu|Uo>xyLmc7|hd9I`4snP>9O4j%IK&|iafm}4
t;t+>8#32rGh(jFW5QjL#Ar5hfLmc7|hd9I`4si$z{|}+)FiZew0RX9^0N(%r
deleted file mode 100644
@@ -1,29 +0,0 @@
-#!/bin/sh
-
-# In target, run command ifdown/ifup.
-# option: none
-
-test="ifdown/ifup"
-
-if [ ! -f /etc/sysconfig/network-scripts/ifcfg-lo ]
-then
- echo " -> $test: ifcfg file is not exist."
- echo " -> $test: TEST-SKIP"
- exit 0
-fi
-
-if ifdown lo
-then
- echo " -> $test: ifdown lo succeeded."
-else
- echo " -> $test: ifdown lo failed."
- echo " -> $test: TEST-FAIL"
- exit 0
-fi
-
-if ifup lo
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
deleted file mode 100644
@@ -1,16 +0,0 @@
-#!/bin/sh
-
-# The testscript checks the command crda.
-# option: -h
-
-test="crda"
-
-crda -h > log 2>&1
-if cat log | grep "Usage"
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
-rm log
-
deleted file mode 100644
@@ -1,30 +0,0 @@
-#!/bin/sh
-
-# In the target to execute command chvt and confirm the result.
-
-test="chvt"
-
-if tty | grep "^not" ; then
- echo " -> $test: test script not running in a changable tty"
- echo " -> $test: TEST-SKIP"
- exit 0
-fi
-
-tty_path=$(tty)
-# use shell variable sub-string removal to isolate the tty number
-anum=${tty_path##*/}
-if [ $anum -eq 1 ]
-then
- bnum=$(($anum+1))
-else
- bnum=$(($anum-1))
-fi
-echo "$test: Changing to VT $bnum"
-if chvt $bnum
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi;
-echo "$test: Changing back to VT $bnum"
-chvt $anum
deleted file mode 100644
@@ -1,13 +0,0 @@
-#!/bin/sh
-
-# In the target to execute command kbdrate and confirm the result.
-# option: -V
-
-test="kbdrate1"
-
-if kbdrate | grep "Typematic"
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
deleted file mode 100644
@@ -1,13 +0,0 @@
-#!/bin/sh
-
-# In the target to execute command kbdrate and confirm the result.
-# option : -r
-
-test="kbdrate2"
-
-if kbdrate -r 15 -d 250
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
deleted file mode 100644
@@ -1,56 +0,0 @@
-#!/bin/sh
-
-# In the target start logd, and check the messages of /var/log/syslog.
-# check the keyword "logd".
-
-test="syslog"
-
-. ./fuego_board_function_lib.sh
-
-set_init_manager
-logger_service=$(detect_logger_service)
-
-logd_status=$(exec_service_on_target logd is-active)
-
-exec_service_on_target logd stop
-exec_service_on_target $logger_service stop
-
-if [ -f /var/log/syslog ]
-then
- mv /var/log/syslog /var/log/syslog_bak
-fi
-
-restore_target(){
- if [ -f /var/log/syslog_bak ]
- then
- mv /var/log/syslog_bak /var/log/syslog
- fi
-}
-
-exec_service_on_target $logger_service restart
-
-if exec_service_on_target logd start
-then
- echo " -> start of logd succeeded."
-else
- echo " -> start of logd failed."
- echo " -> $test: TEST-FAIL"
- restore_target
- exit
-fi
-
-sleep 10
-
-if cat /var/log/syslog | grep "logd"
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
-
-exec_service_on_target logd stop
-restore_target
-if [ "$logd_status" = "active" ]
-then
- exec_service_on_target logd start
-fi
deleted file mode 100644
@@ -1,40 +0,0 @@
-#!/bin/sh
-
-# Run logwatch and print the log to standard output.
-# option: --detail
-
-test="detail"
-
-. ./fuego_board_function_lib.sh
-
-set_init_manager
-logger_service=$(detect_logger_service)
-
-service_status=$(get_service_status $logger_service)
-
-exec_service_on_target $logger_service stop
-
-exec_service_on_target $logger_service restart
-cp /usr/share/logwatch/default.conf/services/*.conf /etc/logwatch/conf/services
-
-mv /etc/logwatch/conf/logwatch.conf /etc/logwatch/conf/logwatch.conf_bak
-cp data/logwatch.conf /etc/logwatch/conf/logwatch.conf
-
-mkdir test_dir
-logwatch --detail 10 --service kernel > test_dir/test.log
-
-if cat test_dir/test.log | grep "Kernel"
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
-
-rm -fr test_dir
-rm -f /etc/logwatch/conf/services/*.conf
-
-if [ "$service_status" = "inactive" ]
-then
- exec_service_on_target $logger_service stop
-fi
-mv /etc/logwatch/conf/logwatch.conf_bak /etc/logwatch/conf/logwatch.conf
deleted file mode 100644
@@ -1,62 +0,0 @@
-#!/bin/sh
-
-# Run logwatch and print the log to standard output.
-# option: --mailto
-
-test="mailto"
-
-. ./fuego_board_function_lib.sh
-
-set_init_manager
-logger_service=$(detect_logger_service)
-
-syslog_status=$(get_service_status $logger_service)
-postfix_status=$(get_service_status postfix)
-exec_service_on_target $logger_service stop
-exec_service_on_target postfix stop
-
-exec_service_on_target $logger_service restart
-cp /usr/share/logwatch/default.conf/services/*.conf /etc/logwatch/conf/services
-
-mv /etc/logwatch/conf/logwatch.conf /etc/logwatch/conf/logwatch.conf_bak
-cp data/logwatch.conf /etc/logwatch/conf/logwatch.conf
-
-mv /etc/postfix/main.cf /etc/postfix/main.cf_bak
-cp data/main.cf /etc/postfix/main.cf
-
-exec_service_on_target postfix restart
-
-if [ -f /var/spool/mail/$USER ]
-then
- mv /var/spool/mail/$USER /var/spool/mail/"$USER"_bak
-fi
-
-logwatch --mailto $USER
-
-postqueue -f
-
-sleep 3
-
-if tail /var/spool/mail/$USER | grep "Logwatch"
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
-
-if [ "$syslog_status" = "inactive" ]
-then
- exec_service_on_target $logger_service stop
-fi
-if [ "$postfix_status" = "inactive" ]
-then
- exec_service_on_target postfix stop
-fi
-mv /etc/logwatch/conf/logwatch.conf_bak /etc/logwatch/conf/logwatch.conf
-mv /etc/postfix/main.cf_bak /etc/postfix/main.cf
-if [ ! -f /var/spool/mail/"$USER"_bak ]
-then
- rm /var/spool/mail/$USER
-else
- mv /var/spool/mail/"$USER"_bak /var/spool/mail/$USER
-fi
deleted file mode 100644
@@ -1,35 +0,0 @@
-#!/bin/sh
-
-# In target, run comannd sshd.
-
-test="sshd"
-
-. ./fuego_board_function_lib.sh
-
-set_init_manager
-
-exec_service_on_target sshd stop
-if ps aux | grep "[s]shd"
-then
- echo " -> stop sshd failed."
- echo " -> $test: TEST-FAIL"
- exit
-else
- echo " -> stop sshd succeeded."
-fi
-
-if exec_service_on_target sshd start
-then
- echo " -> start of sshd succeeded."
-else
- echo " -> start of sshd failed."
- echo " -> $test: TEST-FAIL"
- exit
-fi
-
-if ps aux | grep "[s]shd"
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
deleted file mode 100644
@@ -1,12 +0,0 @@
-#!/bin/sh
-
-# In target, check if telnetd is exist.
-
-test="telnetd"
-
-if ls /etc/xinetd.d/ | grep "telnet"
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
deleted file mode 100644
@@ -1,72 +0,0 @@
-#!/bin/sh
-
-# In the target start multipathd, and check the messages of /var/log/syslog.
-# check the keyword "multipathd".
-
-test="syslog"
-
-logger_service=$(detect_logger_service)
-
-service_status=$(get_service_status multipathd)
-
-exec_service_on_target multipathd stop
-exec_service_on_target $logger_service stop
-
-if [ -f /etc/multipath.conf ]
-then
- cp /etc/multipath.conf /etc/multipath.conf_bak
-fi
-
-if [ -f /etc/multipath.conf.example ]
-then
- cp /etc/multipath.conf.example /etc/multipath.conf
-fi
-
-if [ -f /var/log/syslog ]
-then
- mv /var/log/syslog /var/log/syslog_bak
-fi
-
-restore_target() {
- if [ -f /etc/multipath.conf_bak ]
- then
- mv /etc/multipath.conf_bak /etc/multipath.conf
- else
- rm -f /etc/multipath.conf
- fi
-
- if [ -f /var/log/syslog_bak ]
- then
- mv /var/log/syslog_bak /var/log/syslog
- fi
-}
-
-exec_service_on_target $logger_service restart
-
-sleep 2
-
-if exec_service_on_target multipathd start
-then
- echo " -> start of multipathd succeeded."
-else
- echo " -> start of multipathd failed."
- echo " -> $test: TEST-FAIL"
- restore_target
- exit
-fi
-
-sleep 10
-
-if cat /var/log/syslog | grep "multipath"
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
-
-exec_service_on_target multipathd stop
-restore_target
-if [ "$service_status" = "active" -o "$service_status" = "unknown" ]
-then
- exec_service_on_target multipathd start
-fi
deleted file mode 100644
@@ -1,55 +0,0 @@
-#!/bin/sh
-
-# In the target start snmpd.
-# Check the log of snmpd.
-
-test="snmpd_syslog"
-
-logger_service=$(detect_logger_service)
-
-snmpd_status=$(get_service_status snmpd)
-snmpd_logfile=$(get_service_logfile)
-
-exec_service_on_target snmpd stop
-exec_service_on_target $logger_service stop
-
-if [ -f $snmpd_logfile ]
-then
- mv $snmpd_logfile $snmpd_logfile"_bak"
-fi
-
-restore_target() {
- if [ -f $snmpd_logfile"_bak" ]
- then
- mv $snmpd_logfile"_bak" $snmpd_logfile
- fi
-}
-
-exec_service_on_target $logger_service restart
-
-sleep 2
-
-if exec_service_on_target snmpd start
-then
- echo " -> start of snmpd succeeded."
-else
- echo " -> start of snmpd failed."
- echo " -> $test: TEST-FAIL"
- restore_target
- exit
-fi
-
-sleep 3
-
-if cat $snmpd_logfile | grep "snmpd"
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
-
-if [ "$snmpd_status" = "inactive" ]
-then
- exec_service_on_target snmpd stop
-fi
-restore_target
deleted file mode 100644
@@ -1,63 +0,0 @@
-#!/bin/sh
-
-# In the target start snmpd.
-# Check the log of IP address.
-
-test="snmpd_syslog_ip"
-
-logger_service=$(detect_logger_service)
-
-snmpd_status=$(get_service_status snmpd)
-snmpd_logfile=$(get_service_logfile)
-exec_service_on_target snmpd stop
-exec_service_on_target $logger_service stop
-
-if [ -f $snmpd_logfile ]
-then
- mv $snmpd_logfile $snmpd_logfile"_bak"
-fi
-
-mv /etc/hosts /etc/hosts_bak
-cp data/bind9/hosts /etc/hosts
-mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf_bak
-cp data/net-snmp/snmpd.conf /etc/snmp/snmpd.conf
-
-restore_target() {
- mv /etc/hosts_bak /etc/hosts
- mv /etc/snmp/snmpd.conf_bak /etc/snmp/snmpd.conf
- if [ -f $snmpd_logfile"_bak" ]
- then
- mv $snmpd_logfile"_bak" $snmpd_logfile
- fi
-}
-
-exec_service_on_target $logger_service restart
-
-sleep 2
-
-if exec_service_on_target snmpd start
-then
- echo " -> start of snmpd succeeded."
-else
- echo " -> start of snmpd failed."
- echo " -> $test: TEST-FAIL"
- restore_target
- exit
-fi
-
-snmpget -v1 -c RWIINCOM -M /usr/share/snmp/mibs localhost system.sysDescr.0
-
-sleep 3
-
-if cat $snmpd_logfile | grep "127.0.0.1"
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
-
-if [ "$snmpd_status" = "inactive" ]
-then
- exec_service_on_target snmpd stop
-fi
-restore_target
deleted file mode 100644
@@ -1,60 +0,0 @@
-#!/bin/sh
-
-# In the target start snmptrapd, and check the syslog.
-# check the keyword "SNMPv2-MIB::coldStart".
-
-test="snmptrapd_coldstart.sh"
-
-snmptrapd_status=$(get_service_status snmptrapd)
-snmptrapd_logfile=$(get_service_logfile)
-logger_service=$(detect_logger_service)
-
-exec_service_on_target snmptrapd stop
-exec_service_on_target $logger_service stop
-
-mv /etc/snmp/snmptrapd.conf /etc/snmp/snmptrapd.conf_bak
-cp data/net-snmp/snmptrapd.conf /etc/snmp/snmptrapd.conf
-
-restore_target() {
- mv /etc/snmp/snmptrapd.conf_bak /etc/snmp/snmptrapd.conf
- if [ -f $snmptrapd_logfile"_bak" ]
- then
- mv $snmptrapd_logfile"_bak" $snmptrapd_logfile
- fi
-}
-
-if [ -f $snmptrapd_logfile ]
-then
- mv $snmptrapd_logfile $snmptrapd_logfile"_bak"
-fi
-
-exec_service_on_target $logger_service restart
-
-sleep 2
-
-if exec_service_on_target snmptrapd start
-then
- echo " -> start of snmptrapd succeeded."
-else
- echo " -> start of snmptrapd failed."
- echo " -> $test: TEST-FAIL"
- restore_target
- exit
-fi
-
-snmptrap -v2c -c "" -M /usr/share/snmp/mibs localhost "" SNMPv2-MIB::coldStart
-
-sleep 3
-
-if cat $snmptrapd_logfile | grep "SNMPv2-MIB::coldStart"
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
-
-if [ "$snmptrapd_status" = "inactive" ]
-then
- exec_service_on_target snmptrapd stop
-fi
-restore_target
deleted file mode 100644
@@ -1,54 +0,0 @@
-#!/bin/sh
-
-# In the target start snmptrapd, and check if the $snmptrapd_logfile
-# check the keyword "snmptrapd".
-
-test="snmptrapd_syslog"
-
-logger_service=$(detect_logger_service)
-
-snmptrapd_status=$(get_service_status snmptrapd)
-snmptrapd_logfile=$(get_service_logfile)
-exec_service_on_target snmptrapd stop
-exec_service_on_target $logger_service stop
-
-if [ -f $snmptrapd_logfile ]
-then
- mv $snmptrapd_logfile $snmptrapd_logfile"_bak"
-fi
-
-restore_target() {
- if [ -f $snmptrapd_logfile"_bak" ]
- then
- mv $snmptrapd_logfile"_bak" $snmptrapd_logfile
- fi
-}
-
-exec_service_on_target $logger_service restart
-
-sleep 3
-
-if exec_service_on_target snmptrapd start
-then
- echo " -> start of snmptrapd succeeded."
-else
- echo " -> start of snmptrapd failed."
- echo " -> $test: TEST-FAIL"
- restore_target
- exit
-fi
-
-sleep 3
-
-if cat $snmptrapd_logfile | grep "snmptrapd"
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
-
-if [ "$snmptrapd_status" = "inactive" ]
-then
- exec_service_on_target snmptrapd stop
-fi
-restore_target
deleted file mode 100644
@@ -1,61 +0,0 @@
-#!/bin/sh
-
-# In the target start snmptrapd, and check the syslog.
-# check the keyword "SNMPv2-MIB::warmStart".
-
-test="snmptrapd_warmstart"
-
-snmptrapd_status=$(get_service_status snmptrapd)
-snmptrapd_logfile=$(get_service_logfile)
-logger_service=$(detect_logger_service)
-
-exec_service_on_target snmptrapd stop
-exec_service_on_target $logger_service stop
-
-mv /etc/snmp/snmptrapd.conf /etc/snmp/snmptrapd.conf_bak
-cp data/net-snmp/snmptrapd.conf /etc/snmp/snmptrapd.conf
-
-restore_target() {
- mv /etc/snmp/snmptrapd.conf_bak /etc/snmp/snmptrapd.conf
- if [ -f $snmptrapd_logfile"_bak" ]
- then
- mv $snmptrapd_logfile"_bak" $snmptrapd_logfile
- fi
-}
-
-
-if [ -f $snmptrapd_logfile ]
-then
- mv $snmptrapd_logfile $snmptrapd_logfile"_bak"
-fi
-
-exec_service_on_target $logger_service restart
-
-sleep 2
-
-if exec_service_on_target snmptrapd start
-then
- echo " -> start of snmptrapd succeeded."
-else
- echo " -> start of snmptrapd failed."
- echo " -> $test: TEST-FAIL"
- restore_target
- exit
-fi
-
-snmptrap -v2c -c "" -M /usr/share/snmp/mibs localhost "" SNMPv2-MIB::warmStart
-
-sleep 3
-
-if cat $snmptrapd_logfile | grep "SNMPv2-MIB::warmStart"
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
-
-if [ "$snmptrapd_status" = "inactive" ]
-then
- exec_service_on_target snmptrapd stop
-fi
-restore_target
deleted file mode 100644
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-# In target, run command netstat to display listening socket information.
-# option: -a
-
-test="netstat2"
-
-mkdir test_dir
-netstat -a > test_dir/netstat.log
-
-if cat test_dir/netstat.log | grep telnet
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi;
-rm -fr test_dir
deleted file mode 100644
@@ -1,90 +0,0 @@
-#!/bin/sh
-
-# In the target start nfs-server, and check the messages of /var/log/syslog.
-# check the keyword "dhcpd".
-
-test="nfsserver_syslog"
-
-. ./fuego_board_function_lib.sh
-
-set_init_manager
-logger_service=$(detect_logger_service)
-
-if [ "$init_manager" = "systemd" ]
-then
- service_name="nfs-server"
-else
- service_name="nfsserver"
-fi
-
-nfs_status=$(get_service_status $service_name)
-rpcbind_status=$(get_service_status rpcbind)
-
-exec_service_on_target rpcbind stop
-exec_service_on_target $service_name stop
-exec_service_on_target $logger_service stop
-
-if [ -f /var/log/syslog ]
-then
- mv /var/log/syslog /var/log/syslog_bak
-fi
-
-if [ -f /etc/exports ]
-then
- mv /etc/exports /etc/exports_bak
-fi
-
-touch /etc/exports
-
-restore_target() {
- if [ -f /etc/exports_bak ]
- then
- mv /etc/exports_bak /etc/exports
- else
- rm -f /etc/exports
- fi
-
- if [ -f /var/log/syslog_bak ]
- then
- mv /var/log/syslog_bak /var/log/syslog
- fi
-}
-
-exec_service_on_target $logger_service restart
-exec_service_on_target rpcbind start
-if exec_service_on_target $service_name start
-then
- echo " -> start of nfs-server succeeded."
-else
- echo " -> start of nfs-server failed."
- echo " -> $test: TEST-FAIL"
- if [ "$rpcbind_status" = "inactive" ]
- then
- exec_service_on_target rpcbind stop
- fi
- restore_target
- exit
-fi
-
-sleep 10
-
-if cat /var/log/syslog | grep "NFS"
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
-
-exec_service_on_target rpcbind stop
-exec_service_on_target $service_name stop
-restore_target
-
-if [ "$nfs_status" = "active" -o "$nfs_status" = "unknown" ]
-then
- exec_service_on_target $service_name start
-fi
-
-if [ "$rpcbind_status" = "active" -o "$rpcbind_status" = "unknown" ]
-then
- exec_service_on_target rpcbind start
-fi
deleted file mode 100644
@@ -1,52 +0,0 @@
-#!/bin/sh
-
-# In the target start nscd, and check the messages of /var/log/syslog.
-# check the keyword "nscd".
-
-test="syslog"
-
-logger_service=$(detect_logger_service)
-
-nscd_status=$(exec_service_on_target nscd status)
-
-exec_service_on_target nscd stop
-exec_service_on_target $logger_service stop
-
-if [ -f /var/log/syslog ]
-then
- mv /var/log/syslog /var/log/syslog_bak
-fi
-
-restore_target(){
- if [ -f /var/log/syslog_bak ]
- then
- mv /var/log/syslog_bak /var/log/syslog
- fi
-}
-
-exec_service_on_target $logger_service restart
-
-if exec_service_on_target nscd start
-then
- echo " -> start of nscd succeeded."
-else
- echo " -> start of nscd failed."
- echo " -> $test: TEST-FAIL"
- restore_target
- exit
-fi
-
-sleep 10
-
-if cat /var/log/syslog | grep "starting up"
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
-
-if [ "$nscd_status" = "inactive" ]
-then
- exec_service_on_target nscd stop
-fi
-restore_target
deleted file mode 100644
@@ -1,28 +0,0 @@
-#!/bin/sh
-
-# In target, run command ntptime.
-# option: none
-
-test="ntptime"
-
-service_status=$(get_service_status ntpd)
-
-if exec_service_on_target ntpd restart
-then
- echo " -> $test: ntpd restart succeeded."
-else
- echo " -> $test: ntpd restart failed."
- echo " -> $test: TEST-FAIL"
- exit
-fi
-
-if ntptime | grep OK
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi;
-if [ "$service_status" = "inactive" ]
-then
- exec_service_on_target ntpd stop
-fi
deleted file mode 100644
@@ -1,57 +0,0 @@
-#!/bin/sh
-
-# In target start ntpd and verify the process of creating the process ID file by ntpd.
-# option: none.
-
-test="pid"
-
-service_status=$(get_service_status ntpd)
-
-exec_service_on_target ntpd stop
-
-if [ -f /var/run/ntpd.pid ]
-then
- rm -f /var/run/ntpd.pid
-fi
-
-if exec_service_on_target ntpd start
-then
- echo " -> $test: ntpd start succeeded."
-else
- echo " -> $test: ntpd start failed."
- echo " -> $test: TEST-FAIL"
- exit
-fi
-
-if ls /var/run/ntpd.pid
-then
- echo " -> $test: ntpd pid is exist."
-else
- echo " -> $test: ntpd pid is not exist."
- echo " -> $test: TEST-FAIL"
- if [ "$service_status" = "inactive" ]
- then
- exec_service_on_target ntpd stop
- fi
- exit
-fi
-
-if exec_service_on_target ntpd stop
-then
- echo " -> $test: ntpd stop succeeded."
-else
- echo " -> $test: ntpd stop failed."
- echo " -> $test: TEST-FAIL"
- exit
-fi
-
-if test ! -f /var/run/ntpd.pid
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
-if [ "$service_status" = "active" -o "$service_status" = "unknown" ]
-then
- exec_service_on_target ntpd start
-fi
deleted file mode 100644
@@ -1,55 +0,0 @@
-#!/bin/sh
-
-# In target, start ntpd and verify the ntpd syslog.
-# option: none
-
-test="syslog"
-
-service_status=$(get_service_status ntpd)
-logger_service=$(detect_logger_service)
-
-ntpd_logfile=$(get_service_logfile)
-
-exec_service_on_target ntpd stop
-exec_service_on_target $logger_service stop
-
-if [ -f $ntpd_logfile ]
-then
- mv $ntpd_logfile $ntpd_logfile"_bak"
-fi
-
-restore_target() {
- if [ -f $ntpd_logfile ]
- then
- mv $ntpd_logfile $ntpd_logfile"_bak"
- fi
-}
-
-exec_service_on_target $logger_service restart
-
-sleep 3
-
-if exec_service_on_target ntpd start
-then
- echo " -> $test: ntpd start succeeded."
-else
- echo " -> $test: ntpd start failed."
- echo " -> $test: TEST-FAIL"
- restore_target
- exit
-fi
-
-sleep 10
-
-if cat $ntpd_logfile | grep "ntpd"
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
-
-if [ "$service_status" = "inactive" ]
-then
- exec_service_on_target ntpd stop
-fi
-restore_target
deleted file mode 100644
@@ -1,61 +0,0 @@
-#!/bin/sh
-
-# In the target start sshd, and check if the /var/run/sshd.pid is exist.
-
-test="pidfile"
-
-. ./fuego_board_function_lib.sh
-
-set_init_manager
-
-service_status=$(exec_service_on_target sshd is-active)
-
-exec_service_on_target sshd.socket stop
-
-exec_service_on_target sshdgenkeys restart
-
-if exec_service_on_target sshd.socket start
-then
- echo " -> start sshd succeeded."
-else
- echo " -> start sshd failed."
- echo " -> $test: TEST-FAIL"
- exit
-fi
-
-sleep 5
-
-if ls /var/run/sshd.pid
-then
- echo " -> /var/run/sshd.pid is exist."
-else
- echo " -> /var/run/sshd.pid is not exist."
- echo " -> $test: TEST-FAIL"
- if [ $service_status != "active" ]
- then
- exec_service_on_target sshd.socket stop
- fi
- exit
-fi
-
-if exec_service_on_target sshd.socket stop
-then
- echo " -> stop sshd succeeded."
-else
- echo " -> stop sshd failed."
- echo " -> $test: TEST-FAIL"
- exit
-fi
-
-sleep 5
-
-if test ! -f /var/run/sshd.pid
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
-if [ $service_status = "active" ]
-then
- exec_service_on_target sshd.socket start
-fi
deleted file mode 100644
@@ -1,49 +0,0 @@
-#!/bin/sh
-
-# In the target start sshd, and check the messages of /var/log/syslog.
-# check the keyword "sshd".
-
-test="syslog"
-
-. ./fuego_board_function_lib.sh
-
-set_init_manager
-logger_service=$(detect_logger_service)
-
-exec_service_on_target sshd.socket stop
-exec_service_on_target $logger_service stop
-
-if [ -f /var/log/syslog ]
-then
- mv /var/log/syslog /var/log/syslog_bak
-fi
-
-restore_target(){
- if [ -f /var/log/syslog_bak ]
- then
- mv /var/log/syslog_bak /var/log/syslog
- fi
-}
-
-exec_service_on_target $logger_service restart
-
-if exec_service_on_target sshd.socket start
-then
- echo " -> start of sshd succeeded."
-else
- echo " -> start of sshd failed."
- echo " -> $test: TEST-FAIL"
- restore_target
- exit
-fi
-
-sleep 5
-
-if cat /var/log/syslog | grep "starting up"
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
-
-restore_target
deleted file mode 100644
@@ -1,31 +0,0 @@
-#!/bin/sh
-
-# In the target, run openvpn and check the pidfile.
-
-test="pid_$1"
-
-test_type=$1
-
-setup_routine $test_type
-
-if exec_service_on_target $service_name start
-then
- echo " -> $test: service start succeeded."
-else
- echo " -> $test: service start failed."
- echo " -> $test: TEST-FAIL"
- restore_routine
- exit
-fi
-
-if [ -f $pid_file ]
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
-if [ "$service_status" = "inactive" ]
-then
- exec_service_on_target $service_name stop
-fi
-restore_routine
deleted file mode 100644
@@ -1,31 +0,0 @@
-#!/bin/sh
-
-# In the target, run openvpn and check the pidfile.
-
-test="pid_$1"
-
-test_type=$1
-
-setup_routine $test_type
-
-if exec_service_on_target $service_name start
-then
- echo " -> $test: service start succeeded."
-else
- echo " -> $test: service start failed."
- echo " -> $test: TEST-FAIL"
- restore_routine
- exit
-fi
-
-if [ -f $pid_file ]
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
-if [ "$service_status" = "inactive" ]
-then
- exec_service_on_target $service_name stop
-fi
-restore_routine
deleted file mode 100644
@@ -1,42 +0,0 @@
-#!/bin/sh
-
-# In the target, run openvpn and check the message of syslog-ng.
-
-test="syslog-ng_$1"
-
-test_type=$1
-
-setup_routine $test_type
-logger_service=$(detect_logger_service)
-openvpn_logfile=$(get_service_logfile)
-
-exec_service_on_target $logger_service stop
-
-if [ -f $openvpn_logfile ]
-then
- mv $openvpn_logfile $openvpn_logfile"_bak"
-fi
-
-exec_service_on_target $logger_service restart
-
-sleep 2
-
-exec_service_on_target $service_name start
-
-sleep 5
-
-if cat $openvpn_logfile | grep OpenVPN
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
-
-exec_service_on_target $service_name stop
-
-restore_routine
-
-if [ "$service_status" = "active" -o "$service_status" = "unknown" ]
-then
- exec_service_on_target $service_name start
-fi
deleted file mode 100644
@@ -1,60 +0,0 @@
-#!/bin/sh
-
-# In the target start openwsmand, and check the messages of /var/log/syslog.
-# check the keyword "openwsmand".
-
-test="syslog"
-
-. ./fuego_board_function_lib.sh
-
-set_init_manager
-logger_service=$(detect_logger_service)
-
-openwsmand_status=$(exec_service_on_target openwsmand is-active)
-
-exec_service_on_target openwsmand stop
-exec_service_on_target $logger_service stop
-
-cp /etc/openwsman/ssleay.cnf /etc/openwsman/ssleay.cnf_bak
-
-sed -i 's/random/urandom/g' /etc/openwsman/ssleay.cnf
-
-if [ -f /var/log/syslog ]
-then
- mv /var/log/syslog /var/log/syslog_bak
-fi
-
-restore_target(){
- if [ -f /var/log/syslog_bak ]
- then
- mv /var/log/syslog_bak /var/log/syslog
- fi
- mv /etc/openwsman/ssleay.cnf_bak /etc/openwsman/ssleay.cnf
-}
-
-exec_service_on_target $logger_service restart
-
-if exec_service_on_target openwsmand start
-then
- echo " -> start of openwsmand succeeded."
-else
- echo " -> start of openwsmand failed."
- echo " -> $test: TEST-FAIL"
- restore_target
- exit
-fi
-
-sleep 10
-
-if cat /var/log/syslog | grep "openwsman"
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
-
-if [ "$openwsmand_status" != "active" ]
-then
- exec_service_on_target openwsmand stop
-fi
-restore_target
deleted file mode 100644
@@ -1,72 +0,0 @@
-#!/bin/sh
-
-# In the target start ospf6d and zebra, then confirm the log file.
-# check the /var/log/quagga/ospf6d.log file.
-
-test="logfile"
-
-. ./fuego_board_function_lib.sh
-
-set_init_manager
-
-exec_service_on_target ospf6d stop
-exec_service_on_target zebra stop
-
-if [ ! -d /var/log/quagga ]
-then
- mkdir /var/log/quagga
- chown -R quagga:quagga /var/log/quagga
-fi
-
-if [ -f /var/log/quagga/ospf6d.log ]
-then
- mv /var/log/quagga/ospf6d.log /var/log/quagga/ospf6d.log.bck
-fi
-
-#Backup the config file
-mv /etc/quagga/ospf6d.conf /etc/quagga/ospf6d.conf.bck
-mv /etc/quagga/zebra.conf /etc/quagga/zebra.conf.bck
-
-cp data/ospf6d.conf /etc/quagga/ospf6d.conf
-cp data/zebra.conf /etc/quagga/zebra.conf
-chown quagga:quagga /etc/quagga/*.conf
-
-if exec_service_on_target zebra start
-then
- echo " -> start of zebra succeeded."
-else
- echo " -> start of zebra failed."
- echo " -> $test: TEST-FAIL"
- exit
-fi
-
-if exec_service_on_target ospf6d start
-then
- echo " -> start of ospf6d succeeded."
-else
- echo " -> start of ospf6d failed."
- echo " -> $test: TEST-FAIL"
- exit
-fi
-
-if ls /var/log/quagga/ospf6d.log
-then
- echo " -> get log file of ospf6d."
- echo " -> $test: TEST-PASS"
-else
- echo " -> can't get log file of ospf6d."
- echo " -> $test: TEST-FAIL"
- exit
-fi
-
-exec_service_on_target ospf6d stop
-exec_service_on_target zebra stop
-
-#Restore the config file
-mv /etc/quagga/ospf6d.conf.bck /etc/quagga/ospf6d.conf
-mv /etc/quagga/zebra.conf.bck /etc/quagga/zebra.conf
-
-if [ -f /var/log/quagga/ospf6d.log.bck ]
-then
- mv /var/log/quagga/ospf6d.log.bck /var/log/quagga/ospf6d.log
-fi
deleted file mode 100644
@@ -1,73 +0,0 @@
-#!/bin/sh
-
-# In the target start ospf6d and zebra.
-# At the same time, start syslog-ng and check the keyword "ospf6d" in syslog.
-
-test="syslog"
-
-. ./fuego_board_function_lib.sh
-
-set_init_manager
-
-exec_service_on_target ospf6d stop
-exec_service_on_target zebra stop
-exec_service_on_target syslog-ng stop
-
-rm -f /var/run/quagga/ospf6d.pid
-#Backup the config file
-mv /etc/quagga/ospf6d.conf /etc/quagga/ospf6d.conf.bck
-mv /etc/quagga/zebra.conf /etc/quagga/zebra.conf.bck
-#Backup the config file
-mv /var/log/syslog /var/log/syslog.bck
-
-cp data/ospf6d.conf /etc/quagga/ospf6d.conf
-cp data/zebra.conf /etc/quagga/zebra.conf
-chown quagga:quagga /etc/quagga/*.conf
-
-if exec_service_on_target syslog-ng restart
-then
- echo " -> restart of syslog-ng succeeded."
-else
- echo " -> restart of syslog-ng failed."
- echo " -> $test: TEST-FAIL"
- exit
-fi
-
-if exec_service_on_target zebra start
-then
- echo " -> start of zebra succeeded."
-else
- echo " -> start of zebra failed."
- echo " -> $test: TEST-FAIL"
- exit
-fi
-
-if exec_service_on_target ospf6d start
-then
- echo " -> start of ospf6d succeeded."
-else
- echo " -> start of ospf6d failed."
- echo " -> $test: TEST-FAIL"
- exit
-fi
-
-sleep 10
-
-if cat /var/log/syslog | grep "ospf6d"
-then
- echo " -> get the syslog of ospf6d."
- echo " -> $test: TEST-PASS"
-else
- echo " -> can't get the syslog of ospf6d."
- echo " -> $test: TEST-FAIL"
- exit
-fi
-
-exec_service_on_target ospf6d stop
-exec_service_on_target zebra stop
-
-#Restore the config file
-mv /etc/quagga/ospf6d.conf.bck /etc/quagga/ospf6d.conf
-mv /etc/quagga/zebra.conf.bck /etc/quagga/zebra.conf
-#Restore the config file
-mv /var/log/syslog.bck /var/log/syslog
deleted file mode 100644
@@ -1,72 +0,0 @@
-#!/bin/sh
-
-# In the target start ospfd and zebra, then confirm the log file.
-# check the /var/log/quagga/ospfd.log file.
-
-test="logfile"
-
-. ./fuego_board_function_lib.sh
-
-set_init_manager
-
-exec_service_on_target ospfd stop
-exec_service_on_target zebra stop
-
-if [ ! -d /var/log/quagga ]
-then
- mkdir /var/log/quagga
- chown -R quagga:quagga /var/log/quagga
-fi
-
-if [ -f /var/log/quagga/ospfd.log ]
-then
- mv /var/log/quagga/ospfd.log /var/log/quagga/ospfd.log.bck
-fi
-
-#Backup the config file
-mv /etc/quagga/ospfd.conf /etc/quagga/ospfd.conf.bck
-mv /etc/quagga/zebra.conf /etc/quagga/zebra.conf.bck
-
-cp data/ospfd.conf /etc/quagga/ospfd.conf
-cp data/zebra.conf /etc/quagga/zebra.conf
-chown quagga:quagga /etc/quagga/*.conf
-
-if exec_service_on_target zebra start
-then
- echo " -> start of zebra succeeded."
-else
- echo " -> start of zebra failed."
- echo " -> $test: TEST-FAIL"
- exit
-fi
-
-if exec_service_on_target ospfd start
-then
- echo " -> start of ospfd succeeded."
-else
- echo " -> start of ospfd failed."
- echo " -> $test: TEST-FAIL"
- exit
-fi
-
-if ls /var/log/quagga/ospfd.log
-then
- echo " -> get log file of ospfd."
- echo " -> $test: TEST-PASS"
-else
- echo " -> can't get log file of ospfd."
- echo " -> $test: TEST-FAIL"
- exit
-fi
-
-exec_service_on_target ospfd stop
-exec_service_on_target zebra stop
-
-#Restore the config file
-mv /etc/quagga/ospfd.conf.bck /etc/quagga/ospfd.conf
-mv /etc/quagga/zebra.conf.bck /etc/quagga/zebra.conf
-
-if [ -f /var/log/quagga/ospfd.log.bck ]
-then
- mv /var/log/quagga/ospfd.log.bck /var/log/quagga/ospfd.log
-fi
deleted file mode 100644
@@ -1,75 +0,0 @@
-#!/bin/sh
-
-# In the target start ospfd and zebra.
-# At the same time, start syslog-ng and check the keyword "ospfd" in syslog.
-
-test="syslog"
-
-. ./fuego_board_function_lib.sh
-
-set_init_manager
-
-exec_service_on_target ospfd stop
-exec_service_on_target zebra stop
-exec_service_on_target syslog-ng stop
-
-rm -f /var/run/quagga/ospfd.pid
-#Backup the config file
-mv /etc/quagga/ospfd.conf /etc/quagga/ospfd.conf.bck
-mv /etc/quagga/zebra.conf /etc/quagga/zebra.conf.bck
-
-#Backup the syslog file
-mv /var/log/syslog /var/log/syslog.bck
-
-cp data/ospfd.conf /etc/quagga/ospfd.conf
-cp data/zebra.conf /etc/quagga/zebra.conf
-chown quagga:quagga /etc/quagga/*.conf
-
-if exec_service_on_target syslog-ng restart
-then
- echo " -> restart of syslog-ng succeeded."
-else
- echo " -> restart of syslog-ng failed."
- echo " -> $test: TEST-FAIL"
- exit
-fi
-
-if exec_service_on_target zebra start
-then
- echo " -> start of zebra succeeded."
-else
- echo " -> start of zebra failed."
- echo " -> $test: TEST-FAIL"
- exit
-fi
-
-if exec_service_on_target ospfd start
-then
- echo " -> start of ospfd succeeded."
-else
- echo " -> start of ospfd failed."
- echo " -> $test: TEST-FAIL"
- exit
-fi
-
-sleep 5
-
-if cat /var/log/syslog | grep "OSPF"
-then
- echo " -> get the syslog of ospfd."
- echo " -> $test: TEST-PASS"
-else
- echo " -> can't get the syslog of ospfd."
- echo " -> $test: TEST-FAIL"
- exit
-fi
-
-exec_service_on_target ospfd stop
-exec_service_on_target zebra stop
-
-#Restore the config file
-mv /etc/quagga/ospfd.conf.bck /etc/quagga/ospfd.conf
-mv /etc/quagga/zebra.conf.bck /etc/quagga/zebra.conf
-
-#Restore the syslog file
-mv /var/log/syslog.bck /var/log/syslog
deleted file mode 100644
@@ -1,57 +0,0 @@
-#!/bin/sh
-
-# In the target start pcscd, and check the messages of /var/log/syslog.
-# check the keyword "pcscd".
-
-test="syslog"
-
-. ./fuego_board_function_lib.sh
-
-set_init_manager
-logger_service=$(detect_logger_service)
-
-pcscd_status=$(exec_service_on_target pcscd is-active)
-
-exec_service_on_target pcscd stop
-exec_service_on_target $logger_service stop
-
-
-if [ -f /var/log/syslog ]
-then
- mv /var/log/syslog /var/log/syslog_bak
-fi
-
-restore_target(){
- if [ -f /var/log/syslog_bak ]
- then
- mv /var/log/syslog_bak /var/log/syslog
- fi
-}
-
-exec_service_on_target $logger_service restart
-
-if exec_service_on_target pcscd start
-then
- echo " -> start of pcscd succeeded."
-else
- echo " -> start of pcscd failed."
- echo " -> $test: TEST-FAIL"
- restore_target
- exit
-fi
-
-sleep 10
-
-if cat /var/log/syslog | grep "pcscd"
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
-
-if [ "$pcscd_status" != "active" ]
-then
- exec_service_on_target pcscd stop
-fi
-
-restore_target
deleted file mode 100644
@@ -1,63 +0,0 @@
-#!/bin/sh
-
-# In the target to start postfix postfix, to confirm the acquisition of the log.
-# check the keyword "postfix".
-
-test="logfile"
-
-. ./fuego_board_function_lib.sh
-
-set_init_manager
-logger_service=$(detect_logger_service)
-
-postfix_status=$(get_service_status postfix)
-syslog_status=$(get_service_status $logger_service)
-
-exec_service_on_target postfix stop
-
-mv /etc/postfix/main.cf /etc/postfix/main.cf_bak
-cp data/main.cf /etc/postfix/main.cf
-if [ -f /var/log/mailog ]
-then
- mv /var/log/mail.log /var/log/maillong_bak
-fi
-
-restore_target() {
- if [ "$postfix_status" = "inactive" ]
- then
- exec_service_on_target postfix stop
- fi
- if [ "$logger_service_status" = "inactive" ]
- then
- exec_service_on_target $logger_service stop
- fi
-
- mv /etc/postfix/main.cf_bak /etc/postfix/main.cf
- if [ -f /var/log/mail.log_bak ]
- then
- mv /var/log/mail.log_bak /var/log/mail.log
- else
- rm /var/log/mail.log
- fi
-}
-
-exec_service_on_target $logger_service stop
-
-exec_service_on_target $logger_service restart
-if exec_service_on_target postfix start
-then
- echo " -> start of postfix succeeded."
-else
- echo " -> start of postfix failed."
- echo " -> $test: TEST-FAIL"
- restore_target
- exit
-fi
-
-if tail /var/log/mail.log | grep "postfix"
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
-restore_target
deleted file mode 100644
@@ -1,57 +0,0 @@
-#!/bin/sh
-
-# In the target start ptpd, and check the messages of /var/log/syslog.
-# check the keyword "ptpd".
-
-test="syslog"
-
-. ./fuego_board_function_lib.sh
-
-set_init_manager
-logger_service=$(detect_logger_service)
-
-ptpd_status=$(exec_service_on_target ptpd is-active)
-
-exec_service_on_target ptpd stop
-exec_service_on_target $logger_service stop
-
-
-if [ -f /var/log/syslog ]
-then
- mv /var/log/syslog /var/log/syslog_bak
-fi
-
-restore_target(){
- if [ -f /var/log/syslog_bak ]
- then
- mv /var/log/syslog_bak /var/log/syslog
- fi
-}
-
-exec_service_on_target $logger_service restart
-
-if exec_service_on_target ptpd start
-then
- echo " -> start of ptpd succeeded."
-else
- echo " -> start of ptpd failed."
- echo " -> $test: TEST-FAIL"
- restore_target
- exit
-fi
-
-sleep 10
-
-if cat /var/log/syslog | grep "ptpd"
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
-
-if [ "$ptpd_status" != "active" ]
-then
- exec_service_on_target ptpd stop
-fi
-
-restore_target
deleted file mode 100644
@@ -1,65 +0,0 @@
-#!/bin/sh
-
-# In the target to start radvd radvd, to confirm the acquisition of the log.
-# check the keyword "radvd".
-
-test="logfile"
-
-. ./fuego_board_function_lib.sh
-
-set_init_manager
-logger_service=$(detect_logger_service)
-
-service_status=$(get_service_status radvd)
-
-exec_service_on_target radvd stop
-
-echo 0 > /proc/sys/net/ipv6/conf/all/accept_ra
-if [ -f /etc/radvd.conf ]
-then
- mv /etc/radvd.conf /etc/radvd.conf_bak
-fi
-cp data/radvd.conf /etc/radvd.conf
-
-exec_service_on_target $logger_service stop
-if [ -f /var/log/syslog ]
-then
- mv /var/log/syslog /var/log/syslog_bak
-fi
-
-restore_target() {
- if [ -f /etc/radvd.conf_bak ]
- then
- mv /etc/radvd.conf_bak /etc/radvd.conf
- fi
- if [ -f /var/log/syslog_bak ]
- then
- mv /var/log/syslog_bak /var/log/syslog
- fi
- echo 1 > /proc/sys/net/ipv6/conf/all/accept_ra
-}
-
-exec_service_on_target $logger_service restart
-if exec_service_on_target radvd start
-then
- echo " -> start of radvd succeeded."
-else
- echo " -> start of radvd failed."
- echo " -> $test: TEST-FAIL"
- restore_target
- exit
-fi
-
-sleep 5
-
-if cat /var/log/syslog | grep "radvd"
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
-
-if [ "$service_status" = "inactive" ]
-then
- exec_service_on_target radvd stop
-fi
deleted file mode 100644
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-# In target, run command chkconfig.
-# option: --help
-
-test="chkconfig"
-
-chkconfig --help > log 2>&1
-if cat log | grep usage
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
-rm log
deleted file mode 100644
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-# In target, run command crda.
-# option: --help
-
-test="crda"
-
-crda --help > log 2>&1
-if cat log | grep Usage
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
-rm log
deleted file mode 100644
@@ -1,13 +0,0 @@
-#!/bin/sh
-
-# In target, run command eggdbus-binding-tool.
-# option: --help
-
-test="eggdbus-binding-tool"
-
-if eggdbus-binding-tool --help | grep Usage
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
deleted file mode 100644
@@ -1,13 +0,0 @@
-#!/bin/sh
-
-# In target, run command execstack.
-# option: --help
-
-test="execstack"
-
-if execstack --help | grep "Usage"
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
deleted file mode 100644
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-# In target, run command genrandom.
-# option: none
-
-test="genrandom"
-
-genrandom > log 2>&1
-if cat log | grep usage
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
-rm log
deleted file mode 100644
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-# In target, run command in.telnetd.
-# option: h
-
-test="in_telnetd"
-
-in.telnetd h > log 2>&1
-if cat log | grep "Usage"
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
-rm log
deleted file mode 100644
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-# In target, run command iwpriv.
-# option: --help
-
-test="iwpriv"
-
-iwpriv --help > log 2>&1
-if cat log | grep "Usage"
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
-rm log
deleted file mode 100644
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-# In target, run command mip6d.
-# option: --help
-
-test="mip6d"
-
-mip6d --help > log 2>&1
-if cat log | grep "Usage"
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
-rm log
deleted file mode 100644
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-# In target, run command omshell.
-# option: --help
-
-test="omshell"
-
-omshell --help > log 2>&1
-if cat log | grep Usage
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
-rm log
deleted file mode 100644
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-# In target, run command rsh.
-# option: none
-
-test="rsh"
-
-rsh > log 2>&1
-if cat log | grep "usage"
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
-rm log
deleted file mode 100644
@@ -1,13 +0,0 @@
-#!/bin/sh
-
-# In target, run command syslog-ng.
-# option: --help
-
-test="syslog-ng"
-
-if syslog-ng --help | grep "Usage"
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
deleted file mode 100644
@@ -1,13 +0,0 @@
-#!/bin/sh
-
-# In target, run command uim-xim.
-# option: --help
-
-test="uim-xim"
-
-if uim-xim --help | grep "uim <-> XIM bridge. Supporting multiple locales"
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
deleted file mode 100644
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-# In target, run command wish8.6.
-# option: -h
-
-test="wish8_6"
-
-wish8.6 -h > log 2>&1
-if cat log | grep "application"
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
-rm log
deleted file mode 100644
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-# In target, run command xinetd.
-# option: -version
-
-test="xinetd"
-
-xinetd -version > log 2>&1
-if cat log | grep "Version"
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
-rm log
deleted file mode 100644
@@ -1,104 +0,0 @@
-#!/bin/sh
-
-# In the target start ripd, and confirm the ripd log.
-
-test="logfile"
-
-. ./fuego_board_function_lib.sh
-
-set_init_manager
-
-ripd_status=$(exec_service_on_target ripd is-active)
-zebra_status=$(exec_service_on_target zebra is-active)
-
-exec_service_on_target ripd stop
-exec_service_on_target zebra stop
-
-if [ ! -d /var/log/quagga ]
-then
- mkdir /var/log/quagga
- chown -R quagga:quagga /var/log/quagga
-fi
-
-if [ -f /var/log/quagga/ripd.log ]
-then
- mv /var/log/quagga/ripd.log /var/log/quagga/ripd.log_bak
-fi
-
-if [ -f /etc/quagga/zebra.conf ]
-then
- mv /etc/quagga/zebra.conf /etc/quagga/zebra.conf_bak
-fi
-cp data/zebra.conf /etc/quagga/zebra.conf
-
-if [ -f /etc/quagga/ripd.conf ]
-then
- mv /etc/quagga/ripd.conf /etc/quagga/ripd.conf_bak
-fi
-cp data/ripd.conf /etc/quagga/ripd.conf
-
-chown quagga:quagga /etc/quagga/*.conf
-
-restore_target() {
- if [ -f /etc/quagga/zebra.conf_bak ]
- then
- mv /etc/quagga/zebra.conf_bak /etc/quagga/zebra.conf
- else
- rm /etc/quagga/zebra.conf
- fi
- if [ -f /etc/quagga/ripd.conf_bak ]
- then
- mv /etc/quagga/ripd.conf_bak /etc/quagga/ripd.conf
- else
- rm /etc/quagga/ripd.conf
- fi
- if [ -f /var/log/quagga/ripd.log_bak ]
- then
- mv /var/log/quagga/ripd.log_bak /var/log/quagga/ripd.log
- fi
-}
-
-if exec_service_on_target zebra start
-then
- echo " -> start of zebra succeeded."
-else
- echo " -> start of zebra failed."
- echo " -> $test: TEST-FAIL"
- restore_target
- exit
-fi
-
-if exec_service_on_target ripd start
-then
- echo " -> start of ripd succeeded."
-else
- echo " -> start of ripd failed."
- echo " -> $test: TEST-FAIL"
- if [ "$zebra_status" != "active" ]
- then
- exec_service_on_target zebra stop
- fi
- restore_target
- exit
-fi
-
-sleep 5
-
-if [ -f /var/log/quagga/ripd.log ]
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> can't get the logfile of ripd."
- echo " -> $test: TEST-FAIL"
-fi
-
-if [ "$ripd_status" != "active" ]
-then
- exec_service_on_target ripd stop
-fi
-
-if [ "$zebra_status" != "active" ]
-then
- exec_service_on_target zebra stop
-fi
-restore_target
deleted file mode 100644
@@ -1,101 +0,0 @@
-#!/bin/sh
-
-# In the target start ripd, and confirm the log file.
-
-test="syslog"
-
-. ./fuego_board_function_lib.sh
-
-set_init_manager
-logger_service=$(detect_logger_service)
-
-ripd_status=$(exec_service_on_target ripd is-active)
-zebra_status=$(exec_service_on_target zebra is-active)
-
-exec_service_on_target ripd stop
-exec_service_on_target zebra stop
-exec_service_on_target $logger_service stop
-
-if [ -f /var/log/syslog ]
-then
- mv /var/log/syslog /var/log/syslog_bak
-fi
-
-if [ -f /etc/quagga/zebra.conf ]
-then
- mv /etc/quagga/zebra.conf /etc/quagga/zebra.conf_bak
-fi
-cp data/zebra.conf /etc/quagga/zebra.conf
-
-if [ -f /etc/quagga/ripd.conf ]
-then
- mv /etc/quagga/ripd.conf /etc/quagga/ripd.conf_bak
-fi
-cp data/ripd.conf /etc/quagga/ripd.conf
-
-chown quagga:quagga /etc/quagga/*.conf
-
-restore_target() {
- if [ -f /etc/quagga/zebra.conf_bak ]
- then
- mv /etc/quagga/zebra.conf_bak /etc/quagga/zebra.conf
- else
- rm /etc/quagga/zebra.conf
- fi
- if [ -f /etc/quagga/ripd.conf_bak ]
- then
- mv /etc/quagga/ripd.conf_bak /etc/quagga/ripd.conf
- else
- rm /etc/quagga/ripd.conf
- fi
- if [ -f /var/log/syslog_bak ]
- then
- mv /var/log/syslog_bak /var/log/syslog
- fi
-}
-
-exec_service_on_target $logger_service restart
-
-if exec_service_on_target zebra start
-then
- echo " -> start of zebra succeeded."
-else
- echo " -> start of zebra failed."
- echo " -> $test: TEST-FAIL"
- restore_target
- exit
-fi
-
-if exec_service_on_target ripd start
-then
- echo " -> start of ripd succeeded."
-else
- echo " -> start of ripd failed."
- echo " -> $test: TEST-FAIL"
- if [ "$zebra_status" != "active" ]
- then
- exec_service_on_target zebra stop
- fi
- restore_target
- exit
-fi
-
-sleep 5
-
-if tail /var/log/syslog | grep "zebra"
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> can't get the syslog of zebra."
- echo " -> $test: TEST-FAIL"
-fi
-
-if [ "$ripd_status" != "active" ]
-then
- exec_service_on_target ripd stop
-fi
-if [ "$zebra_status" != "active" ]
-then
- exec_service_on_target zebra stop
-fi
-restore_target
deleted file mode 100644
@@ -1,103 +0,0 @@
-#!/bin/sh
-
-# In the target start ripngd, and confirm the ripngd log.
-
-test="logfile"
-
-. ./fuego_board_function_lib.sh
-
-set_init_manager
-
-ripngd_status=$(exec_service_on_target ripngd is-active)
-zebra_status=$(exec_service_on_target zebra is-active)
-
-exec_service_on_target ripngd stop
-exec_service_on_target zebra stop
-
-if [ ! -d /var/log/quagga ]
-then
- mkdir /var/log/quagga
- chown -R quagga:quagga /var/log/quagga
-fi
-
-if [ -f /var/log/quagga/ripngd.log ]
-then
- mv /var/log/quagga/ripngd.log /var/log/quagga/ripngd.log_bak
-fi
-
-if [ -f /etc/quagga/zebra.conf ]
-then
- mv /etc/quagga/zebra.conf /etc/quagga/zebra.conf_bak
-fi
-cp data/zebra.conf /etc/quagga/zebra.conf
-
-if [ -f /etc/quagga/ripngd.conf ]
-then
- mv /etc/quagga/ripngd.conf /etc/quagga/ripngd.conf_bak
-fi
-cp data/ripngd.conf /etc/quagga/ripngd.conf
-
-chown quagga:quagga /etc/quagga/*.conf
-
-restore_target() {
- if [ -f /etc/quagga/zebra.conf_bak ]
- then
- mv /etc/quagga/zebra.conf_bak /etc/quagga/zebra.conf
- else
- rm /etc/quagga/zebra.conf
- fi
- if [ -f /etc/quagga/ripngd.conf_bak ]
- then
- mv /etc/quagga/ripngd.conf_bak /etc/quagga/ripngd.conf
- else
- rm /etc/quagga/ripngd.conf
- fi
- if [ -f /var/log/quagga/ripngd.log_bak ]
- then
- mv /var/log/quagga/ripngd.log_bak /var/log/quagga/ripngd.log
- fi
-}
-
-if exec_service_on_target zebra start
-then
- echo " -> start of zebra succeeded."
-else
- echo " -> start of zebra failed."
- echo " -> $test: TEST-FAIL"
- restore_target
- exit
-fi
-
-if exec_service_on_target ripngd start
-then
- echo " -> start of ripngd succeeded."
-else
- echo " -> start of ripngd failed."
- echo " -> $test: TEST-FAIL"
- if [ "$zebra_status" != "active" ]
- then
- exec_service_on_target zebra stop
- fi
- restore_target
- exit
-fi
-
-sleep 5
-
-if [ -f /var/log/quagga/ripngd.log ]
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> can't get the logfile of ripngd."
- echo " -> $test: TEST-FAIL"
-fi
-
-if [ "$zebra_status" != "active" ]
-then
- exec_service_on_target zebra stop
-fi
-if [ "$ripngd_status" != "active" ]
-then
- exec_service_on_target ripngd stop
-fi
-restore_target
deleted file mode 100644
@@ -1,101 +0,0 @@
-#!/bin/sh
-
-# In the target start ripngd, and confirm the log file.
-
-test="syslog"
-
-. ./fuego_board_function_lib.sh
-
-set_init_manager
-logger_service=$(detect_logger_service)
-
-ripngd_status=$(exec_service_on_target ripngd is-active)
-zebra_status=$(exec_service_on_target zebra is-active)
-
-exec_service_on_target ripngd stop
-exec_service_on_target zebra stop
-exec_service_on_target $logger_service stop
-
-if [ -f /var/log/syslog ]
-then
- mv /var/log/syslog /var/log/syslog_bak
-fi
-
-if [ -f /etc/quagga/zebra.conf ]
-then
- mv /etc/quagga/zebra.conf /etc/quagga/zebra.conf_bak
-fi
-cp data/zebra.conf /etc/quagga/zebra.conf
-
-if [ -f /etc/quagga/ripngd.conf ]
-then
- mv /etc/quagga/ripngd.conf /etc/quagga/ripngd.conf_bak
-fi
-cp data/ripngd.conf /etc/quagga/ripngd.conf
-
-chown quagga:quagga /etc/quagga/*.conf
-
-restore_target() {
- if [ -f /etc/quagga/zebra.conf_bak ]
- then
- mv /etc/quagga/zebra.conf_bak /etc/quagga/zebra.conf
- else
- rm /etc/quagga/zebra.conf
- fi
- if [ -f /etc/quagga/ripngd.conf_bak ]
- then
- mv /etc/quagga/ripngd.conf_bak /etc/quagga/ripngd.conf
- else
- rm /etc/quagga/ripngd.conf
- fi
- if [ -f /var/log/syslog_bak ]
- then
- mv /var/log/syslog_bak /var/log/syslog
- fi
-}
-
-exec_service_on_target $logger_service restart
-
-if exec_service_on_target zebra start
-then
- echo " -> start of zebra succeeded."
-else
- echo " -> start of zebra failed."
- echo " -> $test: TEST-FAIL"
- restore_target
- exit
-fi
-
-if exec_service_on_target ripngd start
-then
- echo " -> start of ripngd succeeded."
-else
- echo " -> start of ripngd failed."
- echo " -> $test: TEST-FAIL"
- if [ "$zebra_status" != "active" ]
- then
- exec_service_on_target zebra stop
- fi
- restore_target
- exit
-fi
-
-sleep 5
-
-if tail /var/log/syslog | grep "zebra"
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> can't get the syslog of zebra."
- echo " -> $test: TEST-FAIL"
-fi
-
-if [ "$zebra_status" != "active" ]
-then
- exec_service_on_target zebra stop
-fi
-if [ "$ripngd_status" != "active" ]
-then
- exec_service_on_target ripngd stop
-fi
-restore_target
deleted file mode 100644
@@ -1,22 +0,0 @@
-#!/bin/sh
-
-# Access the samba server on the target from the host
-
-test="samba06"
-expect <<-EOF
-spawn sh
-expect ".*"
-send "smbclient //$1/test -N\r"
-expect {
- -re ".*smb:.*" {
- send "ls\r"
- }
- default { send_user "Can't connect to the board"\n"} }
-expect {
- -re ".*test1.*" {
- send_user " -> $test: TEST-PASS\n"
- }
- default { send_user " -> $test: TEST-FAIL\n"} }
-send "exit\n"
-expect eof
-EOF
deleted file mode 100644
@@ -1,64 +0,0 @@
-#!/bin/sh
-
-# In target, run command samhain.
-# Check the filesystem against the database of file signatures.
-# option: -t
-
-test="check"
-
-. ./fuego_board_function_lib.sh
-
-set_init_manager
-logger_service=$(detect_logger_service)
-
-cp /etc/samhainrc /etc/samhainrc_bak
-sed -i "s%dir = 99/usr%dir = 99$board/fuego.$testdir/test_dir/samhain_test%" /etc/samhainrc
-
-rm -fr /var/samhain/* /var/lib/samhain/*
-
-exec_service_on_target $logger_service stop
-if [ -f /var/log/syslog ]
-then
- mv /var/log/syslog /var/log/syslog_bak
-fi
-
-exec_service_on_target $logger_service restart
-
-sleep 1
-
-mkdir -p test_dir/samhain_test/
-touch test_dir/samhain_test/test.txt
-
-samhain -t init -p info > /dev/null 2&> 1
-
-sleep 1
-
-echo test > test_dir/samhain_test/test.txt
-
-sleep 1
-
-if samhain -t check
-then
- echo " -> samhain -t check succeeded."
-else
- echo " -> $test: TEST-FAIL"
- rm -fr test_dir
- mv /etc/samhainrc_bak /etc/samhainrc
- exit
-fi
-
-sleep 10
-
-if cat /var/log/syslog | grep "test_dir/samhain_test"
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
-
-rm -fr test_dir
-mv /etc/samhainrc_bak /etc/samhainrc
-if [ -f /var/log/syslog_bak ]
-then
- mv /var/log/syslog_bak /var/log/syslog
-fi
deleted file mode 100644
@@ -1,49 +0,0 @@
-#!/bin/sh
-
-# In target, run command samhain.
-# Initialize the database of file signatures.
-# option: -t
-
-test="init"
-
-. ./fuego_board_function_lib.sh
-
-set_init_manager
-logger_service=$(detect_logger_service)
-
-cp /etc/samhainrc /etc/samhainrc_bak
-sed -i "s%dir = 99/usr%dir = 99$board/fuego.$testdir/test_dir/samhain_test%" /etc/samhainrc
-
-rm -fr /var/samhain/* /var/lib/samhain/*
-
-exec_service_on_target $logger_service stop
-
-if [ -f /var/log/syslog ]
-then
- mv /var/log/syslog /var/log/syslog_bak
-fi
-
-exec_service_on_target $logger_service restart
-
-sleep 1
-
-mkdir -p test_dir/samhain_test/
-touch test_dir/samhain_test/test.txt
-
-samhain -t init -p info > /dev/null 2&> 1
-
-sleep 1
-
-if cat /var/log/syslog | grep "ALRT.*-.*-.*T.*:.*:.*msg=\"EXIT\""
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
-
-rm -fr test_dir
-mv /etc/samhainrc_bak /etc/samhainrc
-if [ -f /var/log/syslog_bak ]
-then
- mv /var/log/syslog_bak /var/log/syslog
-fi
deleted file mode 100644
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-# In target, run command syslogd.
-
-test="syslogd"
-
-msg="This is a test message $(date)"
-logger "$msg"
-
-sleep 5
-
-if grep "$msg" /var/log/syslog
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
deleted file mode 100644
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-# In the target run the command sadc to collect system activity data.
-
-test="sadc"
-
-if /usr/lib/sa/sadc 1 10 test_sa000
-then
- echo " -> collect system data succeeded."
- echo " -> $test: TEST-PASS"
-else
- echo " -> collect system data failed."
- echo " -> $test: TEST-FAIL"
-fi
-rm test_sa000
deleted file mode 100644
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-# In the target run the command sadc to collect system activity data.
-
-test="sadc"
-
-if /usr/lib/sa/sadc 1 10 test_sa000
-then
- echo " -> collect system data succeeded."
- echo " -> $test: TEST-PASS"
-else
- echo " -> collect system data failed."
- echo " -> $test: TEST-FAIL"
-fi
-rm test_sa000
deleted file mode 100644
@@ -1,18 +0,0 @@
-#!/bin/sh
-
-# In target, start the service tcsd.
-
-test="start"
-
-. ./fuego_board_function_lib.sh
-
-set_init_manager
-
-exec_service_on_target tcsd stop
-
-if exec_service_on_target tcsd start
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> $test: TEST-FAIL"
-fi
deleted file mode 100644
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-# In target, run command logger.
-
-test="logger"
-
-mgs="This is a test message $(date)"
-logger "$msg"
-if grep "$msg" /var/log/syslog
-then
- echo " -> $test: TEST-PASS"
-else
- echo " Didn't find test string in log"
- echo " -> $test: TEST-FAIL"
-fi;
deleted file mode 100644
@@ -1,75 +0,0 @@
-#!/bin/sh
-
-# In the target start zebra, and confirm the zebra log.
-
-test="logfile"
-
-. ./fuego_board_function_lib.sh
-
-set_init_manager
-
-zebra_status=0
-if exec_service_on_target zebra status | grep "running"
-then
- zebra_status=1
-fi
-
-exec_service_on_target zebra stop
-
-if [ ! -d /var/log/quagga ]
-then
- mkdir /var/log/quagga
- chown -R quagga:quagga /var/log/quagga
-fi
-
-if [ -f /var/log/quagga/zebra.log ]
-then
- mv /var/log/quagga/zebra.log /var/log/quagga/zebra.log_bak
-fi
-
-if [ -f /etc/quagga/zebra.conf ]
-then
- mv /etc/quagga/zebra.conf /etc/quagga/zebra.conf_bak
-fi
-cp data/zebra.conf /etc/quagga/zebra.conf
-
-chown quagga:quagga /etc/quagga/*.conf
-
-restore_target() {
- if [ -f /etc/quagga/zebra.conf_bak ]
- then
- mv /etc/quagga/zebra.conf_bak /etc/quagga/zebra.conf
- else
- rm /etc/quagga/zebra.conf
- fi
- if [ -f /var/log/quagga/zebra.log_bak ]
- then
- mv /var/log/quagga/zebra.log_bak /var/log/quagga/zebra.log
- fi
-}
-
-if exec_service_on_target zebra start
-then
- echo " -> start of zebra succeeded."
-else
- echo " -> start of zebra failed."
- echo " -> $test: TEST-FAIL"
- restore_target
- exit
-fi
-
-sleep 5
-
-if [ -f /var/log/quagga/zebra.log ]
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> can't get the logfile of zebra."
- echo " -> $test: TEST-FAIL"
-fi
-
-if $zebra_status=0
-then
- exec_service_on_target zebra stop
-fi
-restore_target
deleted file mode 100644
@@ -1,73 +0,0 @@
-#!/bin/sh
-
-# In the target start zebra, and confirm the log file.
-
-test="syslog"
-
-. ./fuego_board_function_lib.sh
-
-set_init_manager
-logger_service=$(detect_logger_service)
-
-zebra_status=0
-if exec_service_on_target zebra status | grep "running"
-then
- zebra_status=1
-fi
-
-exec_service_on_target zebra stop
-exec_service_on_target $logger_service stop
-
-if [ -f /var/log/syslog ]
-then
- mv /var/log/syslog /var/log/syslog_bak
-fi
-
-if [ -f /etc/quagga/zebra.conf ]
-then
- mv /etc/quagga/zebra.conf /etc/quagga/zebra.conf_bak
-fi
-cp data/zebra.conf /etc/quagga/zebra.conf
-
-chown quagga:quagga /etc/quagga/*.conf
-
-restore_target() {
- if [ -f /etc/quagga/zebra.conf_bak ]
- then
- mv /etc/quagga/zebra.conf_bak /etc/quagga/zebra.conf
- else
- rm /etc/quagga/zebra.conf
- fi
- if [ -f /var/log/syslog_bak ]
- then
- mv /var/log/syslog_bak /var/log/syslog
- fi
-}
-
-exec_service_on_target $logger_service restart
-
-if exec_service_on_target zebra start
-then
- echo " -> start of zebra succeeded."
-else
- echo " -> start of zebra failed."
- echo " -> $test: TEST-FAIL"
- restore_target
- exit
-fi
-
-sleep 5
-
-if tail /var/log/syslog | grep "zebra"
-then
- echo " -> $test: TEST-PASS"
-else
- echo " -> can't get the syslog of zebra."
- echo " -> $test: TEST-FAIL"
-fi
-
-if $zebra_status=0
-then
- exec_service_on_target zebra stop
-fi
-restore_target
new file mode 100755
@@ -0,0 +1,50 @@
+#!/bin/sh
+
+# In the target start bgpd and zebra, then confirm the process condition by command ps.
+# check the keyword "quagga/bgpd".
+
+test="ps"
+
+. ./fuego_board_function_lib.sh
+
+set_init_manager
+
+frr_status=0
+if exec_service_on_target frr status | grep "running"
+then
+ frr_status=1
+fi
+
+exec_service_on_target frr stop
+
+if exec_service_on_target frr start
+then
+ echo " -> start of frr succeeded."
+else
+ echo " -> start of frr failed."
+ echo " -> $test: TEST-FAIL"
+ exit
+fi
+
+if ps -N a | grep "[/]usr/libexec/frr/bgpd"
+then
+ echo " -> get the pid of bgpd."
+else
+ echo " -> can't get the pid of bgpd."
+ echo " -> $test: TEST-FAIL"
+ exit
+fi
+
+exec_service_on_target frr stop
+
+if ps -N a | grep "[/]usr/libexec/frr/bgpd"
+then
+ echo " -> $test: TEST-FAIL"
+else
+ echo " -> $test: TEST-PASS"
+fi
+
+if $frr_status=1
+then
+ exec_service_on_target frr start
+fi
new file mode 100755
@@ -0,0 +1,4 @@
+#!/bin/sh
+for i in tests/*.sh; do
+ sh $i
+done
new file mode 100755
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+# In target, run command ethtool.
+# option: none
+
+test="show"
+
+. ./fuego_board_function_lib.sh
+
+ETHERNET_DEVICE_NAME=$(detect_active_eth_device)
+
+if [ "${ETHERNET_DEVICE_NAME}x" = "have no Ethernet devicex" ]
+then
+ echo " -> $test: TEST-FAIL"
+ exit 1
+fi
+
+if ethtool $ETHERNET_DEVICE_NAME | grep "Settings for"
+then
+ echo " -> $test: TEST-PASS"
+else
+ echo " -> $test: TEST-FAIL"
+fi
new file mode 100755
@@ -0,0 +1,4 @@
+#!/bin/sh
+for i in tests/*.sh; do
+ sh $i
+done
new file mode 100755
@@ -0,0 +1,51 @@
+#!/bin/sh
+
+# In target, run command ifdown/ifup.
+# option: none
+
+test="ifdown_ifup"
+
+# pattern for detecting loopback network device
+LO_PAT="^lo[: ]"
+
+#if [ ! -f /etc/sysconfig/network-scripts/ifcfg-lo ]
+#then
+# echo " -> $test: ifcfg file does not exist."
+# echo " -> $test: TEST-SKIP"
+# exit 0
+#fi
+
+if ! ifconfig | grep -q "$LO_PAT" ;
+then
+ echo " -> $test: 'lo' not found in ifconfig output on test start"
+ echo " -> $test: TEST-SKIP"
+fi
+
+if ifdown lo
+then
+ echo " -> $test: ifdown lo succeeded."
+else
+ echo " -> $test: ifdown lo failed."
+ echo " -> $test: TEST-FAIL"
+ exit 0
+fi
+
+if ifconfig | grep -q "$LO_PAT" ;
+then
+ echo " -> $test: 'lo' was found in ifconfig output after 'ifdown lo'"
+ echo " -> $test: TEST-FAIL"
+fi
+
+if ! ifup lo ;
+then
+ echo " -> $test: error $? running 'ifup lo'"
+ echo " -> $test: TEST-FAIL"
+fi
+
+if ifconfig | grep -q "$LO_PAT" ;
+then
+ echo " -> $test: TEST-PASS"
+else
+ echo " -> $test: 'lo' was not found in ifconfig output after 'ifup lo'"
+ echo " -> $test: TEST-FAIL"
+fi
new file mode 100755
@@ -0,0 +1,45 @@
+#!/bin/sh
+
+# In the target start ospf6d and zebra, then confirm the process condition by command ps.
+# check the keyword "quagga/ospf6d".
+
+test="ps"
+
+. ./fuego_board_function_lib.sh
+
+set_init_manager
+frr_status=$(exec_service_on_target frr is-active)
+
+exec_service_on_target frr stop
+
+if exec_service_on_target frr start
+then
+ echo " -> start of frr succeeded."
+else
+ echo " -> start of frr failed."
+ echo " -> $test: TEST-FAIL"
+ exit
+fi
+
+if ps -N a | grep "[/]usr/libexec/frr/ospf6d"
+then
+ echo " -> get the pid of ospf6d."
+else
+ echo " -> can't get the pid of ospf6d."
+ echo " -> $test: TEST-FAIL"
+ exit
+fi
+
+exec_service_on_target frr stop
+
+if ps -N a | grep "[/]usr/libexec/frr/ospf6d"
+then
+ echo " -> $test: TEST-FAIL"
+else
+ echo " -> $test: TEST-PASS"
+fi
+
+if [ "$frr_status" = "active" ]
+then
+ exec_service_on_target frr start
+fi
new file mode 100755
@@ -0,0 +1,45 @@
+#!/bin/sh
+
+# In the target start ospfd and zebra, then confirm the process condition by command ps.
+# check the keyword "quagga/ospfd".
+
+test="ps"
+
+. ./fuego_board_function_lib.sh
+
+set_init_manager
+frr_status=$(exec_service_on_target frr is-active)
+
+exec_service_on_target frr stop
+
+if exec_service_on_target frr start
+then
+ echo " -> start of frr succeeded."
+else
+ echo " -> start of frr failed."
+ echo " -> $test: TEST-FAIL"
+ exit
+fi
+
+if ps -N a | grep "[/]usr/libexec/frr/ospfd"
+then
+ echo " -> get the pid of ospfd."
+else
+ echo " -> can't get the pid of ospfd."
+ echo " -> $test: TEST-FAIL"
+ exit
+fi
+
+exec_service_on_target frr stop
+
+if ps -N a | grep "[/]usr/libexec/frr/ospfd"
+then
+ echo " -> $test: TEST-FAIL"
+else
+ echo " -> $test: TEST-PASS"
+fi
+
+if [ "$frr_status" = "active" ]
+then
+ exec_service_on_target frr start
+fi
new file mode 100755
@@ -0,0 +1,4 @@
+#!/bin/sh
+for i in tests/*.sh; do
+ sh $i
+done
new file mode 100755
@@ -0,0 +1,26 @@
+fuego_package_version: 1
+name: Functional.ospfd
+description: |
+ ospfd is an Open Shortest Path First (OSPF) daemon which manages
+ routing tables. This implementation supports OSPF version 2, thus
+ it is only capable of maintaining IPv4 routing tables.
+ This is a simple test to examine whether ospfd can start
+ successfully and obtain the log. And zebra is the pre-service of ospfd.
+license: BSD-3-Clause
+author: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
+maintainer: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
+version: 1.00
+fuego_release: 1
+type: Functional
+tags: ['router']
+params:
+ - IFETH:
+ description: eth interface in your target board, defined in board file
+ example: eth0
+data_files:
+ - ospfd_test.sh
+ - data
+ - fuego_test.sh
+ - parser.py
+ - spec.json
+ - tests
new file mode 100755
@@ -0,0 +1,7 @@
+#!/bin/sh
+. ./fuego_board_function_lib.sh
+set_init_manager
+
+for i in tests/*.sh; do
+ source $i
+done
new file mode 100755
@@ -0,0 +1,54 @@
+#!/bin/sh
+
+# In the target start zebra, and confirm the process condition by command ps.
+
+test="ps"
+
+. ./fuego_board_function_lib.sh
+
+set_init_manager
+
+frr_status=0
+if exec_service_on_target frr status | grep "running"
+then
+ frr_status=1
+fi
+
+exec_service_on_target frr stop
+
+if exec_service_on_target frr start
+then
+ echo " -> start of frr succeeded."
+else
+ echo " -> start of frr failed."
+ echo " -> $test: TEST-FAIL"
+ exit
+fi
+
+sleep 5
+
+if ps aux | grep "[/]usr/libexec/frr/zebra"
+then
+ echo " -> get the process of zebra."
+else
+ echo " -> can't get the process of zebra."
+ echo " -> $test: TEST-FAIL"
+ if $frr_status=0
+ then
+ exec_service_on_target frr stop
+ fi
+ exit
+fi
+
+exec_service_on_target frr stop
+
+if ps aux | grep "[/]usr/libexec/frr/zebra"
+then
+ echo " -> $test: TEST-FAIL"
+else
+ echo " -> $test: TEST-PASS"
+fi
+if $frr_status=1
+then
+ exec_service_on_target frr start
+fi