This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=ebd19171d8f63a3ebc01eed33c22d8af5ad0eb38

commit ebd19171d8f63a3ebc01eed33c22d8af5ad0eb38
Author: Guillem Jover <guil...@debian.org>
AuthorDate: Sun Mar 17 19:52:25 2024 +0100

    build: Re-enable the sanitizer for functional tests in CI
    
    Now that we are ignoring leak sanitizer errors, we can enable the
    sanitizer checks for all the rest of issues that can be detected.
    
    At the same time we can now widen again the unit tests to all codebase
    instead of restricting it to only the lib/ directory.
---
 .gitlab-ci.yml | 8 ++++----
 tests/README   | 3 +++
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b21e08943..8262b85fe 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -21,16 +21,16 @@ author-check:
   stage: test
   script:
     - eatmydata apt -P pkg.dpkg.author-testing build-dep -qq -y .
-    - ./configure
+    - ./configure --enable-compiler-sanitizer
     - make -j$(nproc) authorcheck
            TESTSUITEFLAGS=--verbose TEST_PARALLEL=$(nproc)
 
-# Test whether the sanitized unit tests pass.
+# Test whether the unit tests pass.
 unit-tests:
   stage: test
   script:
     - ./configure --enable-compiler-sanitizer
-    - make -j$(nproc) -C lib check
+    - make -j$(nproc) check
            TESTSUITEFLAGS=--verbose TEST_PARALLEL=$(nproc)
 
 # Test whether the unit tests pass on a VPATH build.
@@ -69,6 +69,6 @@ shlib-tests:
 func-tests:
   stage: test
   script:
-    - ./configure
+    - ./configure --enable-compiler-sanitizer
     - make
     - eatmydata make -C tests test
diff --git a/tests/README b/tests/README
index cea05d0be..a6592a47a 100644
--- a/tests/README
+++ b/tests/README
@@ -12,6 +12,9 @@ affects the performance significantly.
 To test the tools from the dpkg build-tree, use the «test» target. If you
 want instead to test the installed programs use the «installtest» target.
 
+To test with the compiler sanitizer «configure ---enable-compiler-sanitizer»,
+and run the tests normally.
+
 The DPKG_TESTSUITE_OPTIONS environment/make variable can be used to change
 the behavior of the test runs, the following options are currently
 supported:

-- 
Dpkg.Org's dpkg

Reply via email to