Author: quozl Date: Thu Jun 20 03:21:44 2013 New Revision: 3674 URL: http://tracker.coreboot.org/trac/openfirmware/changeset/3674
Log: 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.
Modified: cpu/x86/pc/olpc/via/mfgtest.fth
Modified: cpu/x86/pc/olpc/via/mfgtest.fth ============================================================================== --- cpu/x86/pc/olpc/via/mfgtest.fth Sat Jun 15 03:57:17 2013 (r3673) +++ cpu/x86/pc/olpc/via/mfgtest.fth Thu Jun 20 03:21:44 2013 (r3674) @@ -118,16 +118,32 @@ #mfgtests++ ;
+: (mfg-test) ( n -- ) + i set-current-sq + refresh + d# 1000 ms + run-menu-item +; + : mfg-test-autorunner ( -- ) \ Unattended autorun of all tests #mfgcols #mfgtests + #mfgcols ?do - i set-current-sq - refresh - d# 1000 ms - run-menu-item + i (mfg-test) pass? 0= ?leave loop ;
+[ifdef] notdef \ to be used by factory in final.fth +: mfg-test-runner ( -- ) \ Attended autorun, each test retried until pass + #mfgcols #mfgtests + #mfgcols ?do + begin + i (mfg-test) + pass? + until + loop +; +patch mfg-test-runner mfg-test-autorunner autorun-mfg-tests +[then] + icon: play.icon rom:play.565 icon: quit.icon rom:quit.565