Update travis-fuzz.sh to check that fuzz input file names are allowed on Windows systems
This commit is contained in:
parent
1b617b8f54
commit
d8223bb73c
|
@ -1,8 +1,17 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
# Check that input files are correct Windows file names
|
||||||
|
incorrectFilenames=$(find . -type f -name "*,*" -o -name "*:*" -o -name "*<*" -o -name "*>*" -o -name "*|*" -o -name "*\?*" -o -name "*\**" -o -name "*\"*" | wc -l)
|
||||||
|
|
||||||
|
if [ ${incorrectFilenames} -gt 0 ]; then
|
||||||
|
exit 2
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Testing
|
||||||
cargo install --force honggfuzz
|
cargo install --force honggfuzz
|
||||||
for TARGET in fuzz_targets/*; do
|
for TARGET in fuzz_targets/*; do
|
||||||
FILENAME=$(basename $TARGET)
|
FILENAME=$(basename $TARGET)
|
||||||
FILE="${FILENAME%.*}"
|
FILE="${FILENAME%.*}"
|
||||||
if [ -d hfuzz_input/$FILE ]; then
|
if [ -d hfuzz_input/$FILE ]; then
|
||||||
HFUZZ_INPUT_ARGS="-f hfuzz_input/$FILE/input"
|
HFUZZ_INPUT_ARGS="-f hfuzz_input/$FILE/input"
|
||||||
|
|
Loading…
Reference in New Issue