summaryrefslogtreecommitdiff
path: root/configs/boot/bbench-ics.rcS
blob: 1bb67d9fbce827a700d1db5de0b2592dfaf35a08 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/system/bin/sh

#Author: Anthony Gutierrez
# run script for bbench on ics

stop_m5() {
    /sbin/m5 exit

    return
}

wait_bb_finishfifo() {
    echo "<html><head>FINISH</head><body><h1>FINISH</h1></body></html>" > /data/bbench/finish_fifo.html

    return
}

mkfifo_bbench() {
    /sbin/busybox mkfifo /data/bbench/finish_fifo.html

    return
}

run_bbench_test() {
    mkfifo_bbench
    am start -a android.intent.action.VIEW -d file:///data/bbench/index.html -t application/x-webarchive-xml
    wait_bb_finishfifo

    rm /data/bbench/finish_fifo.html
    stop_m5

    return
}

sleep 10
/sbin/m5 dumpstats
/sbin/m5 resetstats
run_bbench_test