summaryrefslogtreecommitdiffstats
path: root/tests/run-unit-tests.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-24 09:54:23 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-24 09:54:44 +0000
commit836b47cb7e99a977c5a23b059ca1d0b5065d310e (patch)
tree1604da8f482d02effa033c94a84be42bc0c848c3 /tests/run-unit-tests.sh
parentReleasing debian version 1.44.3-2. (diff)
downloadnetdata-836b47cb7e99a977c5a23b059ca1d0b5065d310e.tar.xz
netdata-836b47cb7e99a977c5a23b059ca1d0b5065d310e.zip
Merging upstream version 1.46.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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 1fedb880b..f819f1bc9 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
}