Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

From Bats github page, "Bats is a TAP-compliant testing framework for Bash. It provides a simple way to verify that the UNIX programs you write behave as expected."[1]

Bats was utilized as it provides a simple way for individuals to write simple Bash closures declared using the Bats DSL to test expected behavior of OpenXT.

...

When this feature is enabled there will be a "bats" command available in DOM0 along with all upstream tests installed in "/usr/libexeclib/bats-testsuite/{dom0,ndvm,uivm}". It is possible to execute all tests by passing the directory containing the desired tests one wants to run, e.g "bats /usr/libexeclib/bats-testsuite/dom0" will run all dom0 test scripts. To run an individual test script, pass the full path to the script, e.g. "bats /usr/libexeclib/bats-testsuite/dom0/access_control.bats".

...

There are more advance features available to assist in writing more complex test scenarios that can be found on Bats github page[1].


Info
iconNone

Image Added

Copyright 2016 by Apertus Solutions, LLC Created by Daniel P. Smith <dpsmith@apertussolutions.com> This work is licensed under the Creative Commons Attribution 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/.