Skip to content

A simple test framework to test tpctl#6

Open
ofey404 wants to merge 6 commits into
cosven:masterfrom
ofey404:simple-test-framework
Open

A simple test framework to test tpctl#6
ofey404 wants to merge 6 commits into
cosven:masterfrom
ofey404:simple-test-framework

Conversation

@ofey404
Copy link
Copy Markdown
Contributor

@ofey404 ofey404 commented Dec 11, 2020

Generate test case

Testcase can be generated by:

./generate.sh tmp tpctl prepare hello --build-image --run-time 2m --feature test-tpctl

# Read more in help
./generate.sh -h

Test tpctl

Run this to run a testcase.

$ ./runtest.sh hello
diff -r /home/ofey/Code/PingCAP-Internship/tidb-testing/tipocket-ctl/tpctl/tests/data/hello/tpctl-build/tpctl-dockerfile /home/ofey/Code/PingCAP-Internship/tidb-testing/tipocket-ctl/tpctl/tests/data/tmp/tpctl-build/tpctl-dockerfile
6c6
< COPY config /
---
> COPY config /config

Refer readme for more information.
https://github.com/ofey404/tidb-testing/blob/simple-test-framework/tipocket-ctl/tpctl/tests/README.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant