blob: 627850d182d576742a6776b7f8fa57544abfc0bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/bash
set -e
#set -x
echo "CMT interrupt test"
DEV_NAME="sh_cmt.0"
# CMT interrupt test
BEFORE=$($(dirname $0)/../common/interrupt-count.sh "$DEV_NAME")
sleep 5
AFTER=$($(dirname $0)/../common/interrupt-count.sh "$DEV_NAME")
# Show result
echo "Before interrupt:$BEFORE"
echo "After interrupt :$AFTER"
if [ "$BEFORE" -ge "$AFTER" ]; then
echo "Interrupt cound is not increasing"
exit 1
else
echo "Test passed"
fi
|