summaryrefslogtreecommitdiffstats
path: root/tests/run-unit-tests.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-unit-tests.sh')
-rwxr-xr-xtests/run-unit-tests.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/run-unit-tests.sh b/tests/run-unit-tests.sh
index 1fedb880..f819f1bc 100755
--- a/tests/run-unit-tests.sh
+++ b/tests/run-unit-tests.sh
@@ -20,18 +20,20 @@
install_netdata() {
echo "Installing Netdata"
+
+ NETDATA_CMAKE_OPTIONS="-DCMAKE_BUILD_TYPE=Debug -DENABLE_ADDRESS_SANITIZER=On" \
fakeroot ./netdata-installer.sh \
--install-prefix "$HOME" \
--dont-wait \
--dont-start-it \
- --enable-plugin-nfacct \
- --enable-plugin-freeipmi \
--disable-lto \
--enable-logsmanagement-tests
}
c_unit_tests() {
echo "Running C code unit tests"
+
+ ASAN_OPTIONS=detect_leaks=0 \
"$HOME"/netdata/usr/sbin/netdata -W unittest
}