Olpc-runin-tests: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
No edit summary
Line 6: Line 6:


Logs are written to /runin/logdir, which is later packed into a .tar.gz. fail.log is the single log which you can quickly check for success or failure; the file is empty on success.
Logs are written to /runin/logdir, which is later packed into a .tar.gz. fail.log is the single log which you can quickly check for success or failure; the file is empty on success.

== For developers ==

Source:
* git://dev.laptop.org/projects/runin
* http://dev.laptop.org/git/projects/runin

Current maintainer: James Cameron

Questions and contributions should be sent to the devel [[Mailing lists|mailing list]].


== One-off Test ==
== One-off Test ==
Line 43: Line 33:


Runin is being used for testing stability of suspend and resume. See [[XO-1.75/Kernel/Runin]].
Runin is being used for testing stability of suspend and resume. See [[XO-1.75/Kernel/Runin]].

== For developers ==

Source:
* git://dev.laptop.org/projects/runin
* http://dev.laptop.org/git/projects/runin

Current maintainer: James Cameron

Questions and contributions should be sent to the devel [[Mailing lists|mailing list]].

Revision as of 04:29, 18 June 2012

olpc-runin-tests is a collection of tests for the XO-1.5 and XO-1.75 that are run during late stages of laptop production.

(It might also be useful for in-field diagnostics. It is designed to test the hardware as well as the software installation, but is not designed to cover all software functions. The software testing is not intended to discover and report software failures, since these would unnecessarily interrupt production. Care should be taken not to use it for software testing without understanding the limitations.)

By default, the tests are run in a loop for several hours. If any test fails at any point, the system is shutdown.

Logs are written to /runin/logdir, which is later packed into a .tar.gz. fail.log is the single log which you can quickly check for success or failure; the file is empty on success.

One-off Test

To repeat the RUNIN tests on a shipped laptop;

touch /runin/force
reboot

After the test run, look in /runin/logdir for the output.

If the file /runin/logdir/fail.log is present and contains text, then the test run failed.

Repeating Tests

At the firmware ok prompt, set the TS manufacturing tag to RUNIN:

ok delete-tag TS
ok add-tag TS RUNIN

Boot the system as normal, and instead of the normal boot routine, the runin tests will kick in.

When done, use the ok prompt to reset the TS tag to SHIP:

ok delete-tag TS
ok add-tag TS SHIP

Kernel Suspend and Resume Stability Testing

Runin is being used for testing stability of suspend and resume. See XO-1.75/Kernel/Runin.

For developers

Source:

Current maintainer: James Cameron

Questions and contributions should be sent to the devel mailing list.