]> granicus.if.org Git - graphviz/commitdiff
Add ubuntu21-04-cmake-ASan-test job to CI
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Thu, 29 Apr 2021 21:45:31 +0000 (23:45 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Mon, 10 May 2021 17:21:44 +0000 (19:21 +0200)
.gitlab-ci.yml

index ac4c3536032f594d6f7e914d325833c87a8aea26..4f2d9a7ea5e3146967de6c75cbba87d0b6a3f1d7 100644 (file)
@@ -747,6 +747,27 @@ ubuntu21-04-cmake-test:
     variables:
       IMAGE: ubuntu-21.04
 
+ubuntu21.04-cmake-ASan-test:
+    <<: *linux_test_definition
+    before_script:
+        - export build_system="cmake"
+        - export CFLAGS=" -g -fsanitize=address,undefined"
+        - export CXXFLAGS=" -g -fsanitize=address,undefined"
+        - export LDFLAGS=" -g -fsanitize=address,undefined"
+        # FIXME: remove the following when Graphviz can pass the test suite
+        # leak-free
+        - export ASAN_OPTIONS=detect_leaks=0,alloc_dealloc_mismatch=0
+        - echo experimental > COLLECTION
+    needs:
+        - job: portable-source
+          artifacts: true
+        - job: "ubuntu21-04-cmake-ASan-build"
+          artifacts: true
+    tags:
+        - linux
+    variables:
+      IMAGE: ubuntu-21.04
+
 centos7-cmake-test:
     <<: *linux_test_definition
     before_script: