Changeset 3674


Ignore:
Timestamp:
Jun 20, 2013, 3:21:44 AM (2 years ago)
Author:
quozl
Message:

OLPC XO-4 - add attended autorun of manufacturing tests, optional code that does not proceed to next test until the previous test has passed, but no functional change in our current builds.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpu/x86/pc/olpc/via/mfgtest.fth

    r3609 r3674  
    119119;
    120120
     121: (mfg-test)  ( n -- )
     122   i set-current-sq
     123   refresh
     124   d# 1000 ms
     125   run-menu-item
     126;
     127
    121128: mfg-test-autorunner  ( -- )  \ Unattended autorun of all tests
    122129   #mfgcols #mfgtests +  #mfgcols  ?do
    123       i set-current-sq
    124       refresh
    125       d# 1000 ms
    126       run-menu-item
     130      i (mfg-test)
    127131      pass? 0= ?leave
    128132   loop
    129133;
     134
     135[ifdef] notdef  \ to be used by factory in final.fth
     136: mfg-test-runner  ( -- )  \ Attended autorun, each test retried until pass
     137   #mfgcols #mfgtests +  #mfgcols  ?do
     138      begin
     139         i (mfg-test)
     140         pass?
     141      until
     142   loop
     143;
     144patch mfg-test-runner mfg-test-autorunner autorun-mfg-tests
     145[then]
    130146
    131147icon: play.icon     rom:play.565
Note: See TracChangeset for help on using the changeset viewer.