Browse Source

Fix `make test-plugin`.

Daniel Alm 7 years ago
parent
commit
34bef30f56
2 changed files with 5 additions and 5 deletions
  1. 4 5
      Makefile
  2. 1 0
      Sources/EchoExample/Generated/echo.grpc.swift

+ 4 - 5
Makefile

@@ -22,13 +22,12 @@ test-echo:	all
 	kill -9 `cat echo.pid`
 	diff -u test.out Sources/EchoExample/test.gold
 
-test-examples:
-	cd Examples/Echo/PackageManager; make test
+test-examples: test-echo
 	cd Examples/Simple/PackageManager; make
 
-test-plugin:
-	protoc Examples/Echo/echo.proto --proto_path=Examples/Echo --plugin=.build/debug/protoc-gen-swiftgrpc --swiftgrpc_out=/tmp --swiftgrpc_opt=TestStubs=true
-	diff /tmp/echo.grpc.swift Examples/Echo/Generated/echo.grpc.swift
+test-plugin: all
+	protoc Sources/EchoExample/echo.proto --proto_path=Sources/EchoExample --plugin=.build/debug/protoc-gen-swift --plugin=.build/debug/protoc-gen-swiftgrpc --swiftgrpc_out=/tmp --swiftgrpc_opt=TestStubs=true
+	diff -u /tmp/echo.grpc.swift Sources/EchoExample/Generated/echo.grpc.swift
 
 clean:
 	rm -rf Packages

+ 1 - 0
Sources/EchoExample/Generated/echo.grpc.swift

@@ -289,3 +289,4 @@ internal final class Echo_EchoServer: ServiceServer {
     }
   }
 }
+