mirror of
https://github.com/mirror/wget.git
synced 2026-08-22 10:53:29 +08:00
* fuzz/*: Use grep >/dev/null instead of grep -q
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh -eu
|
#!/bin/sh -eu
|
||||||
|
|
||||||
if ! grep -q FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION Makefile; then
|
if ! grep FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION Makefile >/dev/null; then
|
||||||
echo "The fuzzers haven't been built for fuzzing (maybe for regression testing !?)"
|
echo "The fuzzers haven't been built for fuzzing (maybe for regression testing !?)"
|
||||||
echo "Please built regarding README.md and try again."
|
echo "Please built regarding README.md and try again."
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ if test -z "$1"; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! grep -q FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION Makefile; then
|
if ! grep FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION Makefile >/dev/null; then
|
||||||
echo "The fuzzers haven't been built for fuzzing (maybe for regression testing !?)"
|
echo "The fuzzers haven't been built for fuzzing (maybe for regression testing !?)"
|
||||||
echo "Please built regarding README.md and try again."
|
echo "Please built regarding README.md and try again."
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
# You should have received a copy of the GNU Lesser General Public License
|
# You should have received a copy of the GNU Lesser General Public License
|
||||||
# along with GNU Wget. If not, see <https://www.gnu.org/licenses/>.
|
# along with GNU Wget. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
if ! grep -q '^CC=.afl-clang-fast' ../config.log; then
|
if ! grep '^CC=.afl-clang-fast' ../config.log >/dev/null; then
|
||||||
echo "compile first library as:"
|
echo "compile first library as:"
|
||||||
echo "CC=afl-clang-fast ./configure"
|
echo "CC=afl-clang-fast ./configure"
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ if test -z "$1"; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! grep -q FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION Makefile; then
|
if ! grep FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION Makefile >/dev/null; then
|
||||||
echo "The fuzzers haven't been built for fuzzing (maybe for regression testing !?)"
|
echo "The fuzzers haven't been built for fuzzing (maybe for regression testing !?)"
|
||||||
echo "Please built regarding README.md and try again."
|
echo "Please built regarding README.md and try again."
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user