Include race condition runner.

This commit is contained in:
Matt T. Proud 2013-06-05 14:05:42 +02:00
parent 95adf1958b
commit 2ee6e32847
1 changed files with 8 additions and 5 deletions

View File

@ -11,7 +11,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
TEST_ARTIFACTS = prometheus search_index TEST_ARTIFACTS = prometheus prometheus.race search_index
include Makefile.INCLUDE include Makefile.INCLUDE
@ -23,9 +23,6 @@ advice:
binary: build binary: build
go build -o prometheus $(BUILDFLAGS) . 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 build: preparation config model tools web
clean: clean:
@ -58,6 +55,12 @@ package: binary
preparation: source_path preparation: source_path
$(MAKE) -C build $(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 run: binary
./prometheus $(ARGUMENTS) ./prometheus $(ARGUMENTS)
@ -82,4 +85,4 @@ tools:
web: preparation config model web: preparation config model
$(MAKE) -C web $(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