summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * postgresql-tests/config.sh: Data dir is versioned now.HEADmasterPavel Raiskup2015-11-131-2/+2
|
* * postgresql-tests/gen-data/generate (generate_tasks): GeneratePavel Raiskup2015-10-201-0/+1
| | | | | also file having basic information about installed postgresql package. This is only human-readable ATM.
* generate-data: fixes needed for dockerPavel Raiskup2015-10-202-5/+43
| | | | | | | | | | Because we usually mount /var/lib/pgsql/data into container, scripts would fail on 'rm -rf /var/lib/pgsql/data'. * generate (GEN_DATA): Use $PGHOME/data/data. (single_task): Generate tarball from proper datadir. * prep: Use 'dnf' when necessary. Use /var/lib/pgsql/data/data directory.
* * postgresql-tests/lib_pgsql.shPavel Raiskup2015-06-081-7/+16
| | | | | (dtf_postgresql_upgrade_matrix): Fix the matrix mainly for f22 and f23.
* tester: document 'run --dist' optionPavel Raiskup2015-06-081-0/+1
| | | | * tester/run (show_help): Mention --dist.
* controller: add --separate-volume option for dtf-get-machinePavel Raiskup2015-06-081-4/+16
| | | | | | | | | | TODO: deal with volume removal after VM termination? * controller/bin/dtf-get-machine.in: Option parsing code added. ($opt_separate_volume): New global. (show_help): Describe --separate-volume option. (boot): Use --block-device instead of --image option for nova boot if --separate-volume is used.
* postgresql-tests: test upstream testsuitePavel Raiskup2014-11-242-0/+39
| | | | | | | * postgresql-tests/lib_pgsql.sh (dtf_postgresql_initdb): New initdb wrapper. * postgresql-tests/tasks/upstream-testsuite/runtest.sh: New testcase.
* controller: better logging feature for dtf-controllerPavel Raiskup2014-11-241-10/+73
| | | | | | | | | | | | | | | Use logging wrapper functions and log into dedicated file per sub-task (apart from STDERR/STDOUT as usual). * controller/bin/dtf-controller (log_info, log_error, log_die) (log_any): New logging functions. ($log_procid, $log_logfile, @log_buffer): New logging related variables. (load_runfile): Remove old comment. (subcommand): Use log_info instead of print. (child_task): Open child's logging file. Better parse check $run content. (main): Use log_info instead of print.
* controller: option checking in dtf-run-remotePavel Raiskup2014-11-241-0/+8
| | | | | * controller/bin/dtf-run-remote.in: Check that --setup-playbook and --taskdir do point to existing files.
* controller: fix remote-run handlingPavel Raiskup2014-11-202-1/+12
| | | | | | | * controller/bin/dtf-return-machine.in: Do not return machines which were faked (by DTF_GET_MACHINE_FAKE_IP). * controller/bin/dtf-run-remote.in: Do not lowercase all option arguments.
* postgresql-odbc-tests: fix working with %_libdirPavel Raiskup2014-11-201-8/+20
| | | | | * postgresql-odbc-tests/tasks/upstream-testsuite/runtest.sh: Skip the unused /usr/lib or /usr/lib64 properly.
* postgresql-odbc-tests: new testsuitePavel Raiskup2014-11-203-0/+32
| | | | | | | * postgresql-odbc-tests/libdtf: New symlink. * postgresql-odbc-tests/run: Likewise. * postgresql-odbc-tests/tasks/upstream-testsuite/runtest.sh: New file.
* controller: make the system setup configurablePavel Raiskup2014-11-205-31/+55
| | | | | | | | | | | | | | | | | | | | Add the --setup-playbook option for dtf-run-remote which allows us to submit configuration (or any) playbook which will be included into the default one, executed before actual testing. * controller/Makefile.am: s/fedora.yml/default.yml/. * controller/bin/dtf-controller.in: Call dtf-remote-run with --setup-playbook option. * controller/bin/dtf-run-remote.in: Fix the option parsing. Add new option --setup-playbook. (error): New function. (die): Use '$*' instead of '*@'. * controller/share/dtf-controller/ansible/playbooks/fedora.yml: Rename to default.yml. * controller/share/dtf-controller/ansible/playbooks/default.yml: Moved from fedora.yml. * controller/share/--/--/playbooks/include/prepare-testenv.yml: Removed hard-wired configuration.
* tester/run: fix typosPavel Raiskup2014-11-191-3/+3
| | | | | | * tester/run: s/$@/$*/. ($DTF_RESULT_SUCCES): Rename to $DTF_RESULT_SUCCESS. (info): s/SUCCES/SUCCESS/.
* tester/run: fix --listonly optionPavel Raiskup2014-11-061-4/+11
| | | | | | | | | | Do not try to put some output into YML file when we are only listing. That could cause 'Permision denied' errors even if the permission is actually not needed. * tester/run (__result_yml_print): New local function. (die, run_test): Call __result_yml_print instead of hand touching the yml file.
* dtf-run-remote: make sure basename will successPavel Raiskup2014-11-061-1/+1
| | | | | | * controller/bin/dtf-run-remote.in (tarball): First process the $opt_taskdir with readlink -f to get some real path (instead of '.' e.g.) and then call basename.
* postgresql-tests: add test for PGSETUP_INITDB_OPTIONSPavel Raiskup2014-11-062-0/+33
| | | | | | * lib_pgsql.sh (dtf_postgresql_phase_cleanup): Remove all logs. (dtf_postgresql_checkphase): Fail if some logs are present. * tasks/upgrade/locale/changed/runtest.sh: New file.
* postgresql-tasks: rename once morePavel Raiskup2014-11-064-0/+0
| | | | | | | | * tasks/initdb: Move to tasks/initdb/basic. * tasks/initdb_old: Move to tasks/initdb/old-syntax. * tasks/upgrade-basic: Moved to tasks/upgrade/basic. * tasks/upgrade-locale-utf8-syntax: Moved to tasks/upgrade/locale/utf8-syntax.
* postgresql-tasks: rename testsPavel Raiskup2014-11-062-2/+2
| | | | | | | * postgresql-tests/tasks/upgrade-basic/runtest.sh: Sync the test name with directory name. * postgresql-tests/tasks/upgrade-utf8-syntax/runtest.sh: Rename to postgresql-tests/tasks/upgrade-locale-utf8-syntax/runtest.sh.
* controller/README: better wordingPavel Raiskup2014-11-051-5/+6
| | | | * controller/README: Reword something, typo-fixes.
* controller/README: reworked from top-srcdir READMEPavel Raiskup2014-11-055-57/+155
| | | | | | | | | | | | * README: Made as symlink to controller/README. * controller/Makefile.am: Distribute the README and configuration file template. * controller/README: Reworked version of README following current API. * controller/doc/dtf-controller/OSID.sh.template: New configuration template. * tester/dtf-prepare-testsuite: Prepare also basic taskdir structure.
* controller: add basic testsuitePavel Raiskup2014-11-055-6/+105
| | | | | | | | | | | | | Copied from 'postgresql-setup' package. Also do some 'make dist' fixes. * controller/Makefile.am: Use $TEST_GEN_FILES_LIST. Also create the share/ directory during build. * controller/configure.ac: Initialize testsuite. * controller/tests/Makefile.am: Bureaucracy for testsuite. * controller/tests/atlocal.in: Likewise. * controller/tests/testsuite.at: Add two tests copied from postgresql-setup project.
* controller: fix 'make distcheck' and 'make dist'Pavel Raiskup2014-11-051-15/+40
| | | | | * Makefile.am: Make sure all sources and data files are distributed.
* tester/run: avoid useless error outputPavel Raiskup2014-11-051-1/+1
| | | | | | * tester/run (die): Do not throw 'permission denied' message if the die was called too early (and the result dir is still not created).
* controller: bash - fail in case of not handled optionPavel Raiskup2014-11-042-1/+12
| | | | | | * bin/dtf-get-machine.in: Exit if option was parsed but was not handled explicitly by case statement. * bin/dtf-run-remote.in: Likewise.
* controller: shutdown VM when run was successfulPavel Raiskup2014-11-046-2/+70
| | | | | | | | | | | | | | | | | | New script 'dtf-return-machine' returns the VM to OpenStack based on its public IP. In future, this may be abstracted to any VM provider (or VM pool or whatever), but that requires also some IP <=> VM mapping shared between dtf-get-machine and dtf-return-machine. * controller/.gitignore: Ignore new scripts. * controller/Makefile.am: Build new scripts. * controller/bin/dtf-return-machine.in: New script for VM * deletion. * controller/libexec/dtf-nova.in: New wrapper around 'nova' command, showing only data output where fields are separated by tabulator. * controller/share/dtf-controller/ansible/playbooks/fedora.yml: Finally call dtf-return-machine after successful test run.
* controller/dtf-controller: saner stdout logPavel Raiskup2014-11-031-1/+1
| | | | * controller/bin/dtf-controller.in: Print '\n' after error msg.
* controller/dtf-wait-for-ssh: avoid passwordsPavel Raiskup2014-11-031-1/+2
| | | | | | | | | | While polling sshd server on remote host, do not use PasswordAuthentication even if the server allows that. That causes problem if the new VM already started but cloud-init was not-yet able to set the authorized_keys file. * controller/libexec/dtf-wait-for-ssh: Add the PasswordAuthentication=no ssh option.
* dtf-wait-for-ssh: s/while [ 1 ]/while true/Pavel Raiskup2014-11-031-2/+2
| | | | * controller/libexec/dtf-wait-for-ssh: Syntax lint.
* controller/dtf-get-machine: make nova boot fail fatalPavel Raiskup2014-11-031-2/+1
| | | | | * controller/bin/dtf-get-machine.in: Do not try to check for IP address if 'nova boot' command failed.
* controller: remove old unused scriptPavel Raiskup2014-11-031-73/+0
| | | | * controller/controller: Removed.
* controller: commit results even if 'run' failedPavel Raiskup2014-10-302-4/+7
| | | | | | | * controller/bin/dtf-controller.in (child_task): Do not exit if dtf-run-remote failed. This allows us commit at least log files. * controller/libexec/dtf-commit-results.in: Do not try to extract dtf.tar.gz archive if it does not exist (dtf-run-remote fail).
* controller/result-template: hyper-linkPavel Raiskup2014-10-271-4/+4
| | | | | * share/dtf-controller/results-stats-templates/html.tmpl: Fields of the result table are now hyper-linked with particular results.
* controller: typofixPavel Raiskup2014-10-271-1/+1
| | | | | * controller/bin/dtf-controller.in: Really generate html instead of xml.
* controller: better connect with other utilitiesPavel Raiskup2014-10-275-26/+59
| | | | | | | | | | | | | | | | | * controller/bin/dtf-controller.in (subcommand): Generate stdout and stderr files separately. (child_task): Generate '*.err' and '*.out' logs for subcommands. Call dtf-run-remote with --distro/--distro-version options. Call the dtf-result-stats finally and save its output to results.html. (main): Simple debugging info and comment adjusting. * controller/libexec/dtf-commit-results.in: Tak three arguments now. * controller/libexec/dtf-result-stats.in: Better read the 'tester/run' output. * controller/share/dtf-controller/ansible/playbooks/fedora.yml: Run the 'run --force' instead of 'run' on remote host. * controller/share/dtf-controller/results-stats-templates/html.tmpl React on exit_status 2.
* tester/run: fix exit status handlingPavel Raiskup2014-10-271-1/+13
| | | | | * tester/run: Define 0, 1 and 2 exit status. Also handle SKIP test-case exit status.
* controller/dtf-run-remote: start VM via dtf-get-machinePavel Raiskup2014-10-273-22/+24
| | | | | | | | | | | | | | | .. rather than by ansible nova_compute module directly. Allows me implement more variability in VM handling. * controller/bin/dtf-get-machine.in: Add --quiet option which causes that only allocated IP is shown. Add also DTF_GET_MACHINE_FAKE_IP variable usable for faster debugging; when set, dtf-get-machine prints its content to standard output without allocating new VM. * controller/bin/dtf-run-remote.in: Add -v (verbose) option to ansible-playbook call to get more verbose output. * controller/share/dtf-controller/ansible/playbooks/fedora.yml: Use dtf-get-machine. Also remove creds file requirement.
* controller: new perl wrapperPavel Raiskup2014-10-274-2/+142
| | | | | | | | | | | | | Controller is able to read simple YAML configuration file with list of task to be performed in parallel (the task actually are run the testsuite remotely, commit results to DB, count statistics and upload results). * controller/bin/dtf-controller.in: New template for binary. * controller/libexec/dtf-commit-results.in: Copy whole result directory instead of 'dtf' subdir only. * controller/.gitignore: Ignore new binary. * controller/Makefile.am: Build dtf-commit-results.
* tester: missing FAIL output from error handlingPavel Raiskup2014-10-241-0/+1
| | | | | * tester/run: Handle the "default" return value of 'run()' by throwing '[ FAIL ]' string to stdout.
* postgresql-tests: use different internal data mirrorPavel Raiskup2014-10-241-1/+1
| | | | * postgresql-tests/config.sh: Use office accessible IP.
* tester/run: better define APIPavel Raiskup2014-10-2410-109/+146
| | | | | | | | | | | | | | | | | | | | | | | Define test return values and its calling. Do not split the testcase into configuration and running script, rather use one file and wrap the script by run() method. This is still very easy to run without running whole testsuite. * tester/run (DTF_RESULT_*): Return values API. (run): Rename to run_test. Make the function more readable, don't generate xml results (not yet used anyway). * postgresql-tests/config.sh: Do not source the per-testsuite library directly as the configuration script config.h is sourced even by 'run' script itself for --dist option (for that action we actually do not need per-testsuite libraries). * postgresql-tests/tasks/initdb/runtest.sh: New API used. * postgresql-tests/tasks/initdb_old/runtest.sh: Likewise. * postgresql-tests/tasks/upgrade-basic/runtest.sh: Likewise. * postgresql-tests/tasks/upgrade-utf8-syntax/runtest.sh: Likewise. * postgresql-tests/tasks/upgrade-basic/config.sh: Remove. * postgresql-tests/tasks/initdb/config.sh: Remove. * postgresql-tests/tasks/initdb_old/config.sh: Remove. * postgresql-tests/tasks/upgrade-utf8-syntax/config.sh: Remove.
* controller: .gitignore fixPavel Raiskup2014-10-241-0/+3
| | | | | | I had badly configured git so I missed those before. * controller/.gitignore: Add autoconf/automake related ignores.
* controller/dtf-get-machine: use actual configurationPavel Raiskup2014-10-241-2/+6
| | | | | * controller/bin/dtf-get-machine.in: Use $HOME/.dtf/.. rather than $srcdir/config/...
* controller/build: use configure --prefix=`pwd`Pavel Raiskup2014-10-241-1/+1
| | | | | | | | The directory structure in this project is done so that you can run directly from dir (after ./build). * controller/build: Use --prefix="$(pwd)" instead of --with-git which was never implemented.
* controller: autoconfiscate #2Pavel Raiskup2014-10-2410-29/+49
| | | | | | | | | | | | | | | | | | | | | | | | Move 'results_stats' and 'commit_results' binaries into libexec and adjust appropriately. Also html template is now in $pkgdatadir. * .gitignore: Add tags/ChangeLog generated files. * README: Just some random notes. Needs to be rewritten anyway. * controller/.gitignore: Add newly 'make'd files. * controller/Makefile.am: Generate libexec/bin files. * controller/commit_results: Move to controller/libexec as dtf-result-stats.in. * controller/configure.ac: Also substitute resulttemplatedir. * controller/etc/dtf.conf.d/config.sh.template: The DTF_DATABASE was misleading - use rather DTF_DATABASE_DEFAULT. * controller/libexec/dtf-commit-results.in: Moved from controller/commit_results. * controller/result_stats: Moved to controller/libexec/dtf-result-stats.in. * controller/libexec/dtf-result-stats.in: Moved from controller/result_stats. * controller/result_templates/html.tmpl: Moved to controller/share/dtf-controller/results-stats-templates/html.tmpl.
* controller/dtf-run-remote: fix problems with default OS IDPavel Raiskup2014-10-232-7/+8
| | | | | | | | | | | | Rename the config vairable from DTF_OPENSTACK_ID to DTF_OPENSTACK_DEFAULT_ID to better match the name with its purpose. * controller/bin/dtf-run-remote.in: Use DTF_OPENSTACK_DEFAULT_ID instead of DTF_OPENSTACK_ID. * controller/config/config.sh.template: Moved. * controller/etc/dtf.conf.d/config.sh.template: Document renamed variable on new place.
* controller: autoconfiscatePavel Raiskup2014-10-2318-34/+148
| | | | | | | | | | | | | | | | | | | | | | | First part of converting controller to autoconf/automake solution. * .gitignore: New gitignore; autotools ignores. * Makefile.am: New file. * get_machine: Renamed to template bin/dtf-get-machine.in. * bin/dtf-get-machine.in: New template based on get_machine. * run_remote: Renamed to template bin/dtf-run-remote.in. * bin/dtf-run-remote.in: New binary template from run_remote. * build: New bootstrap like helper script (git-only). * configure.ac: New file. * etc/dtf.sh.in: Likewise. * ansible_helpers/wait-for-ssh: Renamed to libexec/dtf-wait-for-ssh. * share/dtf-controller/parse_credsfile: Reworked script for parsing OS credentials. * parse_credsfile: Moved to share/dtf-controller. * libexec/dtf-wait-for-ssh: Renamed from wait-for-ssh. * ansible/*: Moved into share/dtf-controller/ansible/*. * share/dtf-controller/ansible/vars/generated-vars.yml.in: New template file exporting configure-time variables into playbooks.
* controller/get_machine: allow specifying name of VMPavel Raiskup2014-10-221-3/+5
| | | | * get_machine: New option --name and variable $opt_name.
* controller/commit_results: new helper scriptPavel Raiskup2014-10-221-0/+24
| | | | | | | .. to reuse remotely generated results and commit them to local controller-database. * commit_results: New script.
* postgresql-tests: data "mirroring" supportPavel Raiskup2014-10-224-3/+19
| | | | | | | | | | | | | | | Turns out that our OpenStack has poor connectivity to Brno so I added data mirror on one VM on OS1. * postgresql-tests/lib_pgsql.sh (dtf_postgresql_data_mirror): New PostgreSQL related API. * postgresql-tests/config.sh ($dtf_dataurl): Removed PG API variable. ($dtf_dataurls): Substitution for $dtf_dataurl; Array of possible data URLs. * postgresql-tests/tasks/upgrade-basic/runtest.sh: Reuse new PG API^. * postgresql-tests/tasks/upgrade-utf8-syntax/runtest.sh: Likewise.