bareos: master e8c9b1a0

Author Committer Branch Timestamp Parent
pstorz pstorz master 2019-02-25 19:29 master 7d31bf68 Pending
Changeset regress: first commit to modernize regress tests

We will move the exising "regression" tests test by test
into the "systemtests" directory finally removing the
regress folder completely.

The systemtests tests are part of the cmake project
and so can be executed with "make test" directly.

The tests run on the compiled binaries inside of the
CMAKE_BINARY_DIR without needing a "make install" at all.

The idea is to have an individual folder inside of systemtests
for every test that has the tests name.

The first example for how that works is the
systemtests/tests/backup-bareos-test folder.

- Each test folder needs to be indipendent from the other, so that
  ctest can execute each of the tests in parallel.

- The full configuration for each test is stored in etc/bareos
  as .conf.in template files that are edited by cmake during the cmake
  run.

- each test has a "testrunner" script file that executes the test
  itself.

- The "testrunner" sources an individual environment shell script that
  contains the variables that are used for this test.
mod - CMakeLists.txt Diff File
mod - core/cmake/BareosSetVariableDefaults.cmake Diff File
mod - core/scripts/bareos-config-lib.sh.in Diff File
mod - core/scripts/bareos-config.in Diff File
mod - core/scripts/bareos-ctl-dir.in Diff File
mod - core/scripts/bareos-ctl-fd.in Diff File
mod - core/scripts/bareos-ctl-funcs Diff File
mod - core/scripts/bareos-ctl-sd.in Diff File
mod - core/scripts/bareos.in Diff File
mod - core/src/cats/create_bareos_database.in Diff File
mod - core/src/cats/drop_bareos_database.in Diff File
mod - core/src/cats/drop_bareos_tables.in Diff File
mod - core/src/cats/grant_bareos_privileges.in Diff File
mod - core/src/cats/make_bareos_tables.in Diff File
mod - core/src/cats/update_bareos_tables.in Diff File
add - systemtests/CMakeLists.txt Diff File
add - systemtests/data/flat-c.tgz Diff File
add - systemtests/data/index.txt Diff File
add - systemtests/data/po.tgz Diff File
add - systemtests/data/small.tgz Diff File
add - systemtests/environment.in Diff File
add - systemtests/scripts/cleanup Diff File
add - systemtests/scripts/diff.pl.in Diff File
add - systemtests/scripts/functions Diff File
add - systemtests/scripts/setup Diff File
add - systemtests/tests/backup-bareos-test/etc/bareos/bareos-dir.d/catalog/MyCatalog.conf.in Diff File
add - systemtests/tests/backup-bareos-test/etc/bareos/bareos-dir.d/client/bareos-fd.conf.in Diff File
add - systemtests/tests/backup-bareos-test/etc/bareos/bareos-dir.d/console/bareos-mon.conf.in Diff File
add - systemtests/tests/backup-bareos-test/etc/bareos/bareos-dir.d/director/bareos-dir.conf.in Diff File
add - systemtests/tests/backup-bareos-test/etc/bareos/bareos-dir.d/fileset/Catalog.conf Diff File
add - systemtests/tests/backup-bareos-test/etc/bareos/bareos-dir.d/fileset/Catalog.conf.in Diff File
add - systemtests/tests/backup-bareos-test/etc/bareos/bareos-dir.d/fileset/LinuxAll.conf Diff File
add - systemtests/tests/backup-bareos-test/etc/bareos/bareos-dir.d/fileset/LinuxAll.conf.in Diff File
add - systemtests/tests/backup-bareos-test/etc/bareos/bareos-dir.d/fileset/SelfTest.conf Diff File
add - systemtests/tests/backup-bareos-test/etc/bareos/bareos-dir.d/fileset/SelfTest.conf.in Diff File
add - systemtests/tests/backup-bareos-test/etc/bareos/bareos-dir.d/fileset/Windows All Drives.conf Diff File
add - systemtests/tests/backup-bareos-test/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
add - systemtests/tests/backup-bareos-test/etc/bareos/bareos-dir.d/job/RestoreFiles.conf.in Diff File
add - systemtests/tests/backup-bareos-test/etc/bareos/bareos-dir.d/job/backup-bareos-fd.conf.in Diff File
add - systemtests/tests/backup-bareos-test/etc/bareos/bareos-dir.d/jobdefs/DefaultJob.conf.in Diff File
add - systemtests/tests/backup-bareos-test/etc/bareos/bareos-dir.d/messages/Daemon.conf.in Diff File
add - systemtests/tests/backup-bareos-test/etc/bareos/bareos-dir.d/messages/Standard.conf.in Diff File
add - systemtests/tests/backup-bareos-test/etc/bareos/bareos-dir.d/pool/Differential.conf Diff File
add - systemtests/tests/backup-bareos-test/etc/bareos/bareos-dir.d/pool/Full.conf Diff File
add - systemtests/tests/backup-bareos-test/etc/bareos/bareos-dir.d/pool/Incremental.conf Diff File
add - systemtests/tests/backup-bareos-test/etc/bareos/bareos-dir.d/pool/Scratch.conf Diff File
add - systemtests/tests/backup-bareos-test/etc/bareos/bareos-dir.d/profile/operator.conf Diff File
add - systemtests/tests/backup-bareos-test/etc/bareos/bareos-dir.d/schedule/WeeklyCycle.conf Diff File
add - systemtests/tests/backup-bareos-test/etc/bareos/bareos-dir.d/schedule/WeeklyCycleAfterBackup.conf Diff File
add - systemtests/tests/backup-bareos-test/etc/bareos/bareos-dir.d/storage/File.conf.in Diff File
add - systemtests/tests/backup-bareos-test/etc/bareos/bareos-fd.d/client/myself.conf.in Diff File
add - systemtests/tests/backup-bareos-test/etc/bareos/bareos-fd.d/director/bareos-dir.conf.in Diff File
add - systemtests/tests/backup-bareos-test/etc/bareos/bareos-fd.d/director/bareos-mon.conf.in Diff File
add - systemtests/tests/backup-bareos-test/etc/bareos/bareos-fd.d/messages/Standard.conf Diff File
add - systemtests/tests/backup-bareos-test/etc/bareos/bareos-sd.d/device/FileStorage.conf.in Diff File
add - systemtests/tests/backup-bareos-test/etc/bareos/bareos-sd.d/director/bareos-dir.conf.in Diff File
add - systemtests/tests/backup-bareos-test/etc/bareos/bareos-sd.d/director/bareos-mon.conf.in Diff File
add - systemtests/tests/backup-bareos-test/etc/bareos/bareos-sd.d/messages/Standard.conf Diff File
add - systemtests/tests/backup-bareos-test/etc/bareos/bareos-sd.d/storage/bareos-sd.conf.in Diff File
add - systemtests/tests/backup-bareos-test/etc/bareos/bconsole.conf.in Diff File
add - systemtests/tests/backup-bareos-test/etc/bareos/tray-monitor.d/client/FileDaemon-local.conf.in Diff File
add - systemtests/tests/backup-bareos-test/etc/bareos/tray-monitor.d/director/Director-local.conf.in Diff File
add - systemtests/tests/backup-bareos-test/etc/bareos/tray-monitor.d/monitor/bareos-mon.conf.in Diff File
add - systemtests/tests/backup-bareos-test/etc/bareos/tray-monitor.d/storage/StorageDaemon-local.conf.in Diff File
add - systemtests/tests/backup-bareos-test/testrunner Diff File
add - systemtests/tests/backup-bareos-test2/etc/bareos/bareos-dir.d/catalog/MyCatalog.conf.in Diff File
add - systemtests/tests/backup-bareos-test2/etc/bareos/bareos-dir.d/client/bareos-fd.conf.in Diff File
add - systemtests/tests/backup-bareos-test2/etc/bareos/bareos-dir.d/console/bareos-mon.conf.in Diff File
add - systemtests/tests/backup-bareos-test2/etc/bareos/bareos-dir.d/director/bareos-dir.conf.in Diff File
add - systemtests/tests/backup-bareos-test2/etc/bareos/bareos-dir.d/fileset/Catalog.conf Diff File
add - systemtests/tests/backup-bareos-test2/etc/bareos/bareos-dir.d/fileset/Catalog.conf.in Diff File
add - systemtests/tests/backup-bareos-test2/etc/bareos/bareos-dir.d/fileset/LinuxAll.conf Diff File
add - systemtests/tests/backup-bareos-test2/etc/bareos/bareos-dir.d/fileset/LinuxAll.conf.in Diff File
add - systemtests/tests/backup-bareos-test2/etc/bareos/bareos-dir.d/fileset/SelfTest.conf Diff File
add - systemtests/tests/backup-bareos-test2/etc/bareos/bareos-dir.d/fileset/SelfTest.conf.in Diff File
add - systemtests/tests/backup-bareos-test2/etc/bareos/bareos-dir.d/fileset/Windows All Drives.conf Diff File
add - systemtests/tests/backup-bareos-test2/etc/bareos/bareos-dir.d/job/BackupCatalog.conf.in Diff File
add - systemtests/tests/backup-bareos-test2/etc/bareos/bareos-dir.d/job/RestoreFiles.conf.in Diff File
add - systemtests/tests/backup-bareos-test2/etc/bareos/bareos-dir.d/job/backup-bareos-fd.conf.in Diff File
add - systemtests/tests/backup-bareos-test2/etc/bareos/bareos-dir.d/jobdefs/DefaultJob.conf.in Diff File
add - systemtests/tests/backup-bareos-test2/etc/bareos/bareos-dir.d/messages/Daemon.conf.in Diff File
add - systemtests/tests/backup-bareos-test2/etc/bareos/bareos-dir.d/messages/Standard.conf.in Diff File
add - systemtests/tests/backup-bareos-test2/etc/bareos/bareos-dir.d/pool/Differential.conf Diff File
add - systemtests/tests/backup-bareos-test2/etc/bareos/bareos-dir.d/pool/Full.conf Diff File
add - systemtests/tests/backup-bareos-test2/etc/bareos/bareos-dir.d/pool/Incremental.conf Diff File
add - systemtests/tests/backup-bareos-test2/etc/bareos/bareos-dir.d/pool/Scratch.conf Diff File
add - systemtests/tests/backup-bareos-test2/etc/bareos/bareos-dir.d/profile/operator.conf Diff File
add - systemtests/tests/backup-bareos-test2/etc/bareos/bareos-dir.d/schedule/WeeklyCycle.conf Diff File
add - systemtests/tests/backup-bareos-test2/etc/bareos/bareos-dir.d/schedule/WeeklyCycleAfterBackup.conf Diff File
add - systemtests/tests/backup-bareos-test2/etc/bareos/bareos-dir.d/storage/File.conf.in Diff File
add - systemtests/tests/backup-bareos-test2/etc/bareos/bareos-fd.d/client/myself.conf.in Diff File
add - systemtests/tests/backup-bareos-test2/etc/bareos/bareos-fd.d/director/bareos-dir.conf.in Diff File
add - systemtests/tests/backup-bareos-test2/etc/bareos/bareos-fd.d/director/bareos-mon.conf.in Diff File
add - systemtests/tests/backup-bareos-test2/etc/bareos/bareos-fd.d/messages/Standard.conf Diff File
add - systemtests/tests/backup-bareos-test2/etc/bareos/bareos-sd.d/device/FileStorage.conf.in Diff File
add - systemtests/tests/backup-bareos-test2/etc/bareos/bareos-sd.d/director/bareos-dir.conf.in Diff File
add - systemtests/tests/backup-bareos-test2/etc/bareos/bareos-sd.d/director/bareos-mon.conf.in Diff File
add - systemtests/tests/backup-bareos-test2/etc/bareos/bareos-sd.d/messages/Standard.conf Diff File
add - systemtests/tests/backup-bareos-test2/etc/bareos/bareos-sd.d/storage/bareos-sd.conf.in Diff File
add - systemtests/tests/backup-bareos-test2/etc/bareos/bconsole.conf.in Diff File
add - systemtests/tests/backup-bareos-test2/etc/bareos/tray-monitor.d/client/FileDaemon-local.conf.in Diff File
add - systemtests/tests/backup-bareos-test2/etc/bareos/tray-monitor.d/director/Director-local.conf.in Diff File
add - systemtests/tests/backup-bareos-test2/etc/bareos/tray-monitor.d/monitor/bareos-mon.conf.in Diff File
add - systemtests/tests/backup-bareos-test2/etc/bareos/tray-monitor.d/storage/StorageDaemon-local.conf.in Diff File
add - systemtests/tests/backup-bareos-test2/testrunner Diff File