Sfoglia il codice sorgente

proto: remove //gotest command; do it in the Makefile.

R=rsc
CC=golang-dev
http://codereview.appspot.com/4327044
Rob Pike 15 anni fa
parent
commit
593d4c22d3
2 ha cambiato i file con 10 aggiunte e 4 eliminazioni
  1. 10 0
      proto/Makefile
  2. 0 4
      proto/all_test.go

+ 10 - 0
proto/Makefile

@@ -44,3 +44,13 @@ GOFILES=\
 	text_parser.go\
 
 include $(GOROOT)/src/Make.pkg
+
+# We need to compile the .pb.gos, which import this package, so
+# to run the test we must make install here and then make in the
+# testdata directory.
+test: compile-test-pbs
+
+testshort: compile-test-pbs
+
+compile-test-pbs:
+	make install && cd testdata && make nuke && make

+ 0 - 4
proto/all_test.go

@@ -29,10 +29,6 @@
 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-// We need to compile the .pb.gos, which import this package, so
-// to run the test we must make install here and then make in the
-// testdata directory.
-// gotest: make install && cd testdata && make nuke && make
 
 package proto_test