forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sys-apps/dstat: avoid running network... etc tests
This fixes the test target to only load a restricted number of the shipped plugins - network, db, virtualisation... etc will fail in different ways unless the environment or explicit dependencies are met. Closes: https://bugs.gentoo.org/638728 Closes: https://bugs.gentoo.org/656514 Signed-off-by: Paul Healy <[email protected]> Closes: gentoo#10046 Signed-off-by: Andreas Sturmlechner <[email protected]>
- Loading branch information
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
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
15 changes: 15 additions & 0 deletions
15
sys-apps/dstat/files/dstat-0.7.3-skip-non-sandbox-tests.patch
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,15 @@ | ||
--- a/Makefile 2016-03-18 13:03:22.000000000 +0000 | ||
+++ b/Makefile 2018-10-02 11:11:00.344942941 +0100 | ||
@@ -32,9 +32,11 @@ | ||
rm -f examples/*.pyc plugins/*.pyc | ||
$(MAKE) -C docs clean | ||
|
||
+TEST_PLUGINS=--cpufreq --disk-avgqu --disk-avgrq --disk-svctm --disk-tps --disk-util --disk-wait --dstat-cpu --dstat-ctxt --dstat-mem --dstat --helloworld --md-status --net-packets --proc-count --snooze --test --top-bio-adv --top-bio --top-childwait --top-cpu-adv --top-cpu --top-cputime-avg --top-cputime --top-int --top-io-adv --top-io --top-latency-avg --top-latency --top-mem --top-oom | ||
+ | ||
test: | ||
./dstat -taf 1 5 | ||
- ./dstat -t --all-plugins 1 5 | ||
+ ./dstat -t $(TEST_PLUGINS) 1 5 | ||
|
||
dist: clean | ||
$(MAKE) -C docs dist |