⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.19
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
proc
/
self
/
root
/
usr
/
local
/
src
/
netdata
/
tests
/
View File Name :
run-unit-tests.sh
#!/usr/bin/env bash # # Unit-testing script # # This script does the following: # 1. Check whether any files were modified that would necessitate unit testing (using the `TRAVIS_COMMIT_RANGE` environment variable). # 2. If there are no changed files that require unit testing, exit successfully. # 3. Otherwise, run all the unit tests. # # We do things this way because our unit testing takes a rather long # time (average 18-19 minutes as of the original creation of this script), # so skipping it when we don't actually need it can significantly speed # up the CI process. # # Copyright: SPDX-License-Identifier: GPL-3.0-or-later # # Author: Austin S. Hemmelgarn <austin@netdata.cloud> # # shellcheck disable=SC2230 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 } install_netdata || exit 1 c_unit_tests || exit 1