Include race condition runner.
This commit is contained in:
parent
95adf1958b
commit
2ee6e32847
13
Makefile
13
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
|
||||
|
|
Loading…
Reference in New Issue