Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /netdata/tests/ drwxr-xr-x | |
| Viewing file: Select action/file-type: #!/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"
fakeroot ./netdata-installer.sh \
--install "$HOME" \
--dont-wait \
--dont-start-it \
--enable-plugin-nfacct \
--enable-plugin-freeipmi \
--disable-lto
}
c_unit_tests() {
echo "Running C code unit tests"
"$HOME"/netdata/usr/sbin/netdata -W unittest
}
install_netdata || exit 1
c_unit_tests || exit 1
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0049 ]-- |