* fuzz/*: Use grep >/dev/null instead of grep -q

This commit is contained in:
Tim Rühsen
2023-02-12 18:58:15 +01:00
parent 8247a34521
commit 24e876357a
4 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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