如何在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)

相關內容