diff --git a/.gitignore b/.gitignore index a9ce6dc..312314c 100644 --- a/.gitignore +++ b/.gitignore @@ -21,5 +21,5 @@ go.work .DS_Store # the produced binary -vitess-tester +./vitess-tester errors/ \ No newline at end of file diff --git a/Makefile b/Makefile index 2f6e8a9..789a895 100644 --- a/Makefile +++ b/Makefile @@ -5,10 +5,10 @@ GO := go default: build build: - $(GO) build -o vitess-tester ./src + $(GO) build -o vitess-tester ./src/vitess-tester debug: - $(GO) build -gcflags="all=-N -l" -o vitess-tester ./src + $(GO) build -gcflags="all=-N -l" -o vitess-tester ./src/vitess-tester test: build $(GO) test -cover ./... diff --git a/README.md b/README.md index 03be481..c177e80 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,12 @@ Vitess tester tests Vitess using the same test files as the [MySQL Test Framework](https://github.com/mysql/mysql-server/tree/8.0/mysql-test). +## Install + +``` +go install github.com/vitessio/vitess-tester/src/vitess-tester@latest +``` + ## Testing methodology To ensure compatibility and correctness, our testing strategy involves running identical queries against both MySQL and vtgate, then comparing the results and errors from the two systems. This approach helps us verify that vtgate behaves as expected in a variety of scenarios, mimicking MySQL's behavior as closely as possible. diff --git a/src/main.go b/src/vitess-tester/main.go similarity index 100% rename from src/main.go rename to src/vitess-tester/main.go diff --git a/src/query.go b/src/vitess-tester/query.go similarity index 100% rename from src/query.go rename to src/vitess-tester/query.go diff --git a/src/query_test.go b/src/vitess-tester/query_test.go similarity index 100% rename from src/query_test.go rename to src/vitess-tester/query_test.go diff --git a/src/reporter.go b/src/vitess-tester/reporter.go similarity index 100% rename from src/reporter.go rename to src/vitess-tester/reporter.go diff --git a/src/tester.go b/src/vitess-tester/tester.go similarity index 100% rename from src/tester.go rename to src/vitess-tester/tester.go diff --git a/src/type.go b/src/vitess-tester/type.go similarity index 100% rename from src/type.go rename to src/vitess-tester/type.go