icinga2/test/jenkins
Johannes Meyer de79c1232d Add verbosity levels to the vm-test-runner and add more debug output 2014-02-20 11:15:21 +01:00
..
files Add verbosity levels to the vm-test-runner and add more debug output 2014-02-20 11:15:21 +01:00
README Update readme file 2013-12-16 15:37:38 +01:00
apache_state.test Refactor output of all vm-tests 2014-02-14 16:05:58 +01:00
bootstrap-vm.sh Fix test-vm bootstrapping 2014-02-05 14:22:57 +01:00
checkresult.test Add verbosity levels to the vm-test-runner and add more debug output 2014-02-20 11:15:21 +01:00
eventhandler.test Add verbosity levels to the vm-test-runner and add more debug output 2014-02-20 11:15:21 +01:00
external_commandpipe.test Let all vm-tests output filesystem paths when they work with them 2014-02-20 11:15:21 +01:00
external_commands.test Add verbosity levels to the vm-test-runner and add more debug output 2014-02-20 11:15:21 +01:00
icinga2_state.test Refactor output of all vm-tests 2014-02-14 16:05:58 +01:00
ido_mysql.test Refactor output of all vm-tests 2014-02-14 16:05:58 +01:00
ido_pgsql.test Refactor output of all vm-tests 2014-02-14 16:05:58 +01:00
livestatus_socket.test Let all vm-tests output filesystem paths when they work with them 2014-02-20 11:15:21 +01:00
logfile.test Let all vm-tests output filesystem paths when they work with them 2014-02-20 11:15:21 +01:00
mysql_state.test Refactor output of all vm-tests 2014-02-14 16:05:58 +01:00
nsca-ng.test Refactor output of all vm-tests 2014-02-14 16:05:58 +01:00
pgsql_state.test Refactor output of all vm-tests 2014-02-14 16:05:58 +01:00
pidfile.test Let all vm-tests output filesystem paths when they work with them 2014-02-20 11:15:21 +01:00
run_tests.conf Fix invalid testing configuration 2014-02-05 14:22:58 +01:00
run_tests.py Add verbosity levels to the vm-test-runner and add more debug output 2014-02-20 11:15:21 +01:00
run_tests.sh Add verbosity levels to the vm-test-runner and add more debug output 2014-02-20 11:15:21 +01:00
statusdata.test Let all vm-tests output filesystem paths when they work with them 2014-02-20 11:15:21 +01:00

README

Set of scripts to set up and test a virtual demo machine
========================================================

This directory contains a few scripts primarily used by build.icinga.org.

* bootstrap-vm.sh
  Ensures that all required software is installed and its configuration
  is applied to the VM. (Usually not of interest for the typical user.)

* run_tests.sh
  This is a wrapper script intended to be ran manually by a user. (Note
  that you need to start this project's vagrant box for this to work!)

* run_tests.py
  The actual test-runner. Accepts two options (-C|--config, -O|--output) and
  expects one or more filenames or -patterns that should be run on the VM.

* run_tests.conf
  The default configuration file for the test-runner. (Used when running
  the wrapper script or when no custom configuration file is passed to the
  test-runner.)

  Format:
  - commands: This section is mandatory and contains the commands to use.
  - settings: This section is mandatory and defines settings that are applied to
              all tests.
  - setups: This section is optional and contains setup routines that should
            be ran before (setup) and after (teardown) any matching test is
            executed. (Note that only one setup can be effective at a time.)

            Example:
            "^v[1-9]\.test$": {
                "setup": {
                    "copy": ["source >> target"], // Files that should be copied.
                                                  // Note that these files remain
                                                  // if not removed explicitly
                    "clean": ["target"], // Files to delete from the system
                    "exec": ["cmd1", "cmd2"] // Commands to execute on the system
                },
                "teardown": {
                    // The same kind of instructions as above can be added here
                }
            }