ConstantsΒ§
- PORT_
CHECK_ πINTERVAL - Check port every 0.1 second.
- PROGRAM
FunctionsΒ§
- check_
port - Spin-waiting a socket address is available, or timeout. Returns whether the addr is up.
- decompress π
- download_
files π - get_
binary_ dir - get_
case_ dir - Get the dir of test cases. This function only works when the runner is run under the projectβs dir because it depends on some envs set by cargo.
- get_
random_ port - Get a random available port by binding to port 0
- get_
workspace_ root - Get the dir that contains workspace manifest (the top-level Cargo.toml).
- http_
proxy π - https_
proxy π - maybe_
pull_ binary - Pull the binary if it does not exist and
pull_version_on_need
is true. - pull_
binary - Use curl to download the binary from the release page.
- setup_
etcd - Set up a standalone etcd in docker.
- setup_
mysql - Set up a MySql server in docker.
- setup_
pg - Set up a PostgreSQL server in docker.
- setup_
wal - Start kafka cluster if needed. Config file is
conf/kafka-cluster.yml
. - sqlness_
conf_ path - Get the path of sqlness config dir
tests/conf
. - stop_
rm_ etcd - Stop and remove the etcd container
- teardown_
wal - Stop kafka cluster if needed. Config file is
conf/kafka-cluster.yml
.