forked from rohanpadhye/JQF
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
14b24a9
commit e035d7b
Showing
2 changed files
with
78 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
#!/bin/bash | ||
|
||
# Figure out script absolute path | ||
pushd `dirname $0` > /dev/null | ||
BIN_DIR=`pwd` | ||
popd > /dev/null | ||
|
||
ROOT_DIR=`dirname $BIN_DIR` | ||
|
||
print_usage() { | ||
echo "Usage: $0 [-c CLASSPATH] [-v] TEST_CLASS TEST_METHOD [OUT_DIR [SEED_FILES...]]" | ||
} | ||
|
||
while getopts ":c:r:vt:dfsbm:uq" opt; do | ||
case $opt in | ||
/?) | ||
echo "Invalid option: -$OPTARG" >&2 | ||
print_usage >&1 | ||
exit 1 | ||
;; | ||
c) | ||
export CLASSPATH="$OPTARG" | ||
;; | ||
r) | ||
export JVM_OPTS="$JVM_OPTS -Djqf.guidance.STATS_REFRESH_TIME_PERIOD=$OPTARG" | ||
;; | ||
v) | ||
export JVM_OPTS="$JVM_OPTS -Djqf.logCoverage=true" | ||
;; | ||
t) | ||
export JVM_OPTS="$JVM_OPTS -Djqf.ei.TIMEOUT=$OPTARG" | ||
;; | ||
d) | ||
debug=true | ||
;; | ||
f) | ||
export JVM_OPTS="$JVM_OPTS -DuseFastNonCollidingCoverageInstrumentation=true" | ||
;; | ||
s) | ||
export JVM_OPTS="$JVM_OPTS -Djqf.guidance.TRACK_SEMANTIC_COVERAGE=true" | ||
;; | ||
b) | ||
export JVM_OPTS="$JVM_OPTS -Djqf.guidance.LOG_BRANCH_HIT_COUNTS=true" | ||
;; | ||
m) | ||
export JVM_OPTS="$JVM_OPTS -Djqf.guidance.METRICS=$OPTARG" | ||
;; | ||
u) | ||
export JVM_OPTS="$JVM_OPTS -Djqf.ei.LOG_UNIQUE_PATH_INPUTS=true" | ||
;; | ||
q) | ||
export JVM_OPTS="$JVM_OPTS -Djqf.ei.DISABLE_LOG_QUEUE=true" | ||
;; | ||
esac | ||
done | ||
shift $((OPTIND-1)) | ||
|
||
# Check arguments | ||
if [ $# -lt 2 ]; then | ||
print_usage >&1 | ||
exit 1 | ||
fi | ||
|
||
# Disable coverage guidance | ||
export JVM_OPTS="$JVM_OPTS -Djqf.ei.TOTALLY_RANDOM=true" | ||
|
||
# Run the Zest input driver | ||
if [ "$debug" = true ] ; then | ||
$ROOT_DIR/scripts/jqf-debug-driver.sh edu.berkeley.cs.jqf.fuzz.ei.ZestDriver $@ | ||
else | ||
$ROOT_DIR/scripts/jqf-driver.sh edu.berkeley.cs.jqf.fuzz.ei.ZestDriver $@ | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters