File: df.test

package info (click to toggle)
zeekctl 2.2.0%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,544 kB
  • sloc: python: 5,639; sh: 1,374; makefile: 71; awk: 24
file content (44 lines) | stat: -rw-r--r-- 998 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Test that the df command can get disk usage for a standalone node,
# all nodes in a cluster, or just a specified cluster node.
#
# @TEST-EXEC: bash %INPUT
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-df-output btest-diff default.out
# @TEST-EXEC: btest-diff standalone.out
# @TEST-EXEC: btest-diff cluster.out
# @TEST-EXEC: btest-diff manager.out
# @TEST-EXEC: btest-diff worker.out

. zeekctl-test-setup

zeekctl install

# Test with the real "df" command

zeekctl df > default.out

# Test with Zeek directories on multiple partitions

while read line; do installfile $line; done << EOF
bin/df__partitions --new
EOF

replaceprefix bin/df

zeekctl df > standalone.out

# Test using a cluster config

while read line; do installfile $line; done << EOF
etc/node.cfg__logger
EOF

zeekctl install

# check usage on all nodes (in this case, the logger)
zeekctl df > cluster.out

# check usage on manager
zeekctl df manager > manager.out

# check usage on a worker
zeekctl df worker-1 > worker.out