Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more tests for
pbench-register-tool-set
Following a comment by @dbutenhof on PR #2904 (actually, its sibling PR back-porting to b0.71), this PR adds a few more tests for `pbench-register-tool-set'.
- Loading branch information
Showing
6 changed files
with
77 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
agent/util-scripts/gold/pbench-register-tool-set/test-11.19.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
+++ Running test-11.19 pbench-register-tool-set -- light | ||
"vmstat" tool is now registered for host "testhost.example.com" in group "default" | ||
--- Finished test-11.19 pbench-register-tool-set (status=0) | ||
+++ pbench tree state | ||
/var/tmp/pbench-test-utils/pbench | ||
/var/tmp/pbench-test-utils/pbench/pbench.log | ||
/var/tmp/pbench-test-utils/pbench/tmp | ||
/var/tmp/pbench-test-utils/pbench/tools-v1-default | ||
/var/tmp/pbench-test-utils/pbench/tools-v1-default/testhost.example.com | ||
/var/tmp/pbench-test-utils/pbench/tools-v1-default/testhost.example.com/vmstat | ||
=== /var/tmp/pbench-test-utils/pbench/tools-v1-default/testhost.example.com/vmstat: | ||
--interval=3 | ||
--- pbench tree state | ||
+++ pbench.log file contents | ||
[debug][1900-01-01T00:00:00.000000] tool_opts: "--interval=3" | ||
[info][1900-01-01T00:00:00.000000] "vmstat" tool is now registered for host "testhost.example.com" in group "default" | ||
--- pbench.log file contents |
17 changes: 17 additions & 0 deletions
17
agent/util-scripts/gold/pbench-register-tool-set/test-11.20.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
+++ Running test-11.20 pbench-register-tool-set --group=foo light | ||
"vmstat" tool is now registered for host "testhost.example.com" in group "foo" | ||
--- Finished test-11.20 pbench-register-tool-set (status=0) | ||
+++ pbench tree state | ||
/var/tmp/pbench-test-utils/pbench | ||
/var/tmp/pbench-test-utils/pbench/pbench.log | ||
/var/tmp/pbench-test-utils/pbench/tmp | ||
/var/tmp/pbench-test-utils/pbench/tools-v1-foo | ||
/var/tmp/pbench-test-utils/pbench/tools-v1-foo/testhost.example.com | ||
/var/tmp/pbench-test-utils/pbench/tools-v1-foo/testhost.example.com/vmstat | ||
=== /var/tmp/pbench-test-utils/pbench/tools-v1-foo/testhost.example.com/vmstat: | ||
--interval=3 | ||
--- pbench tree state | ||
+++ pbench.log file contents | ||
[debug][1900-01-01T00:00:00.000000] tool_opts: "--interval=3" | ||
[info][1900-01-01T00:00:00.000000] "vmstat" tool is now registered for host "testhost.example.com" in group "foo" | ||
--- pbench.log file contents |
17 changes: 17 additions & 0 deletions
17
agent/util-scripts/gold/pbench-register-tool-set/test-11.21.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
+++ Running test-11.21 pbench-register-tool-set --group=foo -- light | ||
"vmstat" tool is now registered for host "testhost.example.com" in group "foo" | ||
--- Finished test-11.21 pbench-register-tool-set (status=0) | ||
+++ pbench tree state | ||
/var/tmp/pbench-test-utils/pbench | ||
/var/tmp/pbench-test-utils/pbench/pbench.log | ||
/var/tmp/pbench-test-utils/pbench/tmp | ||
/var/tmp/pbench-test-utils/pbench/tools-v1-foo | ||
/var/tmp/pbench-test-utils/pbench/tools-v1-foo/testhost.example.com | ||
/var/tmp/pbench-test-utils/pbench/tools-v1-foo/testhost.example.com/vmstat | ||
=== /var/tmp/pbench-test-utils/pbench/tools-v1-foo/testhost.example.com/vmstat: | ||
--interval=3 | ||
--- pbench tree state | ||
+++ pbench.log file contents | ||
[debug][1900-01-01T00:00:00.000000] tool_opts: "--interval=3" | ||
[info][1900-01-01T00:00:00.000000] "vmstat" tool is now registered for host "testhost.example.com" in group "foo" | ||
--- pbench.log file contents |
7 changes: 7 additions & 0 deletions
7
agent/util-scripts/gold/pbench-register-tool-set/test-11.22.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
+++ Running test-11.22 pbench-register-tool-set --group=foo nonexistenttoolset | ||
ERROR: failed to fetch tool set, nonexistenttoolset-tool-set, from the pbench-agent configuration file | ||
--- Finished test-11.22 pbench-register-tool-set (status=1) | ||
+++ pbench tree state | ||
/var/tmp/pbench-test-utils/pbench | ||
/var/tmp/pbench-test-utils/pbench/tmp | ||
--- pbench tree state |
7 changes: 7 additions & 0 deletions
7
agent/util-scripts/gold/pbench-register-tool-set/test-11.23.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
+++ Running test-11.23 pbench-register-tool-set -- --group=foo light | ||
ERROR: failed to fetch tool set, --group=foo-tool-set, from the pbench-agent configuration file | ||
--- Finished test-11.23 pbench-register-tool-set (status=1) | ||
+++ pbench tree state | ||
/var/tmp/pbench-test-utils/pbench | ||
/var/tmp/pbench-test-utils/pbench/tmp | ||
--- pbench tree state |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters