From patchwork Tue Oct 28 09:00:31 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wang Mingyu X-Patchwork-Id: 73155 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id E8950CCF9E0 for ; Tue, 28 Oct 2025 09:00:56 +0000 (UTC) Received: from esa2.hc1455-7.c3s2.iphmx.com (esa2.hc1455-7.c3s2.iphmx.com [207.54.90.48]) by mx.groups.io with SMTP id smtpd.web10.7032.1761642047321123794 for ; Tue, 28 Oct 2025 02:00:48 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@fujitsu.com header.s=fj2 header.b=N9WPSwff; spf=pass (domain: fujitsu.com, ip: 207.54.90.48, mailfrom: wangmy@fujitsu.com) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=fujitsu.com; i=@fujitsu.com; q=dns/txt; s=fj2; t=1761642048; x=1793178048; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=DEl5khXq4c5+2u72BjkrFEBr4S2tH8RAjgofCz8uP1E=; b=N9WPSwffr/YlJI4Xplr4Wo+S0ruqzfqPDQtxk9d30I7jVQHBdOiOpzWu OAZP8WlK6zDIGJbwPbMZVMVD9QuxpVuaAwXgmtBjZPCNymdmlQrTfH8dH toLI6K+7AtZjESWByd01CPcNDxI+lKtiomAeMF3a3uFft9DjZMmRTyltD HxjluAxoCpIRd/j9XEzjixy1kOCd4z9zUAaXLVrCHpPM5yf8AMfHcLhoZ nfU5k8SjolDmML4XOXlM8iBtg9z+6GNx4JGOzucawqh/ToiPDyYol9fHO Z8mYAS9sUMSGp0tVOp+LY6Fjus7mUpnCU6O8BHHLx0ymC5x1roM6SfGBp Q==; X-CSE-ConnectionGUID: FhpoWUC9Rk6BfNVJOGzqQQ== X-CSE-MsgGUID: C4miCP6nTz66xQENgWsTYg== X-IronPort-AV: E=McAfee;i="6800,10657,11586"; a="217315391" X-IronPort-AV: E=Sophos;i="6.19,261,1754924400"; d="scan'208";a="217315391" Received: from unknown (HELO az2uksmgr1.o.css.fujitsu.com) ([52.151.125.19]) by esa2.hc1455-7.c3s2.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Oct 2025 18:00:46 +0900 Received: from az2uksmgm4.o.css.fujitsu.com (unknown [10.151.22.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by az2uksmgr1.o.css.fujitsu.com (Postfix) with ESMTPS id 4EDB91C1C70B for ; Tue, 28 Oct 2025 09:00:45 +0000 (UTC) Received: from az2uksmom4.o.css.fujitsu.com (az2uksmom4.o.css.fujitsu.com [10.151.22.204]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by az2uksmgm4.o.css.fujitsu.com (Postfix) with ESMTPS id 0B36714003B8 for ; Tue, 28 Oct 2025 09:00:45 +0000 (UTC) Received: from G08FNSTD200057.g08.fujitsu.local (unknown [10.193.161.187]) by az2uksmom4.o.css.fujitsu.com (Postfix) with ESMTP id 9129140550E; Tue, 28 Oct 2025 09:00:41 +0000 (UTC) From: Wang Mingyu < wangmy@fujitsu.com> To: openembedded-devel@lists.openembedded.org Cc: Wang Mingyu Subject: [PATCH] modify test cases Date: Tue, 28 Oct 2025 17:00:31 +0800 Message-ID: <20251028090037.143-1-wangmy@fujitsu.com> X-Mailer: git-send-email 2.49.0.windows.1 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 28 Oct 2025 09:00:56 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/121067 From: Wang Mingyu Signed-off-by: Wang Mingyu --- .../tests/acpid_reload.sh_bak | 71 ------------ .../Functional.at/tests/atd_syslog.sh_bak | 49 --------- .../Functional.bgpd/tests/bgpd_logfile.sh | 69 ------------ .../Functional.bgpd/tests/bgpd_syslog.sh_bak | 73 ------------ .../tests/bind_chroot_syslog-ng.sh_bak | 59 ---------- .../tests/bind_named_syslog.sh_bak | 70 ------------ .../tests/busybox_logger.sh_bak | 19 ---- .../tests/busybox_rpm.sh_bak | 22 ---- .../tests/busybox_rpm2cpio.sh_bak | 20 ---- .../tests/busybox_setkeycodes.sh_bak | 24 ---- .../tests/busybox_telnet.sh-bak | 35 ------ .../Functional.demo/tests/demo_mdadm.sh | 70 ------------ .../tests/demo_opensafd.sh_bak | 71 ------------ .../Functional.demo/tests/demo_smartd.sh_bak | 51 --------- .../tests/dhcrelay_syslog.sh_bak | 80 -------------- .../tests/dovecot_logfile.sh_bak | 79 ------------- .../Functional.glibc/glibc_tests.tar.gz-bak | Bin 17814 -> 0 bytes .../tests/initscripts_ifdown-ifup.sh_bak | 29 ----- .../tests/interactive_crda.sh | 16 --- .../Functional.kbd/tests/chvt.sh_bak | 30 ----- .../Functional.kbd/tests/kbdrate1.sh_bak | 13 --- .../Functional.kbd/tests/kbdrate2.sh_bak | 13 --- .../Functional.logd/tests/logd_syslog.sh_bak | 56 ---------- .../tests/logwatch_detail.sh_bak | 40 ------- .../tests/logwatch_mailto.sh_bak | 62 ----------- .../tests/openssh-server_sshd.sh_bak | 35 ------ .../Functional.misc/tests/telnetd.sh-bak | 12 -- .../tests/multipathd_syslog.sh_bak | 72 ------------ .../tests/snmpd_syslog.sh_bak | 55 --------- .../tests/snmpd_syslog_ip.sh_bak | 63 ----------- .../tests/snmptrapd_coldstart.sh_bak | 60 ---------- .../tests/snmptrapd_syslog.sh_bak | 54 --------- .../tests/snmptrapd_warmstart.sh_bak | 61 ---------- .../tests/net-tools_netstat2.sh-bak | 17 --- .../tests/nfsserver_syslog.sh_bak | 90 --------------- .../Functional.nscd/tests/nscd_syslog.sh_bak | 52 --------- .../Functional.ntp/tests/ntp_ntptime.sh_bak | 28 ----- .../Functional.ntp/tests/ntp_pid.sh | 57 ---------- .../Functional.ntp/tests/ntp_syslog.sh_bak | 55 --------- .../tests/openssh_pidfile.sh_bak | 61 ---------- .../tests/openssh_syslog.sh_bak | 49 --------- .../Functional.openvpn/tests/openvpn_pid.sh | 31 ------ .../tests/openvpn_pid.sh-old | 31 ------ .../tests/openvpn_syslog-ng.sh_bak | 42 ------- .../tests/openwsmand_syslog.sh_bak | 60 ---------- .../Functional.ospf6d/tests/ospf6d_logfile.sh | 72 ------------ .../tests/ospf6d_syslog.sh_bak | 73 ------------ .../Functional.ospfd/tests/ospfd_logfile.sh | 72 ------------ .../tests/ospfd_syslog.sh_bak | 75 ------------- .../tests/pcscd_syslog.sh_bak | 57 ---------- .../tests/postfix_logfile.sh_bak | 63 ----------- .../Functional.ptpd/tests/ptpd_syslog.sh_bak | 57 ---------- .../tests/radvd_logfile.sh_bak | 65 ----------- .../tests/regression_chkconfig.sh | 15 --- .../tests/regression_crda.sh | 15 --- .../tests/regression_eggdbus-binding-tool.sh | 13 --- .../tests/regression_execstack.sh | 13 --- .../tests/regression_genrandom.sh | 15 --- .../tests/regression_in.telnetd.sh-bak | 15 --- .../tests/regression_iwpriv.sh | 15 --- .../tests/regression_mip6d.sh | 15 --- .../tests/regression_omshell.sh | 15 --- .../tests/regression_rsh.sh-bak | 15 --- .../tests/regression_syslog-ng.sh | 13 --- .../tests/regression_uim-xim.sh | 13 --- .../tests/regression_wish8.6.sh | 15 --- .../tests/regression_xinetd.sh | 15 --- .../Functional.ripd/tests/ripd_logfile.sh | 104 ------------------ .../Functional.ripd/tests/ripd_syslog.sh_bak | 101 ----------------- .../Functional.ripngd/tests/ripngd_logfile.sh | 103 ----------------- .../tests/ripngd_syslog.sh_bak | 101 ----------------- .../tests/test_samba06_host.sh-bak | 22 ---- .../tests/samhain_check.sh_bak | 64 ----------- .../tests/samhain_init.sh_bak | 49 --------- .../tests/sysklogd_syslogd.sh_bak | 17 --- .../Functional.sysstat/tests/sysstat_sadc.sh | 15 --- .../tests/sysstat_sadc.sh_bak | 15 --- .../tests/trousers_start.sh_bak | 18 --- .../tests/utillinux_logger.sh_bak | 15 --- .../Functional.zebra/tests/zebra_logfile.sh | 75 ------------- .../tests/zebra_syslog.sh_bak | 73 ------------ fuego-core-ubinux/fuego-core/bgpd_ps.sh | 50 +++++++++ fuego-core-ubinux/fuego-core/dool_test.sh | 4 + fuego-core-ubinux/fuego-core/ethtool_show.sh | 23 ++++ fuego-core-ubinux/fuego-core/ethtool_test.sh | 4 + .../fuego-core/initscripts_ifdown-ifup.sh | 51 +++++++++ fuego-core-ubinux/fuego-core/ospf6d_ps.sh | 45 ++++++++ fuego-core-ubinux/fuego-core/ospfd_ps.sh | 45 ++++++++ fuego-core-ubinux/fuego-core/s-nail_test.sh | 4 + fuego-core-ubinux/fuego-core/test.yaml | 26 +++++ .../fuego-core/vixie_cron_test.sh | 7 ++ fuego-core-ubinux/fuego-core/zebra_ps.sh | 54 +++++++++ 92 files changed, 313 insertions(+), 3614 deletions(-) delete mode 100644 fuego-core-ubinux/fuego-core/Functional.acpid/tests/acpid_reload.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.at/tests/atd_syslog.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.bgpd/tests/bgpd_logfile.sh delete mode 100644 fuego-core-ubinux/fuego-core/Functional.bgpd/tests/bgpd_syslog.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.bind/tests/bind_chroot_syslog-ng.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.bind/tests/bind_named_syslog.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.busybox/tests/busybox_logger.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.busybox/tests/busybox_rpm.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.busybox/tests/busybox_rpm2cpio.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.busybox/tests/busybox_setkeycodes.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.busybox/tests/busybox_telnet.sh-bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.demo/tests/demo_mdadm.sh delete mode 100644 fuego-core-ubinux/fuego-core/Functional.demo/tests/demo_opensafd.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.demo/tests/demo_smartd.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.dhcrelay/tests/dhcrelay_syslog.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.dovecot/tests/dovecot_logfile.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.glibc/glibc_tests.tar.gz-bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.initscripts/tests/initscripts_ifdown-ifup.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.interactive/tests/interactive_crda.sh delete mode 100644 fuego-core-ubinux/fuego-core/Functional.kbd/tests/chvt.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.kbd/tests/kbdrate1.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.kbd/tests/kbdrate2.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.logd/tests/logd_syslog.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.logwatch/tests/logwatch_detail.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.logwatch/tests/logwatch_mailto.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.misc/tests/openssh-server_sshd.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.misc/tests/telnetd.sh-bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.multipathd/tests/multipathd_syslog.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.net-snmp/tests/snmpd_syslog.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.net-snmp/tests/snmpd_syslog_ip.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.net-snmp/tests/snmptrapd_coldstart.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.net-snmp/tests/snmptrapd_syslog.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.net-snmp/tests/snmptrapd_warmstart.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.net-tools/tests/net-tools_netstat2.sh-bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.nfs/tests/nfsserver_syslog.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.nscd/tests/nscd_syslog.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.ntp/tests/ntp_ntptime.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.ntp/tests/ntp_pid.sh delete mode 100644 fuego-core-ubinux/fuego-core/Functional.ntp/tests/ntp_syslog.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.openssh/tests/openssh_pidfile.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.openssh/tests/openssh_syslog.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.openvpn/tests/openvpn_pid.sh delete mode 100644 fuego-core-ubinux/fuego-core/Functional.openvpn/tests/openvpn_pid.sh-old delete mode 100644 fuego-core-ubinux/fuego-core/Functional.openvpn/tests/openvpn_syslog-ng.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.openwsmand/tests/openwsmand_syslog.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.ospf6d/tests/ospf6d_logfile.sh delete mode 100644 fuego-core-ubinux/fuego-core/Functional.ospf6d/tests/ospf6d_syslog.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.ospfd/tests/ospfd_logfile.sh delete mode 100644 fuego-core-ubinux/fuego-core/Functional.ospfd/tests/ospfd_syslog.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.pcscd/tests/pcscd_syslog.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.postfix/tests/postfix_logfile.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.ptpd/tests/ptpd_syslog.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.radvd/tests/radvd_logfile.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_chkconfig.sh delete mode 100644 fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_crda.sh delete mode 100644 fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_eggdbus-binding-tool.sh delete mode 100644 fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_execstack.sh delete mode 100644 fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_genrandom.sh delete mode 100644 fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_in.telnetd.sh-bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_iwpriv.sh delete mode 100644 fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_mip6d.sh delete mode 100644 fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_omshell.sh delete mode 100644 fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_rsh.sh-bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_syslog-ng.sh delete mode 100644 fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_uim-xim.sh delete mode 100644 fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_wish8.6.sh delete mode 100644 fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_xinetd.sh delete mode 100644 fuego-core-ubinux/fuego-core/Functional.ripd/tests/ripd_logfile.sh delete mode 100644 fuego-core-ubinux/fuego-core/Functional.ripd/tests/ripd_syslog.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.ripngd/tests/ripngd_logfile.sh delete mode 100644 fuego-core-ubinux/fuego-core/Functional.ripngd/tests/ripngd_syslog.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.samba/tests/test_samba06_host.sh-bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.samhain/tests/samhain_check.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.samhain/tests/samhain_init.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.sysklogd/tests/sysklogd_syslogd.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.sysstat/tests/sysstat_sadc.sh delete mode 100644 fuego-core-ubinux/fuego-core/Functional.sysstat/tests/sysstat_sadc.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.trousers/tests/trousers_start.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.utillinux/tests/utillinux_logger.sh_bak delete mode 100644 fuego-core-ubinux/fuego-core/Functional.zebra/tests/zebra_logfile.sh delete mode 100644 fuego-core-ubinux/fuego-core/Functional.zebra/tests/zebra_syslog.sh_bak create mode 100755 fuego-core-ubinux/fuego-core/bgpd_ps.sh create mode 100755 fuego-core-ubinux/fuego-core/dool_test.sh create mode 100755 fuego-core-ubinux/fuego-core/ethtool_show.sh create mode 100755 fuego-core-ubinux/fuego-core/ethtool_test.sh create mode 100755 fuego-core-ubinux/fuego-core/initscripts_ifdown-ifup.sh create mode 100755 fuego-core-ubinux/fuego-core/ospf6d_ps.sh create mode 100755 fuego-core-ubinux/fuego-core/ospfd_ps.sh create mode 100755 fuego-core-ubinux/fuego-core/s-nail_test.sh create mode 100755 fuego-core-ubinux/fuego-core/test.yaml create mode 100755 fuego-core-ubinux/fuego-core/vixie_cron_test.sh create mode 100755 fuego-core-ubinux/fuego-core/zebra_ps.sh diff --git a/fuego-core-ubinux/fuego-core/Functional.acpid/tests/acpid_reload.sh_bak b/fuego-core-ubinux/fuego-core/Functional.acpid/tests/acpid_reload.sh_bak deleted file mode 100644 index 51778ee..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.acpid/tests/acpid_reload.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.at/tests/atd_syslog.sh_bak b/fuego-core-ubinux/fuego-core/Functional.at/tests/atd_syslog.sh_bak deleted file mode 100644 index 0f87a17..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.at/tests/atd_syslog.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.bgpd/tests/bgpd_logfile.sh b/fuego-core-ubinux/fuego-core/Functional.bgpd/tests/bgpd_logfile.sh deleted file mode 100644 index dccf8c0..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.bgpd/tests/bgpd_logfile.sh +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.bgpd/tests/bgpd_syslog.sh_bak b/fuego-core-ubinux/fuego-core/Functional.bgpd/tests/bgpd_syslog.sh_bak deleted file mode 100644 index 13d33bf..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.bgpd/tests/bgpd_syslog.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.bind/tests/bind_chroot_syslog-ng.sh_bak b/fuego-core-ubinux/fuego-core/Functional.bind/tests/bind_chroot_syslog-ng.sh_bak deleted file mode 100644 index dc25016..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.bind/tests/bind_chroot_syslog-ng.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.bind/tests/bind_named_syslog.sh_bak b/fuego-core-ubinux/fuego-core/Functional.bind/tests/bind_named_syslog.sh_bak deleted file mode 100644 index cc04717..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.bind/tests/bind_named_syslog.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.busybox/tests/busybox_logger.sh_bak b/fuego-core-ubinux/fuego-core/Functional.busybox/tests/busybox_logger.sh_bak deleted file mode 100644 index e485c85..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.busybox/tests/busybox_logger.sh_bak +++ /dev/null @@ -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; diff --git a/fuego-core-ubinux/fuego-core/Functional.busybox/tests/busybox_rpm.sh_bak b/fuego-core-ubinux/fuego-core/Functional.busybox/tests/busybox_rpm.sh_bak deleted file mode 100644 index 9914d50..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.busybox/tests/busybox_rpm.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.busybox/tests/busybox_rpm2cpio.sh_bak b/fuego-core-ubinux/fuego-core/Functional.busybox/tests/busybox_rpm2cpio.sh_bak deleted file mode 100644 index 12043cd..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.busybox/tests/busybox_rpm2cpio.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.busybox/tests/busybox_setkeycodes.sh_bak b/fuego-core-ubinux/fuego-core/Functional.busybox/tests/busybox_setkeycodes.sh_bak deleted file mode 100644 index 9d16110..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.busybox/tests/busybox_setkeycodes.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.busybox/tests/busybox_telnet.sh-bak b/fuego-core-ubinux/fuego-core/Functional.busybox/tests/busybox_telnet.sh-bak deleted file mode 100644 index 13b0391..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.busybox/tests/busybox_telnet.sh-bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.demo/tests/demo_mdadm.sh b/fuego-core-ubinux/fuego-core/Functional.demo/tests/demo_mdadm.sh deleted file mode 100644 index 57a4a93..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.demo/tests/demo_mdadm.sh +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.demo/tests/demo_opensafd.sh_bak b/fuego-core-ubinux/fuego-core/Functional.demo/tests/demo_opensafd.sh_bak deleted file mode 100644 index b08f9fc..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.demo/tests/demo_opensafd.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.demo/tests/demo_smartd.sh_bak b/fuego-core-ubinux/fuego-core/Functional.demo/tests/demo_smartd.sh_bak deleted file mode 100644 index 082d498..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.demo/tests/demo_smartd.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.dhcrelay/tests/dhcrelay_syslog.sh_bak b/fuego-core-ubinux/fuego-core/Functional.dhcrelay/tests/dhcrelay_syslog.sh_bak deleted file mode 100644 index a4e0f87..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.dhcrelay/tests/dhcrelay_syslog.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.dovecot/tests/dovecot_logfile.sh_bak b/fuego-core-ubinux/fuego-core/Functional.dovecot/tests/dovecot_logfile.sh_bak deleted file mode 100644 index a262915..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.dovecot/tests/dovecot_logfile.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.glibc/glibc_tests.tar.gz-bak b/fuego-core-ubinux/fuego-core/Functional.glibc/glibc_tests.tar.gz-bak deleted file mode 100644 index c8cda284d78c450e4b2912bd37aa9e545d98e2b4..0000000000000000000000000000000000000000 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~gq8br9P9bqN$MzU%1@rNpsq?|gU{>i>q8 z@sR!DvfyPMLr*inSLP2FYyZyfuFj5)39x^6M`!01`(KW7KKqMCEOm)vpn-e3x+>W} z(F4Yg+J9rbV#NTcowKcTn0;1pAihdL>W*nKlQ)|EA?p z*U$ID<%Dgf=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(u1jBI0>riMS$Xsj~bt zi?EW^#;}H9b=XeiBeJ6e;zQCMq>9M}G$|K#wxVQ)$Bbn3vgXmh{Ex{(OnkEEH1ye2 zP^IZKibb{!tK#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 diff --git a/fuego-core-ubinux/fuego-core/Functional.initscripts/tests/initscripts_ifdown-ifup.sh_bak b/fuego-core-ubinux/fuego-core/Functional.initscripts/tests/initscripts_ifdown-ifup.sh_bak deleted file mode 100644 index ed1d2eb..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.initscripts/tests/initscripts_ifdown-ifup.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.interactive/tests/interactive_crda.sh b/fuego-core-ubinux/fuego-core/Functional.interactive/tests/interactive_crda.sh deleted file mode 100644 index b2994cc..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.interactive/tests/interactive_crda.sh +++ /dev/null @@ -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 - diff --git a/fuego-core-ubinux/fuego-core/Functional.kbd/tests/chvt.sh_bak b/fuego-core-ubinux/fuego-core/Functional.kbd/tests/chvt.sh_bak deleted file mode 100644 index 7bdeaf0..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.kbd/tests/chvt.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.kbd/tests/kbdrate1.sh_bak b/fuego-core-ubinux/fuego-core/Functional.kbd/tests/kbdrate1.sh_bak deleted file mode 100644 index 6c8ba8b..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.kbd/tests/kbdrate1.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.kbd/tests/kbdrate2.sh_bak b/fuego-core-ubinux/fuego-core/Functional.kbd/tests/kbdrate2.sh_bak deleted file mode 100644 index 33d3b37..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.kbd/tests/kbdrate2.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.logd/tests/logd_syslog.sh_bak b/fuego-core-ubinux/fuego-core/Functional.logd/tests/logd_syslog.sh_bak deleted file mode 100644 index d54ab92..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.logd/tests/logd_syslog.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.logwatch/tests/logwatch_detail.sh_bak b/fuego-core-ubinux/fuego-core/Functional.logwatch/tests/logwatch_detail.sh_bak deleted file mode 100644 index 4d7073a..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.logwatch/tests/logwatch_detail.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.logwatch/tests/logwatch_mailto.sh_bak b/fuego-core-ubinux/fuego-core/Functional.logwatch/tests/logwatch_mailto.sh_bak deleted file mode 100644 index dca35ff..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.logwatch/tests/logwatch_mailto.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.misc/tests/openssh-server_sshd.sh_bak b/fuego-core-ubinux/fuego-core/Functional.misc/tests/openssh-server_sshd.sh_bak deleted file mode 100644 index fb5d2aa..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.misc/tests/openssh-server_sshd.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.misc/tests/telnetd.sh-bak b/fuego-core-ubinux/fuego-core/Functional.misc/tests/telnetd.sh-bak deleted file mode 100644 index fb11ca5..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.misc/tests/telnetd.sh-bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.multipathd/tests/multipathd_syslog.sh_bak b/fuego-core-ubinux/fuego-core/Functional.multipathd/tests/multipathd_syslog.sh_bak deleted file mode 100644 index afe1ca8..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.multipathd/tests/multipathd_syslog.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.net-snmp/tests/snmpd_syslog.sh_bak b/fuego-core-ubinux/fuego-core/Functional.net-snmp/tests/snmpd_syslog.sh_bak deleted file mode 100644 index 6d2c38a..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.net-snmp/tests/snmpd_syslog.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.net-snmp/tests/snmpd_syslog_ip.sh_bak b/fuego-core-ubinux/fuego-core/Functional.net-snmp/tests/snmpd_syslog_ip.sh_bak deleted file mode 100644 index 0b9b7e6..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.net-snmp/tests/snmpd_syslog_ip.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.net-snmp/tests/snmptrapd_coldstart.sh_bak b/fuego-core-ubinux/fuego-core/Functional.net-snmp/tests/snmptrapd_coldstart.sh_bak deleted file mode 100644 index 914bc06..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.net-snmp/tests/snmptrapd_coldstart.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.net-snmp/tests/snmptrapd_syslog.sh_bak b/fuego-core-ubinux/fuego-core/Functional.net-snmp/tests/snmptrapd_syslog.sh_bak deleted file mode 100644 index 8882416..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.net-snmp/tests/snmptrapd_syslog.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.net-snmp/tests/snmptrapd_warmstart.sh_bak b/fuego-core-ubinux/fuego-core/Functional.net-snmp/tests/snmptrapd_warmstart.sh_bak deleted file mode 100644 index 1cc9ffe..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.net-snmp/tests/snmptrapd_warmstart.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.net-tools/tests/net-tools_netstat2.sh-bak b/fuego-core-ubinux/fuego-core/Functional.net-tools/tests/net-tools_netstat2.sh-bak deleted file mode 100644 index 6870860..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.net-tools/tests/net-tools_netstat2.sh-bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.nfs/tests/nfsserver_syslog.sh_bak b/fuego-core-ubinux/fuego-core/Functional.nfs/tests/nfsserver_syslog.sh_bak deleted file mode 100644 index c1359c2..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.nfs/tests/nfsserver_syslog.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.nscd/tests/nscd_syslog.sh_bak b/fuego-core-ubinux/fuego-core/Functional.nscd/tests/nscd_syslog.sh_bak deleted file mode 100644 index 548960c..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.nscd/tests/nscd_syslog.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.ntp/tests/ntp_ntptime.sh_bak b/fuego-core-ubinux/fuego-core/Functional.ntp/tests/ntp_ntptime.sh_bak deleted file mode 100644 index 4d5f961..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.ntp/tests/ntp_ntptime.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.ntp/tests/ntp_pid.sh b/fuego-core-ubinux/fuego-core/Functional.ntp/tests/ntp_pid.sh deleted file mode 100644 index 61e5a9a..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.ntp/tests/ntp_pid.sh +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.ntp/tests/ntp_syslog.sh_bak b/fuego-core-ubinux/fuego-core/Functional.ntp/tests/ntp_syslog.sh_bak deleted file mode 100644 index 41134c2..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.ntp/tests/ntp_syslog.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.openssh/tests/openssh_pidfile.sh_bak b/fuego-core-ubinux/fuego-core/Functional.openssh/tests/openssh_pidfile.sh_bak deleted file mode 100644 index d30df75..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.openssh/tests/openssh_pidfile.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.openssh/tests/openssh_syslog.sh_bak b/fuego-core-ubinux/fuego-core/Functional.openssh/tests/openssh_syslog.sh_bak deleted file mode 100644 index a0897ce..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.openssh/tests/openssh_syslog.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.openvpn/tests/openvpn_pid.sh b/fuego-core-ubinux/fuego-core/Functional.openvpn/tests/openvpn_pid.sh deleted file mode 100644 index dbcb61a..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.openvpn/tests/openvpn_pid.sh +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.openvpn/tests/openvpn_pid.sh-old b/fuego-core-ubinux/fuego-core/Functional.openvpn/tests/openvpn_pid.sh-old deleted file mode 100644 index dbcb61a..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.openvpn/tests/openvpn_pid.sh-old +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.openvpn/tests/openvpn_syslog-ng.sh_bak b/fuego-core-ubinux/fuego-core/Functional.openvpn/tests/openvpn_syslog-ng.sh_bak deleted file mode 100644 index 8dd84ee..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.openvpn/tests/openvpn_syslog-ng.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.openwsmand/tests/openwsmand_syslog.sh_bak b/fuego-core-ubinux/fuego-core/Functional.openwsmand/tests/openwsmand_syslog.sh_bak deleted file mode 100644 index f1044f4..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.openwsmand/tests/openwsmand_syslog.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.ospf6d/tests/ospf6d_logfile.sh b/fuego-core-ubinux/fuego-core/Functional.ospf6d/tests/ospf6d_logfile.sh deleted file mode 100644 index a9c7c17..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.ospf6d/tests/ospf6d_logfile.sh +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.ospf6d/tests/ospf6d_syslog.sh_bak b/fuego-core-ubinux/fuego-core/Functional.ospf6d/tests/ospf6d_syslog.sh_bak deleted file mode 100644 index ff61a96..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.ospf6d/tests/ospf6d_syslog.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.ospfd/tests/ospfd_logfile.sh b/fuego-core-ubinux/fuego-core/Functional.ospfd/tests/ospfd_logfile.sh deleted file mode 100644 index d7ebc9d..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.ospfd/tests/ospfd_logfile.sh +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.ospfd/tests/ospfd_syslog.sh_bak b/fuego-core-ubinux/fuego-core/Functional.ospfd/tests/ospfd_syslog.sh_bak deleted file mode 100644 index 2cec54a..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.ospfd/tests/ospfd_syslog.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.pcscd/tests/pcscd_syslog.sh_bak b/fuego-core-ubinux/fuego-core/Functional.pcscd/tests/pcscd_syslog.sh_bak deleted file mode 100644 index e9825f2..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.pcscd/tests/pcscd_syslog.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.postfix/tests/postfix_logfile.sh_bak b/fuego-core-ubinux/fuego-core/Functional.postfix/tests/postfix_logfile.sh_bak deleted file mode 100644 index 11bb970..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.postfix/tests/postfix_logfile.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.ptpd/tests/ptpd_syslog.sh_bak b/fuego-core-ubinux/fuego-core/Functional.ptpd/tests/ptpd_syslog.sh_bak deleted file mode 100644 index 20d51ba..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.ptpd/tests/ptpd_syslog.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.radvd/tests/radvd_logfile.sh_bak b/fuego-core-ubinux/fuego-core/Functional.radvd/tests/radvd_logfile.sh_bak deleted file mode 100644 index 01bda64..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.radvd/tests/radvd_logfile.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_chkconfig.sh b/fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_chkconfig.sh deleted file mode 100644 index 3ca6142..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_chkconfig.sh +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_crda.sh b/fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_crda.sh deleted file mode 100644 index 5b04e3e..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_crda.sh +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_eggdbus-binding-tool.sh b/fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_eggdbus-binding-tool.sh deleted file mode 100644 index 300f20e..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_eggdbus-binding-tool.sh +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_execstack.sh b/fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_execstack.sh deleted file mode 100644 index 39dc4d6..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_execstack.sh +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_genrandom.sh b/fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_genrandom.sh deleted file mode 100644 index 616c293..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_genrandom.sh +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_in.telnetd.sh-bak b/fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_in.telnetd.sh-bak deleted file mode 100644 index 0681ff6..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_in.telnetd.sh-bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_iwpriv.sh b/fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_iwpriv.sh deleted file mode 100644 index 02f82a3..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_iwpriv.sh +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_mip6d.sh b/fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_mip6d.sh deleted file mode 100644 index df177cb..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_mip6d.sh +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_omshell.sh b/fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_omshell.sh deleted file mode 100644 index f22777a..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_omshell.sh +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_rsh.sh-bak b/fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_rsh.sh-bak deleted file mode 100644 index a1a2dd5..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_rsh.sh-bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_syslog-ng.sh b/fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_syslog-ng.sh deleted file mode 100644 index 5592056..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_syslog-ng.sh +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_uim-xim.sh b/fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_uim-xim.sh deleted file mode 100644 index 128e653..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_uim-xim.sh +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_wish8.6.sh b/fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_wish8.6.sh deleted file mode 100644 index 9d29832..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_wish8.6.sh +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_xinetd.sh b/fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_xinetd.sh deleted file mode 100644 index 3ac28a4..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.regression/tests/regression_xinetd.sh +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.ripd/tests/ripd_logfile.sh b/fuego-core-ubinux/fuego-core/Functional.ripd/tests/ripd_logfile.sh deleted file mode 100644 index ee3f156..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.ripd/tests/ripd_logfile.sh +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.ripd/tests/ripd_syslog.sh_bak b/fuego-core-ubinux/fuego-core/Functional.ripd/tests/ripd_syslog.sh_bak deleted file mode 100644 index 0e492e8..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.ripd/tests/ripd_syslog.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.ripngd/tests/ripngd_logfile.sh b/fuego-core-ubinux/fuego-core/Functional.ripngd/tests/ripngd_logfile.sh deleted file mode 100644 index b415182..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.ripngd/tests/ripngd_logfile.sh +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.ripngd/tests/ripngd_syslog.sh_bak b/fuego-core-ubinux/fuego-core/Functional.ripngd/tests/ripngd_syslog.sh_bak deleted file mode 100644 index b200c3e..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.ripngd/tests/ripngd_syslog.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.samba/tests/test_samba06_host.sh-bak b/fuego-core-ubinux/fuego-core/Functional.samba/tests/test_samba06_host.sh-bak deleted file mode 100644 index e04dac3..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.samba/tests/test_samba06_host.sh-bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.samhain/tests/samhain_check.sh_bak b/fuego-core-ubinux/fuego-core/Functional.samhain/tests/samhain_check.sh_bak deleted file mode 100644 index b94263c..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.samhain/tests/samhain_check.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.samhain/tests/samhain_init.sh_bak b/fuego-core-ubinux/fuego-core/Functional.samhain/tests/samhain_init.sh_bak deleted file mode 100644 index b15297d..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.samhain/tests/samhain_init.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.sysklogd/tests/sysklogd_syslogd.sh_bak b/fuego-core-ubinux/fuego-core/Functional.sysklogd/tests/sysklogd_syslogd.sh_bak deleted file mode 100644 index fd534dd..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.sysklogd/tests/sysklogd_syslogd.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.sysstat/tests/sysstat_sadc.sh b/fuego-core-ubinux/fuego-core/Functional.sysstat/tests/sysstat_sadc.sh deleted file mode 100644 index b583d3c..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.sysstat/tests/sysstat_sadc.sh +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.sysstat/tests/sysstat_sadc.sh_bak b/fuego-core-ubinux/fuego-core/Functional.sysstat/tests/sysstat_sadc.sh_bak deleted file mode 100644 index b583d3c..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.sysstat/tests/sysstat_sadc.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.trousers/tests/trousers_start.sh_bak b/fuego-core-ubinux/fuego-core/Functional.trousers/tests/trousers_start.sh_bak deleted file mode 100644 index d85c532..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.trousers/tests/trousers_start.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.utillinux/tests/utillinux_logger.sh_bak b/fuego-core-ubinux/fuego-core/Functional.utillinux/tests/utillinux_logger.sh_bak deleted file mode 100644 index 453fb0f..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.utillinux/tests/utillinux_logger.sh_bak +++ /dev/null @@ -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; diff --git a/fuego-core-ubinux/fuego-core/Functional.zebra/tests/zebra_logfile.sh b/fuego-core-ubinux/fuego-core/Functional.zebra/tests/zebra_logfile.sh deleted file mode 100644 index 241c5ad..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.zebra/tests/zebra_logfile.sh +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/Functional.zebra/tests/zebra_syslog.sh_bak b/fuego-core-ubinux/fuego-core/Functional.zebra/tests/zebra_syslog.sh_bak deleted file mode 100644 index 8e86f8a..0000000 --- a/fuego-core-ubinux/fuego-core/Functional.zebra/tests/zebra_syslog.sh_bak +++ /dev/null @@ -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 diff --git a/fuego-core-ubinux/fuego-core/bgpd_ps.sh b/fuego-core-ubinux/fuego-core/bgpd_ps.sh new file mode 100755 index 0000000..562ade6 --- /dev/null +++ b/fuego-core-ubinux/fuego-core/bgpd_ps.sh @@ -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 diff --git a/fuego-core-ubinux/fuego-core/dool_test.sh b/fuego-core-ubinux/fuego-core/dool_test.sh new file mode 100755 index 0000000..dd5ce37 --- /dev/null +++ b/fuego-core-ubinux/fuego-core/dool_test.sh @@ -0,0 +1,4 @@ +#!/bin/sh +for i in tests/*.sh; do + sh $i +done diff --git a/fuego-core-ubinux/fuego-core/ethtool_show.sh b/fuego-core-ubinux/fuego-core/ethtool_show.sh new file mode 100755 index 0000000..e56a4ac --- /dev/null +++ b/fuego-core-ubinux/fuego-core/ethtool_show.sh @@ -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 diff --git a/fuego-core-ubinux/fuego-core/ethtool_test.sh b/fuego-core-ubinux/fuego-core/ethtool_test.sh new file mode 100755 index 0000000..dd5ce37 --- /dev/null +++ b/fuego-core-ubinux/fuego-core/ethtool_test.sh @@ -0,0 +1,4 @@ +#!/bin/sh +for i in tests/*.sh; do + sh $i +done diff --git a/fuego-core-ubinux/fuego-core/initscripts_ifdown-ifup.sh b/fuego-core-ubinux/fuego-core/initscripts_ifdown-ifup.sh new file mode 100755 index 0000000..700c9e1 --- /dev/null +++ b/fuego-core-ubinux/fuego-core/initscripts_ifdown-ifup.sh @@ -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 diff --git a/fuego-core-ubinux/fuego-core/ospf6d_ps.sh b/fuego-core-ubinux/fuego-core/ospf6d_ps.sh new file mode 100755 index 0000000..d9cdded --- /dev/null +++ b/fuego-core-ubinux/fuego-core/ospf6d_ps.sh @@ -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 diff --git a/fuego-core-ubinux/fuego-core/ospfd_ps.sh b/fuego-core-ubinux/fuego-core/ospfd_ps.sh new file mode 100755 index 0000000..da73061 --- /dev/null +++ b/fuego-core-ubinux/fuego-core/ospfd_ps.sh @@ -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 diff --git a/fuego-core-ubinux/fuego-core/s-nail_test.sh b/fuego-core-ubinux/fuego-core/s-nail_test.sh new file mode 100755 index 0000000..dd5ce37 --- /dev/null +++ b/fuego-core-ubinux/fuego-core/s-nail_test.sh @@ -0,0 +1,4 @@ +#!/bin/sh +for i in tests/*.sh; do + sh $i +done diff --git a/fuego-core-ubinux/fuego-core/test.yaml b/fuego-core-ubinux/fuego-core/test.yaml new file mode 100755 index 0000000..f5c0654 --- /dev/null +++ b/fuego-core-ubinux/fuego-core/test.yaml @@ -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 +maintainer: Zheng Ruoqin +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 diff --git a/fuego-core-ubinux/fuego-core/vixie_cron_test.sh b/fuego-core-ubinux/fuego-core/vixie_cron_test.sh new file mode 100755 index 0000000..95c34db --- /dev/null +++ b/fuego-core-ubinux/fuego-core/vixie_cron_test.sh @@ -0,0 +1,7 @@ +#!/bin/sh +. ./fuego_board_function_lib.sh +set_init_manager + +for i in tests/*.sh; do + source $i +done diff --git a/fuego-core-ubinux/fuego-core/zebra_ps.sh b/fuego-core-ubinux/fuego-core/zebra_ps.sh new file mode 100755 index 0000000..25b8dbe --- /dev/null +++ b/fuego-core-ubinux/fuego-core/zebra_ps.sh @@ -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