Summary: Another useful functionality of the diff analysis. Reviewed By: martinoluca Differential Revision: D5499545 fbshipit-source-id: 65b1dd6master
parent
a5393e9a37
commit
833b093174
@ -0,0 +1 @@
|
|||||||
|
src/hello.c
|
@ -0,0 +1,50 @@
|
|||||||
|
# Copyright (c) 2017 - present Facebook, Inc.
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# This source code is licensed under the BSD style license found in the
|
||||||
|
# LICENSE file in the root directory of this source tree. An additional grant
|
||||||
|
# of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
|
||||||
|
|
||||||
|
# you need to define the following when including this file:
|
||||||
|
# - TESTS_DIR, specified before including the file, pointing to infer/tests/
|
||||||
|
# - INFER_OUT
|
||||||
|
# - a rule to build $(INFER_OUT)/differential/introduced.json
|
||||||
|
|
||||||
|
include $(TESTS_DIR)/base.make
|
||||||
|
|
||||||
|
default: analyze
|
||||||
|
|
||||||
|
.PHONY: analyze
|
||||||
|
analyze: $(INFER_OUT)/differential/introduced.json
|
||||||
|
|
||||||
|
introduced.exp.test: $(INFER_OUT)/differential/introduced.json $(INFER_BIN)
|
||||||
|
$(QUIET)$(INFER_BIN) report \
|
||||||
|
--from-json-report $(INFER_OUT)/differential/introduced.json \
|
||||||
|
--issues-tests introduced.exp.test
|
||||||
|
$(QUIET)$(INFER_BIN) report \
|
||||||
|
--from-json-report $(INFER_OUT)/differential/fixed.json \
|
||||||
|
--issues-tests fixed.exp.test
|
||||||
|
$(QUIET)$(INFER_BIN) report \
|
||||||
|
--from-json-report $(INFER_OUT)/differential/preexisting.json \
|
||||||
|
--issues-tests preexisting.exp.test
|
||||||
|
|
||||||
|
.PHONY: print
|
||||||
|
print: introduced.exp.test
|
||||||
|
|
||||||
|
.PHONY: test
|
||||||
|
test: print
|
||||||
|
$(QUIET)$(call check_no_diff,introduced.exp,introduced.exp.test)
|
||||||
|
$(QUIET)$(call check_no_diff,fixed.exp,fixed.exp.test)
|
||||||
|
$(QUIET)$(call check_no_diff,preexisting.exp,preexisting.exp.test)
|
||||||
|
|
||||||
|
.PHONY: replace
|
||||||
|
replace: introduced.exp.test
|
||||||
|
$(COPY) introduced.exp.test introduced.exp
|
||||||
|
$(COPY) fixed.exp.test fixed.exp
|
||||||
|
$(COPY) preexisting.exp.test preexisting.exp
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
|
clean:
|
||||||
|
$(REMOVE_DIR) *.exp.test $(INFER_OUT) $(CURRENT_DIR) $(PREVIOUS_DIR) \
|
||||||
|
$(CLEAN_EXTRA)
|
Loading…
Reference in new issue