2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-12-22 10:58:58 +00:00

Fix issues with abi-perf-test

This commit is contained in:
Jay Berkenbilt 2022-09-14 13:03:06 -04:00
parent 2e35ead579
commit 6c7c76e0e4
2 changed files with 16 additions and 9 deletions

View File

@ -353,7 +353,7 @@ RELEASE PREPARATION
* Test for performance and binary compatibility:
./abi-perf-test release-<old> @
./abi-perf-test v<old> @
Prefix with SKIP_PERF=1 to skip performance test.
Prefix with SKIP_TESTS=1 to skip test suite run.

View File

@ -89,6 +89,7 @@ $source/check_abi compare --old-lib $work/old/libqpdf.so.*.* \
--new-lib build/libqpdf/libqpdf.so \
--old-sizes $work/old/sizes --new-sizes $work/new/sizes
test_warn=0
if [ "$SKIP_TESTS" != "1" ]; then
# Switch back to the previous release and run tests. There may be
# some failures based on functionality change. We are looking for
@ -97,14 +98,7 @@ if [ "$SKIP_TESTS" != "1" ]; then
set +e
(cd build; ctest --verbose)
if [ $? != 0 ]; then
cat <<EOF
**********************************************************************
There were some test failures; inspect to determine whether they are
ABI-related.
**********************************************************************
EOF
test_warn=1
fi
set -e
fi
@ -121,3 +115,16 @@ if [ "$SKIP_PERF" != "1" ]; then
$source/performance_check --dir $source/../performance-test-files | \
tee -a $work/perf
fi
if [ $test_warn = 1 ]; then
cat <<EOF
**********************************************************************
There were some test failures; inspect to determine whether they are
ABI-related.
Check test results in $work/qpdf/build
**********************************************************************
EOF
fi