limited_play.html
2.42 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
</head>
<body>
<h3>Window Management</h3>
(see bbapps/sktest/limited)<br>
<br>
AdvanceTicketWindow<br>
- increment several times and verify change <br>
<br>
GetConsumption<br>
- bad pointers<br>
- verify window changes<br>
<br>
Initialization<br>
- load random v0/1 and see that window is reset to 0,<br>
consumption counters to 0 (use jtag
to set to arbitrary values)<br>
<br>
<h3>Ticket Enforcement</h3>
<br>
Time Limit<br>
<br>
- verify ticket id must be >= 0x8000
( time_limit script )<br>
- run ticketed app with time limit, check that it runs
for that time<br>
- check that it can't run once time expired ( time_limit
script )<br>
- start over and verify that game can be run for less
than limit<br>
and the right amount of time is left over
(hand test)<br>
- run ticket with id outside window range, verify doesn't
work<br>
advance window, verify it does
work ( time_limit script )<br>
- test that killing game reenters sysapp cleanly
(hand test)<br>
- test that unplugging leaves completely consumed game
(hand test)<br>
- test unplugging card and pressing button credits game<br>
=> implicitly tests limit code<br>
<br>
<br>
Count Limit<br>
- run ticketed app with count limit, check that it runs
for that many counts<br>
- check that it can't run after counts run out (
count_limit script )<br>
- check that new ticket can be issued with high limit<br>
- test each play, up to and including power-off counts
as 1-play (hand test)<br>
<br>
Bonus Limit<br>
- test SetLimit call
(special version of test sysapp)<br>
- test that only works for bonus game codes<br>
- test that fails for non-valid ticket (outside of launchsetup/launch)<br>
[<br>
</body>
</html>