Etesting

Armor test

Author: Ma Hongxin

测试命令

登录目标系统,进入/usr/local/armor/test_scripts目录并执行auto_test_armot_tool.sh脚本:

1
2
3
cd /usr/local/armor/test_scripts
chmod +x auto_test_armor_tool.sh
./auto_test_armor_tool.sh > armor_test.log 2>&1

auto_test_armor_tool.sh脚本执行的 标准输出标准错误 信息将重定向到armor_test.log文件。

测试结果分析

  1. 查询未安装的armor工具

    1
    grep "not found" armor_test.log
  2. 查询测试失败的armor工具

    1
    grep "failed" armor_test.log

对比系统升级前后的测试结果

目标系统升级完成后,继续执行上述测试命令,并对比系统升级前后的测试结果。

系统升级命令

CentOS

1
2
yum update
yum upgrade

Fedora

1
2
dnf update
dnf upgrade

OpenSuse

1
2
zypper update
zypper upgrade

Debian & Ubuntu

1
2
apt-get update
apt-get upgrade

热评文章