From cf9a4ff1aa0e48355657fdffa9b2431be61e5f0c Mon Sep 17 00:00:00 2001 From: Boming Zhang <bomingzh@sjtu.edu.cn> Date: Mon, 16 Sep 2024 00:41:21 -0400 Subject: [PATCH] ci: ci-test --- .gitea/workflows/test.yaml | 2 +- Makefile | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index 9172b45..6035cc3 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -40,4 +40,4 @@ jobs: - name: Test run: | make prepare-test - make test + make ci-test diff --git a/Makefile b/Makefile index cea7f45..bb3bc16 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: all build clean prepare-test test +.PHONY: all build clean prepare-test test ci-test BUILD_DIR = ./build TMP_DIR = ./tmp @@ -21,3 +21,8 @@ prepare-test: test: ./scripts/prepare_test_repos.sh $(TMP_DIR) go test -coverprofile cover.out -v ./... + +ci-test: + ./scripts/prepare_test_repos.sh $(TMP_DIR) + ./scripts/run_foreach_test_repos.sh $(TMP_DIR) "sed -i '1i sandboxExecServer = \"172.17.0.1:5051\"' conf.toml" + go test -coverprofile cover.out -v ./...