Unit Testing Issues in v6.6.0

This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: v6.6.0 单位测试问题

| username: killua

On Mac
make failpoint-enable && go test $(go list ./… | grep -v /br/) -coverprofile a.c -tags=intest -timeout 1m && make failpoint-disable

— FAIL: TestGracefulShutdown (0.00s)
Error Trace: /Users/aabb/Documents/work/code/tidb/tests/graceshutdown/graceshutdown_test.go:120
Error: Received unexpected error:
fork/exec bin/tidb-server: no such file or directory
Test: TestGracefulShutdown

In addition to tidb-server, there is also an error for pd-server
fork/exec bin/pd-server: no such file or directory

I would like to ask how to run this UT to pass, and the method to run UT locally. Thanks

| username: redgame | Original post link

Manually check if it exists. It seems that tidb-server cannot be found.

| username: killua | Original post link

The tidb-server issue is easy to solve, but the key is the pd-server and others. I saw many dependencies in the br_bins section of the Makefile. I couldn’t find relevant content in our development documentation, nor useful information from commits, issues, or PRs.

Seeking official guidance.

| username: tidb菜鸟一只 | Original post link

Can’t find this command?

| username: killua | Original post link

In UT, you need to actively start tidb-server, but the binary is not generated.

Similarly, there are also pd-server and others. I don’t know where to get these binaries.

| username: knull | Original post link

Actually, if the issue is just needing the binaries, you can directly go to the official download site: 分布式数据库 TiDB 社区版 | PingCAP
Select the corresponding version and architecture, and you can download all the necessary software.