环境linux
遇到很多次命令执行失败都是因为没加sudo 自己注意一下

http://www.comp.nus.edu.sg/~release/corebench/#download
按照步骤下载corebench
1、The Dockerfile, test scripts, and installation scripts are available on Github.
2、* Download and install Docker.按照下面的命令行敲

git clone https://github.com/mboehme/corebench.git

docker pull mboehme/corebench
docker pull mboehme/corebenchx

执行 ./run.sh
to start the Docker container with a shared directory /shared.

连接docker容器:
执行./run corebench
to open container for find, grep, and make and ./run corebenchx for coreutils.
进入刚刚下载的目录里
cd /root/corebench and repository in /root/corerepo
* Implement analysis.sh as your analysis script

执行 ./executeTests.sh -test-all /root/corerepo
测试每个
1) on the version BEFORE the regression-INTRODUCING commit (should PASS)
2) on the version AFTER the regression-INTRODUCING commit (should FAIL)
3) on the version BEFORE the regression-FIXING commit (should FAIL)
4) on the version AFTER the regression-FIXING commit (should PASS)
会出现下面的情况:等待他执行成功
这部分要翻墙才行
还要建立git仓库,具体方法参见http://www.linuxidc.com/Linux/2011-02/32542.htm
关于使用corebench的学习笔记

相关文章: