diff --git a/Makefile b/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..380c6e5e71cc91133670a59fde2f50ebd86e1711 --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +UNAME = $(shell uname) +PREFIX=github.com/derekparker/delve + +build: + go build github.com/derekparker/delve/cmd/dlv +ifeq "$(UNAME)" "Darwin" + codesign -s dlv-cert ./dlv +endif + +install: + go install github.com/derekparker/delve/cmd/dlv +ifeq "$(UNAME)" "Darwin" + codesign -s dlv-cert $(which dlv) +endif + +test: +ifeq "$(UNAME)" "Darwin" + go test $(PREFIX)/command $(PREFIX)/dwarf/frame $(PREFIX)/dwarf/op $(PREFIX)/dwarf/util + cd proctl && go test -c $(PREFIX)/proctl && codesign -s $(CERT) ./proctl.test && ./proctl.test +else + go test ./... +endif diff --git a/test_darwin b/test_darwin deleted file mode 100755 index a0c2ee9b47fe672c0574c05e36fa369bbe637bc7..0000000000000000000000000000000000000000 --- a/test_darwin +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -go test -c && codesign -s dbg-cert ./proctl.test && ./proctl.test -test.v -test.run "$1" -rm ./proctl.test