@ -5,7 +5,8 @@
TESTS_DIR = ../..
INFER_OUT = infer-out
SOURCES = $( SRC_DIR) /some_bugs.c $( SRC_DIR) /some_different_bugs.c
CODETOANALYZE = $( CURDIR) /../codetoanalyze
SOURCES = $( CODETOANALYZE) /some_bugs.c $( CODETOANALYZE) /some_different_bugs.c
DIFFERENTIAL_ARGS = --differential-filter-files changed_files.txt
i n c l u d e $( TESTS_DIR ) / d i f f e r e n t i a l . m a k e
@ -14,7 +15,6 @@ $(CURRENT_REPORT) $(PREVIOUS_REPORT): $(CLANG_DEPS)
BUCK_TARGET = //src:hello
INFER_OPTIONS = $( DIFFERENTIAL_ARGS) --flavors --reactive --debug-exceptions --no-linters
SRC_DIR = $( CURDIR) /../codetoanalyze
.PHONY : compare_reports
compare_reports : current .exp .test previous .exp .test
@ -42,13 +42,13 @@ replace: replace_reports
$(CURRENT_REPORT) :
$( QUIET) $( REMOVE_DIR) buck-out
$( QUIET) $( COPY) $( SRC_DIR ) /some_bugs.c src/hello.c
$( QUIET) $( COPY) $( CODETOANALYZE ) /some_bugs.c src/hello.c
$( QUIET) $( call silent_on_success,Running Buck diff analysis: current,\
$( INFER_BIN) $( INFER_OPTIONS) run --results-dir $( CURRENT_DIR) -- \
$( BUCK) build --no-cache $( BUCK_TARGET) )
$(PREVIOUS_REPORT) :
$( QUIET) $( COPY) $( SRC_DIR ) /some_different_bugs.c src/hello.c
$( QUIET) $( COPY) $( CODETOANALYZE ) /some_different_bugs.c src/hello.c
$( QUIET) $( call silent_on_success,Running Buck diff analysis: previous,\
$( INFER_BIN) $( INFER_OPTIONS) run --results-dir $( PREVIOUS_DIR) -- \
$( BUCK) build --no-cache $( BUCK_TARGET) )