From 37ca5ba380b6f22df078fbd86da3062548ae1cdb Mon Sep 17 00:00:00 2001 From: Ruihang Xia Date: Tue, 7 Feb 2023 18:53:46 +0800 Subject: [PATCH] chore: alias sqlness subcommand (#956) Signed-off-by: Ruihang Xia --- .cargo/config.toml | 3 +++ .github/workflows/develop.yml | 2 +- Makefile | 2 +- tests/README.md | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index 3c32d251c5a5..215eeab77090 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,2 +1,5 @@ [target.aarch64-unknown-linux-gnu] linker = "aarch64-linux-gnu-gcc" + +[alias] +sqlness = "run --bin sqlness-runner --" diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml index 3987b8835689..e9c0c33379df 100644 --- a/.github/workflows/develop.yml +++ b/.github/workflows/develop.yml @@ -138,7 +138,7 @@ jobs: sudo cp -a /tmp/etcd-download/etcd* /usr/local/bin/ nohup etcd >/tmp/etcd.log 2>&1 & - name: Run sqlness - run: cargo run --bin sqlness-runner && ls /tmp + run: cargo sqlness && ls /tmp - name: Upload sqlness logs uses: actions/upload-artifact@v3 with: diff --git a/Makefile b/Makefile index 28938acf3238..e602ca78eb52 100644 --- a/Makefile +++ b/Makefile @@ -35,7 +35,7 @@ integration-test: ## Run integation test. .PHONY: sqlness-test sqlness-test: ## Run sqlness test. - cargo run --bin sqlness-runner + cargo sqlness .PHONY: check check: ## Cargo check all the targets. diff --git a/tests/README.md b/tests/README.md index 04cdc5d84c67..d9acfd441d02 100644 --- a/tests/README.md +++ b/tests/README.md @@ -31,7 +31,7 @@ Sqlness walks through every file recursively and runs them. ## Run the test Unlike other tests, this harness is in a binary target form. You can run it with ```shell -cargo run --bin sqlness-runner +cargo sqlness ``` It automatically finishes the following procedures: compile `GreptimeDB`, start it, grab tests and feed it to the server, then collect and compare the results. You only need to check whether there are new `.output` files.