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,5 +1,14 @@
|
||||||
#!/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)
|
||||||
|
|
Loading…
Reference in New Issue