mirror of
https://github.com/qpdf/qpdf.git
synced 2025-04-01 14:11:51 +00:00
Fix tests with GNU grep 3.8
GNU grep 3.8 started to emit warnings when invoking egrep. Convert all calls to grep -E.
This commit is contained in:
parent
4dcc1021b8
commit
7049588bff
@ -3,7 +3,7 @@ set -eo pipefail
|
|||||||
cd $(dirname $0)
|
cd $(dirname $0)
|
||||||
whoami=$(basename $0)
|
whoami=$(basename $0)
|
||||||
|
|
||||||
if [[ $(git status -s | egrep -v abi-perf-test | wc -l) != 0 ]]; then
|
if [[ $(git status -s | grep -E -v abi-perf-test | wc -l) != 0 ]]; then
|
||||||
echo 1>&2 "${whoami}: git is not clean. (abi-perf-test changes ignored)"
|
echo 1>&2 "${whoami}: git is not clean. (abi-perf-test changes ignored)"
|
||||||
git status -s
|
git status -s
|
||||||
exit 2
|
exit 2
|
||||||
|
@ -10,7 +10,7 @@ pip3 install sphinx sphinx_rtd_theme
|
|||||||
cmake -S . -B build -DBUILD_DOC=1
|
cmake -S . -B build -DBUILD_DOC=1
|
||||||
cmake --build build --target doc_dist
|
cmake --build build --target doc_dist
|
||||||
zip -r doc.zip build/manual/doc-dist
|
zip -r doc.zip build/manual/doc-dist
|
||||||
version=$(egrep '^release' manual/conf.py | cut -d"'" -f 2)
|
version=$(grep -E '^release' manual/conf.py | cut -d"'" -f 2)
|
||||||
mv build/manual/doc-dist qpdf-${version}-doc
|
mv build/manual/doc-dist qpdf-${version}-doc
|
||||||
mkdir distribution
|
mkdir distribution
|
||||||
zip -r distribution/qpdf-${version}-doc-ci.zip qpdf-${version}-doc
|
zip -r distribution/qpdf-${version}-doc-ci.zip qpdf-${version}-doc
|
||||||
|
@ -8,7 +8,7 @@ sudo apt-get -y install build-essential cmake zlib1g-dev libjpeg-dev
|
|||||||
./fuzz/oss-fuzz-build
|
./fuzz/oss-fuzz-build
|
||||||
ls -l out/qpdf_fuzzer
|
ls -l out/qpdf_fuzzer
|
||||||
ls -l out/
|
ls -l out/
|
||||||
if ldd out/qpdf_fuzzer | egrep 'libjpeg|libz|libqpdf'; then
|
if ldd out/qpdf_fuzzer | grep -E 'libjpeg|libz|libqpdf'; then
|
||||||
echo 1>&2 "*** Fuzzers linked dynamically with some dependent libraries."
|
echo 1>&2 "*** Fuzzers linked dynamically with some dependent libraries."
|
||||||
ldd out/qpdf_fuzzer
|
ldd out/qpdf_fuzzer
|
||||||
exit 2
|
exit 2
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
lines=$(expr 0 + $(diff "$1" "$2" | egrep '^[<>]' | egrep -v '(Date|InstanceID)' | wc -l))
|
lines=$(expr 0 + $(diff "$1" "$2" | grep -E '^[<>]' | grep -E -v '(Date|InstanceID)' | wc -l))
|
||||||
if [ "$lines" = "0" ]; then
|
if [ "$lines" = "0" ]; then
|
||||||
echo okay
|
echo okay
|
||||||
else
|
else
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
lines=$(expr 0 + $(diff "$1" "$2" | egrep '^[<>]' | \
|
lines=$(expr 0 + $(diff "$1" "$2" | grep -E '^[<>]' | \
|
||||||
egrep -v '/ID' | egrep -v '%PDF-' | wc -l))
|
grep -E -v '/ID' | grep -E -v '%PDF-' | wc -l))
|
||||||
if [ "$lines" = "0" ]; then
|
if [ "$lines" = "0" ]; then
|
||||||
echo okay
|
echo okay
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user