aboutsummaryrefslogtreecommitdiffstats
path: root/build-scripts
diff options
context:
space:
mode:
Diffstat (limited to 'build-scripts')
-rwxr-xr-xbuild-scripts/build-linux2
-rwxr-xr-xbuild-scripts/test-unsigned-char4
2 files changed, 6 insertions, 0 deletions
diff --git a/build-scripts/build-linux b/build-scripts/build-linux
index 3118a955..ced4bbc8 100755
--- a/build-scripts/build-linux
+++ b/build-scripts/build-linux
@@ -8,6 +8,8 @@ cmake -S . -B build -DCI_MODE=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DREQUIRE_CRYPTO_OPENSSL=1 -DREQUIRE_CRYPTO_GNUTLS=1
cmake --build build -j$(nproc) -- -k
cd build
+# Make sure char is signed by default -- see also test-unsigned-char
+./qpdf/test_char_sign | grep 'char is signed'
# libtests automatically runs with all crypto providers.
env QPDF_TEST_COMPARE_IMAGES=1 ctest --verbose
# Run just qpdf tests with remaining crypto providers.
diff --git a/build-scripts/test-unsigned-char b/build-scripts/test-unsigned-char
index 840b517d..1f4c68d8 100755
--- a/build-scripts/test-unsigned-char
+++ b/build-scripts/test-unsigned-char
@@ -15,4 +15,8 @@ env CFLAGS="-funsigned-char" \
-DENABLE_QTC=1
cmake --build build -j$(nproc) -- -k
cd build
+# Make sure char is unsigned by default. ./build-linux verifies that
+# that build has char signed by default. That way we can be sure we
+# are testing both ways.
+./qpdf/test_char_sign | grep 'char is unsigned'
ctest --verbose