Skip to content

Commit 5903eb4

Browse files
varuniyVarun Iyengar
andauthored
Don't transform packages for some subject programs
Co-authored-by: Varun Iyengar <varuniy@uw.edu>
1 parent 9c0890f commit 5903eb4

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

scripts/mutation-randoop.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,14 +398,17 @@ esac
398398
# Method Call Replacement Setup
399399
#===============================================================================
400400

401-
# Path to the replacement file for the replacecall agent.
401+
# Path to the replacement and exclusion files for the replacecall agent.
402402
REPLACEMENT_FILE_PATH="$SCRIPT_DIR/program-config/$SUBJECT_PROGRAM/replacecall-replacements.txt"
403+
EXCLUSION_FILE_PATH="$SCRIPT_DIR/program-config/$SUBJECT_PROGRAM/replacecall-exclusions.txt"
403404

404-
# Configure method call replacements to avoid undesired behaviors during test
405+
# Configure method call replacements and/or exclusions to avoid undesired behaviors during test
405406
# generation.
406407
# Map subject programs to their respective replacement files.
407408
declare -A replacement_files=(
408409
# Do not wait for user input
410+
["easymock-3.2"]="=--dont-transform=$EXCLUSION_FILE_PATH"
411+
["javax.mail-1.5.1"]="=--dont-transform=$EXCLUSION_FILE_PATH"
409412
["jcommander-1.35"]="=--replacement_file=$REPLACEMENT_FILE_PATH"
410413
)
411414
REPLACECALL_COMMAND="$REPLACECALL_JAR${replacement_files[$SUBJECT_PROGRAM]}"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
net.sf.cglib.proxy.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
com.sun1.mail.imap.
2+
com.sun1.mail.pop3.
3+
com.sun1.mail.util.

0 commit comments

Comments
 (0)