xmltest(1)
π xmltest(1) β the manual page, but make it cute π
okay so bestie, welcome to xmltest(1) from the General Commands Manual, this is the whole thing and I'm gonna hold your hand through every single line of it, no skips, no cap. π«Ά
β¨ NAME β¨
xmltest β a test script that sends CIM-XML (via wbemcat) to a CIMOM and then compares what comes back to results you already know about. it's giving "diff but for CIM". π
πΈ SYNOPSIS πΈ
xmltest [FILE]
π¦ DESCRIPTION π¦
so like, xmltest is a script, and what it does is it takes a raw CIM-XML test file and sends it straight to the sfcb CIMOM (using wbemcat, obviously, she's the messenger here β¨), and then it compares the CIM-XML results that come back against a previously determined 'OK' result file β just to check whether what you got matches what you expected. vibe check on the output, fr fr.
here's the tea though, three whole scenarios, okay:
- If there is not yet an 'OK' file corresponding to the XML file, then
xmltestwill save the returned results as the new OK file, so you can use it later. first run = she's writing the lore. π - If the returned CIM-XML results don't match the existing 'OK' file, a new 'result' file gets generated containing the erroneous results. so you can go look at exactly what went wrong, icon behavior honestly.
- and if no
FILEis specified?xmltestwill just use all files with a.xmlextension in the current directory path. she does the whole squad at once, no favorites. π
π EXAMPLE π
when there's no 'OK' file yet, she makes one
If there is no 'OK' file to compare the returned CIM-XML results against, xmltest will generate one. β¨
# xmltest test/getclass.Linux_OperatingSystem.xml
Running test test/getclass.Linux_OperatingSystem.xml ... OK
Saving response as test/getclass.Linux_OperatingSystem.OK
when everything matches, she's proud of you
If the returned CIM-XML results match the existing 'OK' file, xmltest will signal that the test passed. π₯³
# xmltest test/getclass.Linux_OperatingSystem.xml
Running test test/getclass.Linux_OperatingSystem.xml ... Passed
when it does NOT match... π
If the returned CIM-XML results don't match the existing 'OK' file, xmltest will signal that the test failed and generate a 'result' file containing the erroneous results.
# xmltest test/getclass.Linux_OperatingSystem.xml
Running test test/getclass.Linux_OperatingSystem.xml ... FAILED
Check test/getclass.Linux_OperatingSystem.result for errors
lowkey devastating but at least you know where to look. go read that .result file bestie, it's literally holding the receipts. π
π§ PREREQUISITES π§
Requires wbemcat on the search path. that's it. that's the prerequisite. if she's not on your PATH, nothing is happening, periodt. π
π AUTHOR π
Dr. Gareth S. Bestor <bestor@us.ibm.com> β the originator, the blueprint, the main character of this script's story. π
π CONTRIBUTORS π
Adrian Schuur <schuur@de.ibm.com> β also here, also iconic, also ate. π«Ά
π BUGS π
okay so, keeping it 100 with you:
- Does not adequately deal with additional http headers/footers caused by chunking responses, which will result in false failures when comparing results to existing
"x.OK"files. so like... sometimes it'll say it failed and it's actually lying to you. not malicious, just confused. π - The SBLIM project maintains a mailing list to which you should direct all questions regarding
sfcb,sfcc,wbemcli, or any of the SBLIM providers. To subscribe to this mailing list visit:
http://lists.sourceforge.net/lists/listinfo/sblim-issues
- The SBLIM Project Bug tracking page can be found at:
http://sourceforge.net/tracker/?group_id=128809&atid=712784
π COPYRIGHT π
(C) Copyright IBM Corp. 2004, 2005
β AVAILABILITY β
The Small-Footprint CIM Broker (sfcb) is a part of the SBLIM project. The most recent version is available on the web at:
http://sblim.sourceforge.net/
π₯ SEE ALSO π₯
wbemcat(1)β the other half of this whole operation, go read her page too. iykyk. π
and that's the whole page bestie!! this was xmltest Version 1.4.9, dated August 2005, and you now officially know her better than most people know their own passwords. slay, go run some tests, and remember: green output is the goal, .result files are just lessons. πβ¨ππ¦πΈ
π¦ where this page comes from
- centos-stream 10: sblim-sfcb 1.4.9-36.el10 Β· EPL-1.0
- centos-stream 9: sblim-sfcb 1.4.9-27.el9 Β· EPL-1.0
- fedora 43: sblim-sfcb 1.4.9-37.fc43 Β· EPL-1.0
- fedora 43: sblim-sfcb 1.4.9-38.fc43 Β· EPL-1.0
- fedora 44: sblim-sfcb 1.4.9-39.fc44 Β· EPL-1.0
- fedora 44: sblim-sfcb 1.4.9-40.fc44 Β· EPL-1.0
- ubuntu jammy: sfcb-test 1.4.9-0ubuntu7
- ubuntu noble: sfcb-test 1.4.9-0ubuntu10
- ubuntu resolute: sfcb-test 1.4.9-0ubuntu10
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms