@ -6,8 +6,9 @@
# E2E test for differential of costs
# E2E test for differential of costs
TESTS_DIR = ../..
TESTS_DIR = ../..
SOURCES = src/DiffExample.current.java src/DiffExample.previous.java
SOURCES = src/DiffExample.current.java src/DiffExample.previous.java \
COPIED = src/DiffExample.java
src/DiffAnonymousClass.current.java src/DiffAnonymousClass.previous.java
COPIED = src/DiffExample.java src/DiffAnonymousClass.java
CLEAN_EXTRA = $( COPIED) *.class
CLEAN_EXTRA = $( COPIED) *.class
DIFFERENTIAL_ARGS = --enable-issue-type CONFIG_IMPACT
DIFFERENTIAL_ARGS = --enable-issue-type CONFIG_IMPACT
i n c l u d e $( TESTS_DIR ) / d i f f e r e n t i a l - c o n f i g - i m p a c t . m a k e
i n c l u d e $( TESTS_DIR ) / d i f f e r e n t i a l - c o n f i g - i m p a c t . m a k e
@ -17,12 +18,14 @@ $(CURRENT_REPORT) $(PREVIOUS_REPORT): $(JAVA_DEPS)
$(CURRENT_REPORT) :
$(CURRENT_REPORT) :
$( QUIET) $( COPY) src/DiffExample.current.java src/DiffExample.java
$( QUIET) $( COPY) src/DiffExample.current.java src/DiffExample.java
$( QUIET) $( COPY) src/DiffAnonymousClass.current.java src/DiffAnonymousClass.java
$( QUIET) $( call silent_on_success,Testing Config Impact Differential: current,\
$( QUIET) $( call silent_on_success,Testing Config Impact Differential: current,\
$( INFER_BIN) --no-filtering --config-impact-analysis-only --config-impact-data-file config_data.json -o $( CURRENT_DIR) \
$( INFER_BIN) --no-filtering --config-impact-analysis-only --config-impact-data-file config_data.json -o $( CURRENT_DIR) \
-- $( JAVAC) -cp $( CLASSPATH) $( COPIED) )
-- $( JAVAC) -cp $( CLASSPATH) $( COPIED) )
$(PREVIOUS_REPORT) :
$(PREVIOUS_REPORT) :
$( QUIET) $( COPY) src/DiffExample.previous.java src/DiffExample.java
$( QUIET) $( COPY) src/DiffExample.previous.java src/DiffExample.java
$( QUIET) $( COPY) src/DiffAnonymousClass.previous.java src/DiffAnonymousClass.java
$( QUIET) $( call silent_on_success,Testing Config Impact Differential: previous,\
$( QUIET) $( call silent_on_success,Testing Config Impact Differential: previous,\
$( INFER_BIN) --no-filtering --config-impact-analysis-only --config-impact-data-file config_data.json -o $( PREVIOUS_DIR) \
$( INFER_BIN) --no-filtering --config-impact-analysis-only --config-impact-data-file config_data.json -o $( PREVIOUS_DIR) \
-- $( JAVAC) -cp $( CLASSPATH) $( COPIED) )
-- $( JAVAC) -cp $( CLASSPATH) $( COPIED) )