1 Star 0 Fork 0

Bytedance Inc./terarkdb

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
coverage.sh 509 Bytes
一键复制 编辑 原始数据 按行查看 历史
guokuankuan 提交于 2020-12-20 15:07 +08:00 . [feature] add simpler coverage test
#!/bin/sh
BASE=$PWD
GCC_VERSION=`gcc -dumpversion | awk -F '.' '{print $1}')`
mkdir -p build
# build
cd $BASE/build && cmake ../ -DCMAKE_BUILD_TYPE=RelWithDebInfo -DWITH_TESTS=ON -DWITH_TOOLS=OFF -DWITH_COVERAGE=ON
cd $BASE/build && make -j $(nproc)
# run tests
cd $BASE/build && ctest -j 20
# collect result
cd $BASE/build && lcov --gcov-tool /usr/bin/gcov-$GCC_VERSION --directory . --capture --output-file lcov_output.info
cd $BASE/build && genhtml lcov_output.info --output=cov_html
# print result
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ByteDance/terarkdb.git
git@gitee.com:ByteDance/terarkdb.git
ByteDance
terarkdb
terarkdb
dev.1.4

搜索帮助