Impala 编译测试脚本分析
2016-07-14 10:09
411 查看
Impala build infrastructure.
Buildall.sh
|---bin/make_impala.sh #buildcommon and backend(CMake).
|---cdcommon/function-registry && make
|---cd &IMPALA_HOME &&make -j${IMPALA_BUILD_THREADS:-4} impalad
|---make statestored
|---make catalogd
|---make -j${IMPALA_BUILD_THREADS:-4}fesupport loggingsupport ImpalaUdf
|---/ext-data-source && bin/mvn-quiet.sh install #build external data source API.(pom.xml)
|---bin/mvn-quiet.sh package #build frontend and copy dependencies(fe/pom.xml)
|---shell/make_shell_tarball.h #build the shell tarball.
|---tests/make_test_tarball.sh #create test tarball
|---testdata/bin/run-all.sh #Starts up a mini-dfs test cluster and related services
|---bin/run-all-tests.sh #run all the unit and integration test include be and fe.
集成测试:
集成测试使用pytest框架搭建
./buildall.sh –testdata build并执行测试用例
cd tests/ 存放测试用例脚本
./run-tests.py 运行所有测试用例
单元测试
BE(cmake): 使用cmake系统进行编译,基于gtest单元测试框架搭建
cd be/ && make be-test 生成be下所有的单元测试文件
cd be/build/debug 所有单元测试用例生成目标文件路径
FE (maven)
cd fe/
mvn test 生成fe下所有的单元测试文件
Buildall.sh
|---bin/make_impala.sh #buildcommon and backend(CMake).
|---cdcommon/function-registry && make
|---cd &IMPALA_HOME &&make -j${IMPALA_BUILD_THREADS:-4} impalad
|---make statestored
|---make catalogd
|---make -j${IMPALA_BUILD_THREADS:-4}fesupport loggingsupport ImpalaUdf
|---/ext-data-source && bin/mvn-quiet.sh install #build external data source API.(pom.xml)
|---bin/mvn-quiet.sh package #build frontend and copy dependencies(fe/pom.xml)
|---shell/make_shell_tarball.h #build the shell tarball.
|---tests/make_test_tarball.sh #create test tarball
|---testdata/bin/run-all.sh #Starts up a mini-dfs test cluster and related services
|---bin/run-all-tests.sh #run all the unit and integration test include be and fe.
集成测试:
集成测试使用pytest框架搭建
./buildall.sh –testdata build并执行测试用例
cd tests/ 存放测试用例脚本
./run-tests.py 运行所有测试用例
单元测试
BE(cmake): 使用cmake系统进行编译,基于gtest单元测试框架搭建
cd be/ && make be-test 生成be下所有的单元测试文件
cd be/build/debug 所有单元测试用例生成目标文件路径
FE (maven)
cd fe/
mvn test 生成fe下所有的单元测试文件
相关文章推荐
- Shell 脚本编程陷阱
- VBS脚本写的Windows硬件检测工具分享
- 用vbscript实现隐藏任务栏图标的脚本
- 用autoit编写第一个脚本(Hello World)
- VBS调用WMI快速关闭IE的脚本
- Oracle数据库执行脚本常用命令小结
- 收集的ROS防火墙脚本
- JSP脚本漏洞面面观
- 不错的批处理脚本 第一部分
- VBS脚本加密/解密VBS脚本(简易免杀版1.1)
- 不错的批处理脚本实例代码 第二部分
- 使用脚本和批处理清除电脑中的痕迹的代码第1/2页
- 让你的脚本说话
- Lua脚本获取喜马拉雅MP3音频地址
- SQL Server中数据行批量插入脚本的存储实现
- 编程界主流脚本编程语言的比较和选择
- 批量文件查找替换功能的vbs脚本
- Powershell脚本的4种执行权限介绍
- Windows Powershell 执行文件和脚本