1 Star 0 Fork 66

ylsong / tone-cli

forked from anolis / tone-cli 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
manual-zh_CN.md 1.50 KB
一键复制 编辑 原始数据 按行查看 历史
ylsong 提交于 2022-12-26 10:36 . update url in docs

使用手册

安装

git clone https://gitee.com/anolis/tone-cli.git
cd tone-cli
make install

下载测试套件

tone fetch unixbench

安装测试套件

tone install unixbench

查看测试套件

tone list unixbench

运行测试套件

全量运行

tone run unixbench

按测试集运行

tone run unixbench:whetstone-double-1-10s # 使用名称索引
tone run unixbench::0 # 使用数字索引

查看结果

位置:../tone-cli/result/测试套件/测试集/运行次数/

以unixbench为例:

cd  tone-cli/result/unixbench/shell1-1-30/1/
tree -L 2
|-- env.sh        # 运行时的环境变量
|-- result.json   # 结果文件
|-- stderr.log    # 标准错误输出日志
|-- stdout.log    # 标准输入日志 
|-- sysinfo 
|   |-- post      # 运行后系统信息
|   `-- pre       # 运行前系统信息

问题及解决方法

1.在部分python2与python3共存的环境中,可能会提示:

/usr/bin/env: 'python': No such file or directory

可以通过添加python2或python3的软链接到python来解决这个问题

查看当前环境的python版本信息:

whereis python

根据当前环境的python版本做软链接的映射,以python3.6和python2.7为例:

python3(推荐):

ln -s /usr/bin/python3.6 /usr/bin/python

python2:

ln -s /usr/bin/python2.7 /usr/bin/python

此外,pip的类似问题也可以通过上述方法来处理

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/songyanling/tone-cli.git
git@gitee.com:songyanling/tone-cli.git
songyanling
tone-cli
tone-cli
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891