如何在 Linux 上安装自动测试?

如何在 Linux 上安装自动测试?

我正在查看此处的自动测试软件套件:

https://github.com/autotest/autotest

我按照此处文档中的说明进行操作:

http://autotest.readthedocs.org/en/latest/main/local/ClientQuickStart.html

但是当我按照文档中的建议使用命令 client/autotest-local --verbose run sleeptest 时,出现以下错误:

18:39:05 ERROR| Can not find test sleeptest/control

所以我猜想部分软件缺失或安装不正确,但我已按照说明操作。我是否遗漏了某些明显的东西?

答案1

这可能是因为您错过了那个测试client/tests/sleeptest

您是否使用该--recursive选项克隆了存储库?

git clone --recursive git://github.com/autotest/autotest.git
cd autotest
client/autotest-local --verbose run sleeptest

这将初始化所有项目子模块。

手册页

来自git clone --helpman git-clone:

--recursive, --recurse-submodules
    After the clone is created, initialize all submodules within, using
    their default settings. This is equivalent to running git submodule
    update --init --recursive immediately after the clone is finished.
    This option is ignored if the cloned repository does not have a
    worktree/checkout (i.e. if any of --no-checkout/-n, --bare, or
    --mirror is given)

相关内容