-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Lars T Hansen
committed
Jun 24, 2024
1 parent
5ac0cbe
commit 9972eaf
Showing
2 changed files
with
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Test that we can emit per-cpu load data properly. | ||
|
||
set -e | ||
|
||
( cd .. ; cargo build ) | ||
loadlines=$(../target/debug/sonar ps --load | grep ',load=' | wc -l) | ||
if [[ $loadlines -ne 1 ]]; then | ||
echo "Did not emit load data properly - not exactly 1" | ||
exit 1 | ||
fi | ||
|
||
loadlines=$(../target/debug/sonar ps | grep ',load=' | wc -l) | ||
if [[ $loadlines -ne 0 ]]; then | ||
echo "Did not emit load data properly - not exactly 0" | ||
exit 1 | ||
fi |
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