File: checkrun

package info (click to toggle)
htop 3.4.1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,716 kB
  • sloc: ansic: 32,719; makefile: 480; sh: 206
file content (12 lines) | stat: -rwxr-xr-x 279 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

set -e

echo "Running htop, capturing output"
OUTPUT=$(TERM=vt100 htop -n 10) && echo Run: OK

grep -q "Mem" -- <<< "$OUTPUT" && echo Mem found: OK

grep -q "Load average" -- <<< "$OUTPUT" && echo LA found: OK

grep -q "root" -- <<< "$OUTPUT" && echo root found: OK