Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mwoz-sc committed May 26, 2020
1 parent 0123bb6 commit df2050d
Show file tree
Hide file tree
Showing 12 changed files with 336 additions and 10 deletions.
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ bazel-*

!vendor/*

/bin/gogofast
/bin/gogofast.exe
/bin/protoc-gen-go
/bin/protoc-gen-go.exe
/bin
/protoc-gen-validate

/tests/harness/cases/go
Expand Down
14 changes: 9 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ lint: bin/golint bin/shadow
test -z "$(gofmt -d -s ./*.go)" || (gofmt -d -s ./*.go && exit 1)
# golint -set_exit_status
# check for variable shadowing
go vet -vettool=$(pwd)/bin/shadow *.go
go vet -vettool=$(shell pwd)/bin/shadow ./...

bin/shadow:
go build -o $@ ./vendor/golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow
Expand All @@ -73,10 +73,13 @@ bin/gogofast:
bin/protoc-gen-go:
go build -o $@ ./vendor/github.com/golang/protobuf/protoc-gen-go

bin/harness:
cd tests && go build -o ../bin/harness-bin ./harness/executor

.PHONY: harness
harness: testcases tests/harness/go/harness.pb.go tests/harness/gogo/harness.pb.go tests/harness/go/main/go-harness tests/harness/gogo/main/go-harness tests/harness/cc/cc-harness
harness: testcases tests/harness/go/harness.pb.go tests/harness/gogo/harness.pb.go tests/harness/go/main/go-harness tests/harness/gogo/main/go-harness tests/harness/cc/cc-harness bin/harness
# runs the test harness, validating a series of test cases in all supported languages
go run ./tests/harness/executor/*.go -go -gogo -cc
./bin/harness -go -gogo -cc

.PHONY: bazel-harness
bazel-harness:
Expand Down Expand Up @@ -132,11 +135,11 @@ tests/harness/gogo/harness.pb.go: bin/gogofast

tests/harness/go/main/go-harness:
# generates the go-specific test harness
go build -o ./tests/harness/go/main/go-harness ./tests/harness/go/main
cd tests && go build -o ./harness/go/main/go-harness ./harness/go/main

tests/harness/gogo/main/go-harness:
# generates the gogo-specific test harness
go build -o ./tests/harness/gogo/main/go-harness ./tests/harness/gogo/main
cd tests && go build -o ./harness/gogo/main/go-harness ./harness/gogo/main

tests/harness/cc/cc-harness: tests/harness/cc/harness.cc
# generates the C++-specific test harness
Expand All @@ -158,6 +161,7 @@ clean:
rm -f \
bin/gogofast \
bin/protoc-gen-go \
bin/harness \
tests/harness/cc/cc-harness \
tests/harness/go/main/go-harness \
tests/harness/gogo/main/go-harness \
Expand Down
2 changes: 1 addition & 1 deletion tools.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// +build tools

package tools
package main

import (
_ "github.com/golang/protobuf/protoc-gen-go"
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 50 additions & 0 deletions vendor/github.com/spf13/afero/BUILD.bazel

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions vendor/golang.org/x/text/transform/BUILD.bazel

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit df2050d

Please sign in to comment.