您的位置:首页 > 其它

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下所有的单元测试文件
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  impala 脚本