summaryrefslogtreecommitdiffstats
path: root/run
Commit message (Collapse)AuthorAgeFilesLines
* big reorg: prepare for generalizationPavel Raiskup2014-10-221-179/+0
| | | | | | | | | | | | Try to split into three separate components -> controller, tester, and 'tasks' (postgresql-tasks in our case). The controller component is the main part which is able to run the task remotely. Tester is more-like library for 'tasks' component (should be reusable on the raw git level). * controller: Almost separated component. * postgresql-tasks: Likewise. * tester: Likewise.
* tasks/upgrade: add basic upgrade testcasePavel Raiskup2014-10-201-0/+1
| | | | | | | | | | | | Based on pre-generated tarball with PostgreSQL data - download the tarball, unpack and perform 'postgresql-setup upgrade'. * lib_pgsql.sh (dtf_postgresql_unpack_remote_data): New function. (dtf_postgresql_upgrade_matrix): New function. Detect which data should we test against. * run: Define new global $dtf_dataurl. * tasks/upgrade-basic/config.sh: New testcase config. * tasks/upgrade-basic/runtest.sh: New testcase.
* controller: configuration cleanupPavel Raiskup2014-10-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | Better define configuration and provide examples. * controller: Unpack results to correct directory, load the configuration from new place, call run_remote with proper arguments, generate 'results.html' with result_stats script. * ansible/run_include: Adjust to better simulate run_remote. * ansible/fedora.yml: Adjust for fixed configuration. * run_remote: Likewise. Also small issues with option parsing fixed. * config.sh.template: Moved as config/config.sh.template. * config/config.sh.template: Copyyed from /config.sh.template, better documented options. * run: Fix typo - use 'while read i' instead of 'for i in'. * config/os/EXAMPLE.sh: New file - exmaple configuration. * private/os/EXAMPLE.yml: Likewise. * config/hosts.template: Likewise. * dist.include: New file with file patterns that should be distributed to test machine. * dist: Distribute only those files which are necessary. * config/.gitignore: New gitignore file.
* run: shell-lint some constructsPavel Raiskup2014-10-121-20/+22
| | | | | * run: Double-quote variables, do not use A && B || C construct, do not use backticks but rather use $().
* runner: create yml file per each taskPavel Raiskup2014-10-121-0/+5
| | | | * run (run): Create the yml file as TASK_ID.result.
* library/run: structured output in xmlPavel Raiskup2014-10-031-1/+21
| | | | | | | | | | Generate xml output easily parse-able by xsltproc. * lib.sh (dtf_resultxml_init, dtf_resultxml_finish, dtf_resultxml_cache, dtf_die): New functions. * run.sh: Include lib.sh globally. * run.sh (run): Reuse new lib api. * tasks/initdb_old/config.sh: Typo: use DTF_TEST_DESCRIPTION.
* Initial commitPavel Raiskup2014-10-031-0/+151
Initializet the lib/run structure and created two basic tests for PostgreSQL. * README: New file. * lib.sh: Likewise. * lib_pgsql.sh: Likewise. * run: Likewise. * tasks/initdb/config.sh: Likewise. * tasks/initdb/runtest.sh: Likewise. * tasks/initdb_old/config.sh: Likewise. * tasks/initdb_old/runtest.sh: Likewise.