diff options
Diffstat (limited to 'src/pkg/testing')
-rw-r--r-- | src/pkg/testing/Makefile | 67 | ||||
-rw-r--r-- | src/pkg/testing/iotest/Makefile | 59 | ||||
-rw-r--r-- | src/pkg/testing/regexp.go | 2 | ||||
-rw-r--r-- | src/pkg/testing/testing.go | 1 |
4 files changed, 10 insertions, 119 deletions
diff --git a/src/pkg/testing/Makefile b/src/pkg/testing/Makefile index eab8a4cf0..809bb5642 100644 --- a/src/pkg/testing/Makefile +++ b/src/pkg/testing/Makefile @@ -2,68 +2,11 @@ # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. - -# DO NOT EDIT. Automatically generated by gobuild. -# gobuild -m >Makefile - -D= - include $(GOROOT)/src/Make.$(GOARCH) -AR=gopack - -default: packages - -clean: - rm -rf *.[$(OS)] *.a [$(OS)].out _obj - -test: packages - gotest - -coverage: packages - gotest - 6cov -g $$(pwd) | grep -v '_test\.go:' - -%.$O: %.go - $(GC) -I_obj $*.go - -%.$O: %.c - $(CC) $*.c - -%.$O: %.s - $(AS) $*.s - -O1=\ - regexp.$O\ - -O2=\ - testing.$O\ - - -phases: a1 a2 -_obj$D/testing.a: phases - -a1: $(O1) - $(AR) grc _obj$D/testing.a regexp.$O - rm -f $(O1) - -a2: $(O2) - $(AR) grc _obj$D/testing.a testing.$O - rm -f $(O2) - - -newpkg: clean - mkdir -p _obj$D - $(AR) grc _obj$D/testing.a - -$(O1): newpkg -$(O2): a1 -$(O3): a2 - -nuke: clean - rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/testing.a -packages: _obj$D/testing.a +TARG=testing +GOFILES=\ + regexp.go\ + testing.go\ -install: packages - test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D - cp _obj$D/testing.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/testing.a +include $(GOROOT)/src/Make.pkg diff --git a/src/pkg/testing/iotest/Makefile b/src/pkg/testing/iotest/Makefile index 1d01041f5..b223fb932 100644 --- a/src/pkg/testing/iotest/Makefile +++ b/src/pkg/testing/iotest/Makefile @@ -2,60 +2,11 @@ # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. -# DO NOT EDIT. Automatically generated by gobuild. -# gobuild -m >Makefile - -D=/testing/ - include $(GOROOT)/src/Make.$(GOARCH) -AR=gopack - -default: packages - -clean: - rm -rf *.[$(OS)] *.a [$(OS)].out _obj - -test: packages - gotest - -coverage: packages - gotest - 6cov -g `pwd` | grep -v '_test\.go:' - -%.$O: %.go - $(GC) -I_obj $*.go - -%.$O: %.c - $(CC) $*.c - -%.$O: %.s - $(AS) $*.s - -O1=\ - logger.$O\ - reader.$O\ - - -phases: a1 -_obj$D/iotest.a: phases - -a1: $(O1) - $(AR) grc _obj$D/iotest.a logger.$O reader.$O - rm -f $(O1) - - -newpkg: clean - mkdir -p _obj$D - $(AR) grc _obj$D/iotest.a - -$(O1): newpkg -$(O2): a1 - -nuke: clean - rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/iotest.a -packages: _obj$D/iotest.a +TARG=testing/iotest +GOFILES=\ + logger.go\ + reader.go\ -install: packages - test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D - cp _obj$D/iotest.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/iotest.a +include $(GOROOT)/src/Make.pkg diff --git a/src/pkg/testing/regexp.go b/src/pkg/testing/regexp.go index ae698264f..2b12250f5 100644 --- a/src/pkg/testing/regexp.go +++ b/src/pkg/testing/regexp.go @@ -306,8 +306,6 @@ func newParser(re *Regexp) *parser { return p; } -func (p *parser) regexp() (start, end instr) - var iNULL instr func special(c int) bool { diff --git a/src/pkg/testing/testing.go b/src/pkg/testing/testing.go index 276129393..617efa4ab 100644 --- a/src/pkg/testing/testing.go +++ b/src/pkg/testing/testing.go @@ -16,7 +16,6 @@ import ( "fmt"; "os"; "runtime"; - "testing"; ) // Report as tests are run; default is silent for success. |