Debian安裝avocado主測試框架:
sudo apt-get install python-pip python-yaml
pip install --user avocado-framework
source ~/.profile
如果是root賬戶户魏,需要執(zhí)行命令:
sudo -i
pip install --user avocado-framework
echo PATH="$HOME/.local/bin:$PATH" >> /root/.bashrc
source /root/.bashrc
下載avocado-misc-tests(原autotest測試套)
git clone https://github.com/avocado-framework-tests/avocado-misc-tests.git
printf "netifaces==0.10.9\npexpect==4.7.0\n" >> requirements-travis.txt
pip install -r avocado-misc-tests/requirements-travis.txt
avocado run avocado-misc-tests/fuzz/trinity.py
因為avocade-misc-tests 支持debian和ubuntu砸抛,代碼中沒有寫入支持deepin怨规,所以需要修改版本文件茅郎,把版本文件模擬成ubuntu喜鼓。
mv /etc/debian_version ~/.
sed -i "2s/Deepin/ubuntu/g" /etc/os-release