forked from zincsearch/zincsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1b734ee
commit 19a0c9e
Showing
16 changed files
with
824 additions
and
739 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
#!/bin/bash | ||
|
||
rm -fR pkg/core/data | ||
rm -fR test/data | ||
|
||
export ZINC_FIRST_ADMIN_USER="admin" | ||
export ZINC_FIRST_ADMIN_PASSWORD="Complexpass#123" | ||
|
||
find ./pkg -name data -type dir|xargs rm -fR | ||
find ./test -name data -type dir|xargs rm -fR | ||
|
||
if [[ $1 == "bench" ]]; then | ||
go test -v -test.run=NONE -test.bench=Bulk -benchmem ./test/ -cpuprofile=./tmp/cpu.pprof -memprofile=./tmp/mem.pprof | ||
go test -v -test.run=NONE -test.bench=Bulk -benchmem ./test/benchmark/ -cpuprofile=./tmp/cpu.pprof -memprofile=./tmp/mem.pprof | ||
# go tool pprof -http=:9999 ./tmp/mem.pprof | ||
else | ||
go test -v ./... -test.run=$1 | ||
fi | ||
|
||
find ./pkg -name data -type dir|xargs rm -fR | ||
find ./test -name data -type dir|xargs rm -fR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.