Skip to content

Commit

Permalink
Add make test command
Browse files Browse the repository at this point in the history
  • Loading branch information
iychoi committed Mar 25, 2022
1 parent 51cab74 commit 84e2715
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,8 @@ examples:
CGO_ENABLED=0 GOOS=linux go build -o ./examples/delete_dir/delete_dir.out ./examples/delete_dir/delete_dir.go
CGO_ENABLED=0 GOOS=linux go build -o ./examples/make_dir/make_dir.out ./examples/make_dir/make_dir.go
CGO_ENABLED=0 GOOS=linux go build -o ./examples/get_ticket/get_ticket.out ./examples/get_ticket/get_ticket.go
CGO_ENABLED=0 GOOS=linux go build -o ./examples/get_ticket_anon/get_ticket_anon.out ./examples/get_ticket_anon/get_ticket_anon.go
CGO_ENABLED=0 GOOS=linux go build -o ./examples/get_ticket_anon/get_ticket_anon.out ./examples/get_ticket_anon/get_ticket_anon.go

.PHONY: test
test:
go test -timeout 3000s -v -p 1 ./...
5 changes: 5 additions & 0 deletions test/testcases/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ func shutdown() {
"function": "shutdown",
})

// empty global variables
account = nil
testFiles = []string{}
testDirs = []string{}

err := server.StopServer()
if err != nil {
logger.Error(err)
Expand Down

0 comments on commit 84e2715

Please sign in to comment.