From effc934777ea884b2e7b1ec7f2a90aae5eef1f6d Mon Sep 17 00:00:00 2001 From: Julius Volz Date: Mon, 9 Feb 2015 22:41:51 +0100 Subject: [PATCH] Add tests and run info to README.md and Makefile. --- Makefile | 5 ++++- README.md | 9 +++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4536542b..39f0961a 100644 --- a/Makefile +++ b/Makefile @@ -61,7 +61,10 @@ release: REMOTE_DIR ?= $(error "can't release, REMOTE_DIR not set") release: $(ARCHIVE) scp $< $(REMOTE):$(REMOTE_DIR)/$(ARCHIVE) +test: $(GOCC) dependencies + $(GO) test ./... + clean: rm -rf node_exporter .deps -.PHONY: dependencies clean release +.PHONY: clean default dependencies release test diff --git a/README.md b/README.md index 0e17164e..d46a8f65 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,15 @@ Prometheus exporter for machine metrics, written in Go with pluggable metric collectors. +## Building and running + + make + ./node_exporter + +## Running tests + + make test + ## Available collectors By default the build will include the native collectors that expose information