Skip to content

Commit

Permalink
br: update readme.md in br (#51017)
Browse files Browse the repository at this point in the history
close #51016
  • Loading branch information
RidRisR authored Feb 21, 2024
1 parent 0545066 commit 38abd86
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
12 changes: 10 additions & 2 deletions br/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,20 @@ Developing BR requires:
* [Go 1.16+](http://golang.org/doc/code.html)
* An internet connection to download the dependencies

Simply run `make` to build the program.
1. Navigate to the tidb directory

```sh
make
cd ../tidb
```

2. run `make build_br` to build the program.

```sh
make build_br
```

After all these, you will find `br` in `tidb/bin` directory

### Running tests

This project contains unit tests and integration tests with coverage collection.
Expand Down
5 changes: 3 additions & 2 deletions br/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
To build binary and run test:

```bash
$ make
$ cd ../tidb
$ make build_br
$ make test
```

Expand Down Expand Up @@ -100,7 +101,7 @@ tiup bench tpcc --warehouses 1 prepare
mysql --host 127.0.0.1 --port 4000 -E -e "SELECT COUNT(*) FROM test.order_line" -u root -p

# Build br.
make build
make build_br

# Backup TPC-C test data.
bin/br backup table --db test \
Expand Down

0 comments on commit 38abd86

Please sign in to comment.