Skip to content

Commit

Permalink
Move benchmark seeds to a subdirectory.
Browse files Browse the repository at this point in the history
Unifies layout for easier use by the A/B testing tool.
  • Loading branch information
morehouse committed Oct 21, 2017
1 parent 6419282 commit d5521b1
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 11 deletions.
1 change: 0 additions & 1 deletion engine-comparison/dispatcher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ build_benchmark() {

echo "BENCHMARK=${benchmark}" > "${SEND_DIR}/benchmark.cfg"

# TODO: ensure all seeds are in $BENCHMARK/seeds
if [[ -d "${WORK}/FTS/${benchmark}/seeds" ]]; then
cp -r "${WORK}/FTS/${benchmark}/seeds" "${SEND_DIR}"
fi
Expand Down
File renamed without changes.
4 changes: 1 addition & 3 deletions lcms-2017-03-21/test-libfuzzer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ set -x
rm -rf $CORPUS
mkdir $CORPUS

cp $SCRIPT_DIR/seed $CORPUS

[ -e $EXECUTABLE_NAME_BASE ] && ./$EXECUTABLE_NAME_BASE -artifact_prefix=$CORPUS/ -jobs=$JOBS -workers=$JOBS $CORPUS
[ -e $EXECUTABLE_NAME_BASE ] && ./$EXECUTABLE_NAME_BASE -artifact_prefix=$CORPUS/ -jobs=$JOBS -workers=$JOBS $CORPUS $SCRIPT_DIR/seeds
grep 'ERROR: AddressSanitizer: heap-buffer-overflow' fuzz-0.log || exit 1

File renamed without changes.
4 changes: 1 addition & 3 deletions libarchive-2017-01-04/test-libfuzzer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ set -x
rm -rf $CORPUS
mkdir $CORPUS

cp $SCRIPT_DIR/seed $CORPUS

[ -e $EXECUTABLE_NAME_BASE ] && ./$EXECUTABLE_NAME_BASE -artifact_prefix=$CORPUS/ -jobs=$JOBS -workers=$JOBS -max_len=1000 $CORPUS
[ -e $EXECUTABLE_NAME_BASE ] && ./$EXECUTABLE_NAME_BASE -artifact_prefix=$CORPUS/ -jobs=$JOBS -workers=$JOBS -max_len=1000 $CORPUS $SCRIPT_DIR/seeds
grep 'ERROR: AddressSanitizer: heap-buffer-overflow' fuzz-0.log || exit 1

File renamed without changes
3 changes: 1 addition & 2 deletions libjpeg-turbo-07-2017/test-libfuzzer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
set -x
rm -rf $CORPUS
mkdir $CORPUS
cp $SCRIPT_DIR/seed.jpg $CORPUS

rm fuzz-*.log

Expand All @@ -14,7 +13,7 @@ test_source_location() {
echo "test_source_location: $SRC_LOC"
rm -f *.log
[ -e $EXECUTABLE_NAME_BASE ] && \
./$EXECUTABLE_NAME_BASE -artifact_prefix=$CORPUS/ -exit_on_src_pos=$SRC_LOC -jobs=$JOBS -workers=$JOBS -print_pcs=1 $CORPUS
./$EXECUTABLE_NAME_BASE -artifact_prefix=$CORPUS/ -exit_on_src_pos=$SRC_LOC -jobs=$JOBS -workers=$JOBS -print_pcs=1 $CORPUS $SCRIPT_DIR/seeds
grep "INFO: found line matching '$SRC_LOC'" fuzz-*.log || exit 1
}

Expand Down
File renamed without changes
3 changes: 1 addition & 2 deletions libpng-1.2.56/test-libfuzzer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,14 @@ mkdir $CORPUS

# seed.png was generated by this command:
# onvert -background white -size 80x label:"X" -trim +repage seed.png
cp $SCRIPT_DIR/seed.png $CORPUS

test_source_location() {
SRC_LOC="$1"
echo "test_source_location: $SRC_LOC"
rm -f *.log
# This target has a 2Gb malloc oom, so we have to use rss_limit_mb=3000
[ -e $EXECUTABLE_NAME_BASE-lf ] && \
./$EXECUTABLE_NAME_BASE-lf -close_fd_mask=3 -artifact_prefix=$CORPUS/ -exit_on_src_pos=$SRC_LOC -runs=100000000 -jobs=$JOBS -workers=$JOBS $CORPUS -rss_limit_mb=3000
./$EXECUTABLE_NAME_BASE-lf -close_fd_mask=3 -artifact_prefix=$CORPUS/ -exit_on_src_pos=$SRC_LOC -runs=100000000 -jobs=$JOBS -workers=$JOBS $CORPUS $SCRIPT_DIR/seeds -rss_limit_mb=3000
grep "INFO: found line matching '$SRC_LOC'" fuzz-*.log || exit 1
}

Expand Down

0 comments on commit d5521b1

Please sign in to comment.