未验证 提交 99eece10 编写于 作者: 羽飞's avatar 羽飞 提交者: GitHub

Python test (#179)

### What problem were solved in this pull request?

Issue Number: close #169 

Problem:
python测试脚本启动过于复杂;
没有利用python的case测试功能

### What is changed and how it works?
删减掉大部分python测试脚本的参数;
把basic测试用例增加到github action中

### Other information
上级 5017ced9
......@@ -53,3 +53,15 @@ jobs:
shell: bash
run: sudo bash build.sh init && bash build.sh release --make -j4
basic-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v2
- name: run basic test
shell: bash
run: |
sudo bash build.sh init
python3 test/case/miniob_test.py --test-cases=basic | tail -1 | grep "basic is success"
# miniob-test
miniob自动化功能测试
使用方法参考 miniob_test.py
运行所有测试用例:
```bash
python3 miniob_test.py
```
运行 basic 测试用例
```bash
python3 miniob_test.py --test-cases=basic
```
> 如果要运行多个测试用例,则在 --test-cases 参数中使用 ',' 分隔写多个即可
更多运行方法和参数可以参考 miniob_test.py
{
"basic":{"necessary":true, "score":10},
"primary-date":{"necessary":true, "score":10},
"primary-update":{"necessary":true, "score":10},
"primary-select-meta":{"necessary":true, "score":10},
"primary-select-tables":{"necessary":true, "score":10},
"primary-aggregation-func":{"necessary":true, "score":10},
"primary-drop-table":{"necessary":true, "score":10},
"primary-insert":{"necessary":false, "score":10},
"primary-join-tables":{"necessary":false, "score":20},
"primary-null":{"necessary":false, "score":10},
"primary-unique":{"necessary":false, "score":10},
"primary-simple-sub-query":{"necessary":false, "score":10},
"primary-multi-index":{"necessary":false, "score":20},
"primary-text":{"necessary":false, "score":20},
"primary-expression":{"necessary":false, "score":20},
"primary-complex-sub-query":{"necessary":false, "score":20},
"primary-order-by":{"necessary":false, "score":10},
"primary-group-by":{"necessary":false, "score":20}
}
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册