From 2ee6e32847efae5c0e13bc673bd9342284a420d9 Mon Sep 17 00:00:00 2001 From: "Matt T. Proud" Date: Wed, 5 Jun 2013 14:05:42 +0200 Subject: [PATCH] Include race condition runner. --- Makefile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index ecbc2219b..a2c3c7fa4 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -TEST_ARTIFACTS = prometheus search_index +TEST_ARTIFACTS = prometheus prometheus.race search_index include Makefile.INCLUDE @@ -23,9 +23,6 @@ advice: binary: build go build -o prometheus $(BUILDFLAGS) . -race_condition_binary: build - CGO_CFLAGS="-I$(PWD)/build/root/include" CGO_LDFLAGS="-L$(PWD)/build/root/lib" go build -race -o prometheus $(BUILDFLAGS) . - build: preparation config model tools web clean: @@ -58,6 +55,12 @@ package: binary preparation: source_path $(MAKE) -C build +race_condition_binary: build + CGO_CFLAGS="-I$(PWD)/build/root/include" CGO_LDFLAGS="-L$(PWD)/build/root/lib" go build -race -o prometheus.race $(BUILDFLAGS) . + +race_condition_run: race_condition_binary + ./prometheus.race $(ARGUMENTS) + run: binary ./prometheus $(ARGUMENTS) @@ -82,4 +85,4 @@ tools: web: preparation config model $(MAKE) -C web -.PHONY: advice binary build clean config documentation format model package preparation race_condition_binary run search_index source_path test tools +.PHONY: advice binary build clean config documentation format model package preparation race_condition_binary race_condition_run run search_index source_path test tools