Skip to content

Commit

Permalink
Small little changes in follow-up to recent contribution to make prot…
Browse files Browse the repository at this point in the history
…oprint support editions files (#601)
  • Loading branch information
jhump committed Apr 4, 2024
1 parent 0935deb commit a41e823
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Makefile
Expand Up @@ -64,8 +64,9 @@ errcheck:
errcheck ./...

.PHONY: test
test:
test: generate
go test -cover -race ./...
./desc/protoprint/testfiles/check-protos.sh > /dev/null

.PHONY: test-nounsafe
test-nounsafe:
Expand Down
2 changes: 1 addition & 1 deletion desc/protoprint/print_test.go
Expand Up @@ -231,7 +231,7 @@ func TestPrintEditions(t *testing.T) {
fd, err := loadProtoset("../../internal/testprotos/desc_test_editions.protoset")
testutil.Ok(t, err)

checkFile(t, &Printer{}, fd, "desc_test_editions.proto")
checkFile(t, &Printer{}, fd, "desc_test_editions-default.proto")
}

func TestPrintNonFileDescriptors(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion desc/protoprint/testfiles/check-protos.sh
Expand Up @@ -6,7 +6,7 @@ cd $(dirname $0)

for f in *.proto; do
echo -n "Checking $f..."
protoc $f -o tmp.protoset -I ../../../internal/testprotos -I .
../../../internal/testprotos/protoc/bin/protoc $f --experimental_editions -o tmp.protoset -I ../../../internal/testprotos -I .
echo " good"
done

Expand Down

0 comments on commit a41e823

Please sign in to comment.