summaryrefslogtreecommitdiffstats
path: root/dung-3.4.25-m2/arch_timer/arch_timer-interrupt-lager.sh
blob: 4dfbf0348a332c2bc63af888ccc6a1d7bd7709bb (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 "ARM timer interrupt test"

DEV_NAME="arch_timer"

# 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