Create a framework to run tests in the Autotest framework
The Autotest Charm creates a flexible method for running testcases inside the Autotest(autotest-local) Framework using juju actions.
The source for these tests are currently git://kernel.ubuntu.com/ubuntu/autotest but these can be changed to other git repos.
juju deploy autotest
Tests are execute using juju actions. Current available tests:
juju action do autotest/0 dbench
This returns an job id that can be used to wait for the completion of the test
Fetch the status of the test
juju action fetch job_id --wait (seconds)
The tests can also run via amulet. The amulet scripts in the autotest/tests directory execute the above steps after bootstrapping.
Example to run the dbench amulet
cd autotest/tests/ && ./200-dbench
(Execute 00-setup to ensure all packages needed for amulet are installed prior to the first run)
Results are moved to the $CHARM_DIR/tmp/results/$test-name after each run.