Skip to content

Commit 9a24999

Browse files
committed
Added more LEGACY variants of sanitizer CI jobs
To better test how non-Linux platforms interact with the use of the legacy path for sanitizers.
1 parent bedde52 commit 9a24999

File tree

1 file changed

+115
-35
lines changed

1 file changed

+115
-35
lines changed

.gitlab-ci.yml

+115-35
Original file line numberDiff line numberDiff line change
@@ -520,41 +520,6 @@ Linux/Clang/UndefinedSanitizer:
520520
CMAKE_OPTIONS: -D EXAMPLE_USE_SANITIZER=undefined
521521
<<: *linux_success_template
522522

523-
Linux/Clang/ThreadSanitizer (LEGACY):
524-
variables:
525-
CC: clang
526-
CXX: clang++
527-
CMAKE_OPTIONS: -D USE_SANITIZER=thread
528-
<<: *linux_failure_template
529-
530-
Linux/Clang/AddressSanitizer (LEGACY):
531-
variables:
532-
CC: clang
533-
CXX: clang++
534-
CMAKE_OPTIONS: -D USE_SANITIZER=address
535-
<<: *linux_failure_template
536-
537-
Linux/Clang/LeakSanitizer (LEGACY):
538-
variables:
539-
CC: clang
540-
CXX: clang++
541-
CMAKE_OPTIONS: -D USE_SANITIZER=leak
542-
<<: *linux_failure_template
543-
544-
Linux/Clang/MemorySanitizer (LEGACY):
545-
variables:
546-
CC: clang
547-
CXX: clang++
548-
CMAKE_OPTIONS: -D USE_SANITIZER=memory
549-
<<: *linux_failure_template
550-
551-
Linux/Clang/UndefinedSanitizer (LEGACY):
552-
variables:
553-
CC: clang
554-
CXX: clang++
555-
CMAKE_OPTIONS: -D USE_SANITIZER=undefined
556-
<<: *linux_success_template
557-
558523
.macos_success_template: &macos_success_template
559524
stage: Sanitizers
560525
parallel:
@@ -638,3 +603,118 @@ Windows/MSVC/Address Sanitizer:
638603
- cmake example/all/ -B build -GNinja -D EXAMPLE_USE_SANITIZER=address
639604
- ninja -C build
640605
- ninja -C build test ; if ($? -ne 0) { return 0 } else { return 1 }
606+
607+
# Legacy Sanitizer
608+
609+
Linux/GCC/ThreadSanitizer (LEGACY):
610+
variables:
611+
CMAKE_OPTIONS: -D USE_SANITIZER=thread
612+
<<: *linux_failure_template
613+
614+
Linux/Clang/ThreadSanitizer (LEGACY):
615+
variables:
616+
CC: clang
617+
CXX: clang++
618+
CMAKE_OPTIONS: -D USE_SANITIZER=thread
619+
<<: *linux_failure_template
620+
621+
Linux/GCC/AddressSanitizer (LEGACY):
622+
variables:
623+
CMAKE_OPTIONS: -D USE_SANITIZER=address
624+
<<: *linux_failure_template
625+
626+
Linux/Clang/AddressSanitizer (LEGACY):
627+
variables:
628+
CC: clang
629+
CXX: clang++
630+
CMAKE_OPTIONS: -D USE_SANITIZER=address
631+
<<: *linux_failure_template
632+
633+
Linux/GCC/LeakSanitizer (LEGACY):
634+
variables:
635+
CMAKE_OPTIONS: -D USE_SANITIZER=leak
636+
<<: *linux_failure_template
637+
638+
Linux/Clang/LeakSanitizer (LEGACY):
639+
variables:
640+
CC: clang
641+
CXX: clang++
642+
CMAKE_OPTIONS: -D USE_SANITIZER=leak
643+
<<: *linux_failure_template
644+
645+
Linux/Clang/MemorySanitizer (LEGACY):
646+
variables:
647+
CC: clang
648+
CXX: clang++
649+
CMAKE_OPTIONS: -D USE_SANITIZER=memory
650+
<<: *linux_failure_template
651+
652+
Linux/GCC/UndefinedSanitizer (LEGACY):
653+
variables:
654+
CMAKE_OPTIONS: -D USE_SANITIZER=undefined
655+
<<: *linux_success_template
656+
657+
Linux/Clang/UndefinedSanitizer (LEGACY):
658+
variables:
659+
CC: clang
660+
CXX: clang++
661+
CMAKE_OPTIONS: -D USE_SANITIZER=undefined
662+
<<: *linux_success_template
663+
664+
Windows/MSVC/Address Sanitizer (LEGACY):
665+
image: stabletec/build-core:windows-2019
666+
stage: Sanitizers
667+
parallel:
668+
matrix:
669+
- ARCH: [amd64]
670+
tags:
671+
- container
672+
- windows
673+
- ${ARCH}
674+
script:
675+
- cmake example/all/ -B build -GNinja -D USE_SANITIZER=address
676+
- ninja -C build
677+
- ninja -C build test ; if ($? -ne 0) { return 0 } else { return 1 }
678+
679+
macOS/AppleClang/ThreadSanitizer (LEGACY):
680+
variables:
681+
CMAKE_OPTIONS: -D USE_SANITIZER=thread
682+
<<: *macos_failure_template
683+
684+
macOS/Clang/ThreadSanitizer (LEGACY):
685+
variables:
686+
CC: clang
687+
CXX: clang++
688+
CMAKE_OPTIONS: -D USE_SANITIZER=thread
689+
<<: *macos_failure_template
690+
691+
macOS/AppleClang/AddressSanitizer (LEGACY):
692+
variables:
693+
CMAKE_OPTIONS: -D USE_SANITIZER=address
694+
<<: *macos_failure_template
695+
696+
macOS/Clang/AddressSanitizer (LEGACY):
697+
variables:
698+
CC: clang
699+
CXX: clang++
700+
CMAKE_OPTIONS: -D USE_SANITIZER=address
701+
<<: *macos_failure_template
702+
703+
macOS/Clang/LeakSanitizer (LEGACY):
704+
variables:
705+
CC: clang
706+
CXX: clang++
707+
CMAKE_OPTIONS: -D USE_SANITIZER=leak
708+
<<: *macos_failure_template
709+
710+
macOS/AppleClang/UndefinedSanitizer (LEGACY):
711+
variables:
712+
CMAKE_OPTIONS: -D USE_SANITIZER=undefined
713+
<<: *macos_success_template
714+
715+
macOS/Clang/UndefinedSanitizer (LEGACY):
716+
variables:
717+
CC: clang
718+
CXX: clang++
719+
CMAKE_OPTIONS: -D USE_SANITIZER=undefined
720+
<<: *macos_success_template

0 commit comments

Comments
 (0)