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

<TEST>
<NAME>DMI</NAME>

<DESCRIPTION>
This test checks the DMI/SMBIOS tables for common errors.  It execute 'dmidecode' and parses the output for commong errors.
</DESCRIPTION>

<FAIL>
<MSG>Cannot find dmidecode file</MSG>
<DETAILS>
Can't locate /usr/sbin/dmidecode.
</DETAILS>
</FAIL>

<FAIL>
<MSG>Error opening dmidecode command</MSG>
<DETAILS>
Can't execute /usr/sbin/dmidecode.
</DETAILS>
</FAIL>

<FAIL>
<MSG>No SMBIOS nor DMI entry point found</MSG>
<DETAILS>
Found line: "No SMBIOS nor DMI entry point found, sorry".
</DETAILS>
</FAIL>

<FAIL>
<MSG>Incorrect DMI structures count</MSG>
<DETAILS>
Found line: "Wrong DMI structures count".
</DETAILS>
</FAIL>

<FAIL>
<MSG>Incorrect DMI structures length</MSG>
<DETAILS>
Found line: "Wrong DMI structures length:".
</DETAILS>
</FAIL>

<FAIL>
<MSG>Out of spec value found</MSG>
<DETAILS>
Found line: "<OUT OF SPEC>".
</DETAILS>
</FAIL>

<FAIL>
<MSG>Bad index value found</MSG>
<DETAILS>
Found line: "<BAD INDEX>".
</DETAILS>
</FAIL>

<FAIL>
<MSG>Incorrect checksum found</MSG>
<DETAILS>
Found line: "Bad checksum! Please report.".
</DETAILS>
</FAIL>

<FAIL>
<MSG>Template serial number not updated</MSG>
<DETAILS>
Found lines: "Serial Number:" & "0123456789".
</DETAILS>
</FAIL>

<FAIL>
<MSG>Template Asset Tag not updated</MSG>
<DETAILS>
Found lines: "Asset Tag" & "0123456789".
</DETAILS>
</FAIL>

<FAIL>
<MSG>Template UUID number not updated</MSG>
<DETAILS>
Found lines: "UUID:" & "0A0A0A0A-0A0A-0A0A-0A0A-0A0A0A0A0A0A.".
</DETAILS>
</FAIL>

<FAIL>
<MSG>Template value not updated</MSG>
<DETAILS>
Found line: "To Be Filled By O.E.M.".
</DETAILS>
</FAIL>

<PASS>
<MSG>Successfully found no errors in SMBIOS/DMI</MSG>
<DETAILS>
No errors were found in the SMBIOS/DMI.
</DETAILS>
</PASS>

</TEST>
