From Fedora Project Wiki
Overview
The hooks/
directory in the autoqa
source tree contains the hooks that AutoQA knows about. A hook has five main parts:
README
- describes the event itself and the required (and optional) arguments that will be passed along to the tests.
hook.py
- python code that is used to parse the test arguments, as described in the
README
file. This is the formal definition of the test arguments.
- python code that is used to parse the test arguments, as described in the
testlist
- contains the list of test names that will be launched when this hook is triggered.
control.template
andtest_class_template.py
- generic templates for creating new tests that use this hook. See below for more information on writing new tests.
- Watcher
- This is the code that watches for the event and launches the
autoqa
harness with the arguments described inREADME
andhook.py
. - Currently, all existing watchers are scripts that get run periodically by
crond
to check to see if the event has occurred since the last time it was run. If so, it launchesautoqa
. - In the future this will change to a daemon that waits for notifications about the event - see the Messaging SIG's Publish Subscribe Notification Proposal for further info about that.
- This is the code that watches for the event and launches the