From a4676211cfab6fe2b2a4ad405ff1c70696eb5f42 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Mon, 1 Dec 2014 10:40:50 -0800 Subject: [PATCH] Enable cover profile and test for split and strbyteconv --- Makefile | 7 +++++-- pkgs/strbyteconv/Makefile | 11 +++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 pkgs/strbyteconv/Makefile diff --git a/Makefile b/Makefile index c3a0170e6..2502e4db2 100644 --- a/Makefile +++ b/Makefile @@ -13,8 +13,11 @@ build-erasure: build-signify: @cd pkgs/signify && ${MAKE} ${MAKE_OPTIONS} -build-split: - @cd pkgs/split && ${MAKE} ${MAKE_OPTIONS} +build-split: build-strbyteconv + @godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkgs/split + +build-strbyteconv: + @godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkgs/strbyteconv cover: build-erasure build-signify build-split @godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkgs/storage diff --git a/pkgs/strbyteconv/Makefile b/pkgs/strbyteconv/Makefile new file mode 100644 index 000000000..fb6ac1387 --- /dev/null +++ b/pkgs/strbyteconv/Makefile @@ -0,0 +1,11 @@ +all: build test +.PHONY: all + +build: + @godep go build + +test: build + @godep go test -race -coverprofile=cover.out + +clean: + @rm -v cover.out