[ConfigImpact] Add config impact differential test in ObjC

Reviewed By: ezgicicek

Differential Revision: D28256508

fbshipit-source-id: e18cc400f
master
Sungkeun Cho 4 years ago committed by Facebook GitHub Bot
parent d97b82f8db
commit 1c87f61728

1
.gitignore vendored

@ -50,6 +50,7 @@ duplicates.txt
/infer/tests/build_systems/differential_*/**/Diff*.java
/infer/tests/build_systems/differential_*/**/Diff*.m
/infer/tests/build_systems/fb_differential_*/**/Diff*.java
/infer/tests/build_systems/fb_differential_*/**/Diff*.m
/infer/tests/build_systems/incremental_analysis_remove_file/src
/infer/tests/build_systems/incremental_analysis_cost_change/src
/infer/tests/build_systems/incremental_analysis_add_procedure/src

@ -130,6 +130,9 @@ DIRECT_TESTS += \
objcpp_retain-cycles \
ifeq ($(IS_FACEBOOK_TREE),yes)
BUILD_SYSTEMS_TESTS += \
fb_differential_of_config_impact_report_objc
DIRECT_TESTS += \
objc_fb-config-impact \
objc_fb-gk-interaction

@ -0,0 +1,31 @@
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
TESTS_DIR = ../..
SOURCES = src/DiffExample.current.m src/DiffExample.previous.m
COPIED = src/DiffExample.m
CLEAN_EXTRA = $(COPIED) *.o
CLANG_OPTIONS = -c $(OBJC_CLANG_OPTIONS)
DIFFERENTIAL_ARGS = --enable-issue-type CONFIG_IMPACT
INFERPRINT_ISSUES_FIELDS = "bug_type,bucket,file,procedure,line_offset,bug_trace"
include $(TESTS_DIR)/differential-config-impact.make
include $(TESTS_DIR)/objc.make
$(CURRENT_REPORT) $(PREVIOUS_REPORT): $(OBJC_DEPS)
$(CURRENT_REPORT):
$(QUIET)$(COPY) src/DiffExample.current.m src/DiffExample.m
$(QUIET)$(call silent_on_success,Testing ObjC Config Impact Differential: current,\
$(INFER_BIN) --no-filtering --config-impact-analysis-only \
--config-impact-data-file config_data.json -o $(CURRENT_DIR) \
-- clang $(CLANG_OPTIONS) $(COPIED))
$(PREVIOUS_REPORT):
$(QUIET)$(COPY) src/DiffExample.previous.m src/DiffExample.m
$(QUIET)$(call silent_on_success,Testing ObjC Config Impact Differential: previous,\
$(INFER_BIN) --no-filtering --config-impact-analysis-only \
--config-impact-data-file config_data.json -o $(PREVIOUS_DIR) \
-- clang $(CLANG_OPTIONS) $(COPIED))
Loading…
Cancel
Save