summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPaweł Krupa <pawel@krupa.net.pl>2019-02-21 19:34:46 +0100
committerGitHub <noreply@github.com>2019-02-21 19:34:46 +0100
commit24c500a1ce177a1a0653a113303848efc2faad4e (patch)
tree0c78972fd89b7a93ec59fddc803b21d2090f3f26 /tests
parent02fb32a120f73e36d995eef735759b42ec3df6f3 (diff)
revert #5457 and test if files exist after installation (#5460)
[netdata patch release]
Diffstat (limited to 'tests')
-rwxr-xr-xtests/lifecycle.bats8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/lifecycle.bats b/tests/lifecycle.bats
index 8efdf44785..d008fea46c 100755
--- a/tests/lifecycle.bats
+++ b/tests/lifecycle.bats
@@ -2,6 +2,11 @@
INSTALLATION="$BATS_TMPDIR/installation"
ENV="${INSTALLATION}/netdata/etc/netdata/.environment"
+# list of files which need to be checked. Path cannot start from '/'
+FILES="usr/libexec/netdata/plugins.d/go.d.plugin
+ usr/libexec/netdata/plugins.d/charts.d.plugin
+ usr/libexec/netdata/plugins.d/python.d.plugin
+ usr/libexec/netdata/plugins.d/node.d.plugin"
setup() {
if [ ! -f .gitignore ]; then
@@ -12,6 +17,9 @@ setup() {
@test "install netdata" {
./netdata-installer.sh --dont-wait --dont-start-it --auto-update --install "${INSTALLATION}"
+ for file in $FILES; do
+ [ ! -f "$BATS_TMPDIR/$file" ]
+ done
}
@test "update netdata" {