test:
atoum:
args: "command line arguments go here"
config: "path to config file"
directory: "directory to run tests"
executable: "path to atoum executable"
Rex 是远程执行的缩写。 该系统由工程师 Ferenc Erki 开发,用于实现数据中心流程的自动化。 Rex 基于 Perl 脚本,但无需了解这种语言即可与该工具交互 - 大多数操作(例如复制文件)都在函数库中描述,并且脚本通常适合十行。 以下是登录多个服务器并运行正常运行时间的示例:
use Rex -feature => ['1.3'];
user "my-user";
password "my-password";
group myservers => "mywebserver", "mymailserver", "myfileserver";
desc "Get the uptime of all servers";
task "uptime", group => "myservers", sub {
my $output = run "uptime";
say $output;
};