]> granicus.if.org Git - graphviz/commitdiff
Add ubuntu20-10-cmake-ASan-test job to CI
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Mon, 12 Apr 2021 07:59:25 +0000 (09:59 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Thu, 22 Apr 2021 05:23:25 +0000 (07:23 +0200)
.gitlab-ci.yml

index 4ec25fd9cc8c7d2b6d0e22c3f17eec12992c574c..31791f33725a9955ff11d2e52be2fb6d4a2d0676 100644 (file)
@@ -648,6 +648,27 @@ ubuntu20-10-cmake-test:
     variables:
       IMAGE: ubuntu-20.10
 
+ubuntu20-10-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: "ubuntu20-10-cmake-ASan-build"
+          artifacts: true
+    tags:
+        - linux
+    variables:
+      IMAGE: ubuntu-20.10
+
 centos7-cmake-test:
     <<: *linux_test_definition
     before_script: