]> granicus.if.org Git - re2c/commitdiff
__alltest.sh: add clang's -fsanitize=memory flavour 217/head
authorSergei Trofimovich <slyfox@gentoo.org>
Tue, 4 Sep 2018 19:16:23 +0000 (20:16 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Tue, 4 Sep 2018 19:16:23 +0000 (20:16 +0100)
Bug: https://github.com/skvadrik/re2c/issues/215
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
re2c/__alltest.sh
re2c/__build_clang.sh
re2c/__build_clang_msan.sh [new file with mode: 0755]

index 6031affcac9ba1834e7ef2b9007f4f0ee470e06e..1782cc818e2ca5a142e05defb23c9ca98c0ef677 100755 (executable)
@@ -1,10 +1,10 @@
 #!/bin/sh
 
 # normal tests
-for d in __build{,_asan,_ubsan,_lsan,_clang,_m32} ; do
+for d in __build{,_asan,_ubsan,_lsan,_clang,_clang_msan,_m32} ; do
     ./${d}.sh \
         && cd ${d} \
-        && make tests \
+        && make check VERBOSE=1 \
         && cd .. \
         || { cd .. ; echo "*** ${d} failed ***"; exit 1; }
 done
index 6b9b19e44fcfb6e249ad5f6e906466b6b842120a..9db0bd732a4b27ad195a11e850a0d930e99ff388 100755 (executable)
@@ -5,6 +5,6 @@ rm -rf $builddir
 mkdir $builddir
 
 cd $builddir
-../configure CXX=clang++ && \
+../configure CC=clang CXX=clang++ && \
 make -j5
 cd ..
diff --git a/re2c/__build_clang_msan.sh b/re2c/__build_clang_msan.sh
new file mode 100755 (executable)
index 0000000..524b64b
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+builddir=__build_clang_msan
+rm -rf $builddir
+mkdir $builddir
+
+cd $builddir
+../configure CC=clang CXX=clang++ CFLAGS="-fsanitize=memory" CXXFLAGS="-fsanitize=memory" LDFLAGS="-fsanitize=memory" && \
+make -j5
+cd ..