From 3231e210c3e0e7dce5e75a5ec611dfd6077c2490 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 8 Dec 2017 19:30:37 +0300 Subject: Add asan builds. --- .gitlab-ci.yml | 93 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a5e58d3..e968437 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -220,3 +220,96 @@ manaplus_SDL-1.2_old_test: dependencies: - SDL_SDL-1.2_old <<: *job-artifacts + + +manaplus_SDL-1.2_asan_tests: + stage: manaplus + script: + - ./.ci/install.sh gcc-7 g++-7 + make autoconf automake autopoint gettext pkg-config + libx11-dev libxext-dev libxt-dev libxv-dev x11proto-core-dev libgl1-mesa-dev libasound2-dev libglu1-mesa-dev libicu-dev + git wget unzip gdb valgrind netcat-openbsd procps + - ./.ci/clonesrc.sh + - cd cloned + - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc7_sanitize_tests.sh --enable-unittests=yes --without-manaplusgame --without-dyecmd + - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/checkldd.sh src/manaplustests + variables: + LIBNAME: SDL + LIBVERSION: SDL-1.2 + runenvz: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runzlib_master.sh + runenvx: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runlibxml2_master.sh + POST_CXXFLAGS: "-Wno-undef" + ASAN_OPTIONS: "detect_leaks=0" + JOBS: 1 + dependencies: + - SDL_SDL-1.2 + <<: *job-artifacts + +manaplus_SDL-1.2_asan: + stage: manaplus + script: + - ./.ci/install.sh gcc-7 g++-7 + make autoconf automake autopoint gettext pkg-config + libx11-dev libxext-dev libxt-dev libxv-dev x11proto-core-dev libgl1-mesa-dev libasound2-dev libglu1-mesa-dev libicu-dev + git wget unzip gdb valgrind netcat-openbsd procps + - ./.ci/clonesrc.sh + - cd cloned + - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc7_sanitize.sh --without-dyecmd + - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/checkldd.sh src/manaplus + - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/runtests.sh + variables: + LIBNAME: SDL + LIBVERSION: SDL-1.2 + runenvz: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runzlib_master.sh + runenvx: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runlibxml2_master.sh + POST_CXXFLAGS: "-Wno-undef" + dependencies: + - SDL_SDL-1.2 + <<: *job-artifacts + +manaplus_SDL-1.2_old_asan_test: + stage: manaplus + script: + - ./.ci/install.sh gcc-7 g++-7 + make autoconf automake autopoint gettext pkg-config + libx11-dev libxext-dev libxt-dev libxv-dev x11proto-core-dev libgl1-mesa-dev libasound2-dev libglu1-mesa-dev libicu-dev + libjpeg-dev libtiff-dev + git wget unzip gdb valgrind netcat-openbsd procps + - ./.ci/clonesrc.sh + - cd cloned + - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc7_sanitize_tests.sh --enable-unittests=yes --without-manaplusgame --without-dyecmd + - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/checkldd.sh src/manaplustests + variables: + LIBNAME: SDL + LIBVERSION: SDL-1.2_old + runenvz: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runzlib_v1.2.5.sh + runenvx: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runlibxml2_v2.9.1.sh + POST_CXXFLAGS: "-Wno-undef" + ASAN_OPTIONS: "detect_leaks=0" + JOBS: 1 + dependencies: + - SDL_SDL-1.2_old + <<: *job-artifacts + +manaplus_SDL-1.2_old_asan: + stage: manaplus + script: + - ./.ci/install.sh gcc-7 g++-7 + make autoconf automake autopoint gettext pkg-config + libx11-dev libxext-dev libxt-dev libxv-dev x11proto-core-dev libgl1-mesa-dev libasound2-dev libglu1-mesa-dev libicu-dev + libjpeg-dev libtiff-dev + git wget unzip gdb valgrind netcat-openbsd procps + - ./.ci/clonesrc.sh + - cd cloned + - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc7_sanitize.sh --without-dyecmd + - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/checkldd.sh src/manaplus + - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/runtests.sh + variables: + LIBNAME: SDL + LIBVERSION: SDL-1.2_old + runenvz: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runzlib_v1.2.5.sh + runenvx: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runlibxml2_v2.9.1.sh + POST_CXXFLAGS: "-Wno-undef" + dependencies: + - SDL_SDL-1.2_old + <<: *job-artifacts -- cgit v1.2.3-60-g2f50