]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
CI: Valgrind: Test with static liblzma
authorLasse Collin <lasse.collin@tukaani.org>
Tue, 22 Apr 2025 18:12:50 +0000 (21:12 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Tue, 22 Apr 2025 18:26:21 +0000 (21:26 +0300)
If shared liblzma is built, tests/test_* and src/xz/xz are wrapper
scripts created by Libtool. The wrappers set library search path
so that the freshly-built shared library is found.

With a static liblzma, no wrapper scripts are needed, and Libtool
places the real executables to the aforementioned locations. This
speeds up the tests under Valgrind dramatically.

Fixes: 6c095a98fbec ("ci: test Valgrind")
.github/workflows/ci.yml

index f43ae981239483109a256a8e102ead21abffbc8c..80941b6b2e06a445aea8f1df8484a9c08e09965b 100644 (file)
@@ -99,7 +99,7 @@ jobs:
 
       - name: Build with Valgrind
         if: ${{ startsWith(matrix.os, 'ubuntu') && matrix.build_system == 'autotools' }}
-        run: ./build-aux/ci_build.bash -b autotools -p build -d sandbox
+        run: ./build-aux/ci_build.bash -b autotools -p build -d shared,sandbox
       - name: Test with Valgrind
         if: ${{ startsWith(matrix.os, 'ubuntu') && matrix.build_system == 'autotools' }}
         run: |