<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet href="tests.xsl" type="text/xsl"?>

<TEST>
<NAME>BATTERY</NAME>

<DESCRIPTION>
This test reports which (if any) batteries there are in the system.
In addition, for charging or discharging batteries, the test validates 
that the reported 'current capacity' properly increments/decrements 
in line with the charge/discharge state.
This test also stresses the entire battery state reporting codepath
in the ACPI BIOS, and any warnings given by the ACPI interpreter
will be reported.
</DESCRIPTION>

<FAIL>
<MSG>Battery present but undersupported - no state present</MSG>
<DETAILS>
Could not find /proc/acpi/battery/*/state.
</DETAILS>
</FAIL>

<FAIL>
<MSG>Battery %x claims it's discharging but no charge is used</MSG>
<DETAILS>
The battery capacity does not indicate discharging, even though the battery state does.
</DETAILS>
</FAIL>

<FAIL>
<MSG>Battery %x claims it's charging but no charge is added</MSG>
<DETAILS>
The battery capacity does not indicate charging, even though the battery state does.
</DETAILS>
</FAIL>

<WARN>
<MSG>Battery present but undersupported - no info present</MSG>
<DETAILS>
Could not find /proc/acpi/battery/*/info.
</DETAILS>
</WARN>

<WARN>
<MSG>Battery present but name or state unsupported</MSG>
<DETAILS>
Could not find all the info needed in file /proc/acpi/battery/*/info.
</DETAILS>
</WARN>

<INFO>
<MSG>No battery information present</MSG>
<DETAILS>
Could not find /proc/acpi/battery/*.
</DETAILS>
</INFO>

<INFO>
<MSG>Battery %x is model %y and is currently %z</MSG>
<DETAILS>
Gives the name, model and state info of the battery.
</DETAILS>
</INFO>

<PASS>
<MSG>Battery %x charge is decrementing as expected</MSG>
<DETAILS>
The battery capacity indicates discharging, this matches with the battery state.
</DETAILS>
</PASS>

<PASS>
<MSG>Battery %x charge is incrementing as expected</MSG>
<DETAILS>
The battery capacity indicates charging, this matches with the battery state.
</DETAILS>
</PASS>

</TEST>
