File: test-kernelshark

package info (click to toggle)
kernelshark 2.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,760 kB
  • sloc: cpp: 12,517; ansic: 11,546; sh: 89; makefile: 89
file content (16 lines) | stat: -rwxr-xr-x 273 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

/usr/bin/kernelshark &
pid=$!
win=`xdotool search --sync --onlyvisible --pid $pid`
echo "win=$win"
name=`xdotool getwindowname $win`
kill -9 $pid
echo "name=$name"
if [ "$name" = "Kernel Shark" ]; then
echo "Test OK"
return 0
else
echo "Test Failed"
return 1
fi