summaryrefslogtreecommitdiffstats
path: root/storage/maria/libmarias3/ci-scripts
diff options
context:
space:
mode:
Diffstat (limited to 'storage/maria/libmarias3/ci-scripts')
-rwxr-xr-xstorage/maria/libmarias3/ci-scripts/asan.sh7
-rwxr-xr-xstorage/maria/libmarias3/ci-scripts/cppcheck.sh2
-rwxr-xr-xstorage/maria/libmarias3/ci-scripts/distcheck.sh4
-rwxr-xr-xstorage/maria/libmarias3/ci-scripts/docs.sh4
-rwxr-xr-xstorage/maria/libmarias3/ci-scripts/scanbuild.sh5
-rwxr-xr-xstorage/maria/libmarias3/ci-scripts/tsan.sh7
-rwxr-xr-xstorage/maria/libmarias3/ci-scripts/usan.sh7
-rwxr-xr-xstorage/maria/libmarias3/ci-scripts/valgrind.sh4
-rw-r--r--storage/maria/libmarias3/ci-scripts/valgrind.supp0
9 files changed, 40 insertions, 0 deletions
diff --git a/storage/maria/libmarias3/ci-scripts/asan.sh b/storage/maria/libmarias3/ci-scripts/asan.sh
new file mode 100755
index 00000000..ad3ff4b2
--- /dev/null
+++ b/storage/maria/libmarias3/ci-scripts/asan.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+export CC=clang
+export CFLAGS="-fsanitize=address"
+autoreconf -fi
+./configure --enable-debug=yes
+make
+make check 2>/dev/null
diff --git a/storage/maria/libmarias3/ci-scripts/cppcheck.sh b/storage/maria/libmarias3/ci-scripts/cppcheck.sh
new file mode 100755
index 00000000..a717b406
--- /dev/null
+++ b/storage/maria/libmarias3/ci-scripts/cppcheck.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+cppcheck --quiet --enable=all --error-exitcode=1 . src tests libmarias3
diff --git a/storage/maria/libmarias3/ci-scripts/distcheck.sh b/storage/maria/libmarias3/ci-scripts/distcheck.sh
new file mode 100755
index 00000000..e6c469b0
--- /dev/null
+++ b/storage/maria/libmarias3/ci-scripts/distcheck.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+autoreconf -fi
+./configure --enable-debug=yes
+make distcheck 2>/dev/null
diff --git a/storage/maria/libmarias3/ci-scripts/docs.sh b/storage/maria/libmarias3/ci-scripts/docs.sh
new file mode 100755
index 00000000..d5c8dcb6
--- /dev/null
+++ b/storage/maria/libmarias3/ci-scripts/docs.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+autoreconf -fi
+./configure
+make html
diff --git a/storage/maria/libmarias3/ci-scripts/scanbuild.sh b/storage/maria/libmarias3/ci-scripts/scanbuild.sh
new file mode 100755
index 00000000..541e7f6a
--- /dev/null
+++ b/storage/maria/libmarias3/ci-scripts/scanbuild.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+export CC="clang"
+autoreconf -fi
+./configure --enable-debug=yes
+scan-build --use-cc=clang --use-c++=clang++ --status-bugs make
diff --git a/storage/maria/libmarias3/ci-scripts/tsan.sh b/storage/maria/libmarias3/ci-scripts/tsan.sh
new file mode 100755
index 00000000..9fa2b132
--- /dev/null
+++ b/storage/maria/libmarias3/ci-scripts/tsan.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+export CC=clang
+export CFLAGS="-fsanitize=thread"
+autoreconf -fi
+./configure --enable-debug=yes
+make
+make check 2>/dev/null
diff --git a/storage/maria/libmarias3/ci-scripts/usan.sh b/storage/maria/libmarias3/ci-scripts/usan.sh
new file mode 100755
index 00000000..9090c37d
--- /dev/null
+++ b/storage/maria/libmarias3/ci-scripts/usan.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+export CC=clang
+export CFLAGS="-fsanitize=undefined -fsanitize=nullability"
+autoreconf -fi
+./configure --enable-debug=yes
+make
+make check 2>/dev/null
diff --git a/storage/maria/libmarias3/ci-scripts/valgrind.sh b/storage/maria/libmarias3/ci-scripts/valgrind.sh
new file mode 100755
index 00000000..0d6ac291
--- /dev/null
+++ b/storage/maria/libmarias3/ci-scripts/valgrind.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+autoreconf -fi
+./configure --enable-debug=yes
+TESTS_ENVIRONMENT="./libtool --mode=execute valgrind --error-exitcode=1 --leak-check=full --track-fds=no --malloc-fill=A5 --free-fill=DE --suppressions=ci-scripts/valgrind.supp" make check
diff --git a/storage/maria/libmarias3/ci-scripts/valgrind.supp b/storage/maria/libmarias3/ci-scripts/valgrind.supp
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/storage/maria/libmarias3/ci-scripts/valgrind.supp