Debian安装avocado主测试框架:
sudo apt-get install python-pip python-yaml
pip install --user avocado-framework
source ~/.profile
如果是root账户,需要执行命令:
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