2018-04-08 16:19:24 +02:00
|
|
|
# **********************************************************************************************************************************
|
|
|
|
# Test Definition
|
|
|
|
#
|
|
|
|
# Contains definitions for all unit and integration tests.
|
|
|
|
#
|
|
|
|
# The definitions consist of modules and tests. Modules group together tests that are related and allow common settings for all the
|
|
|
|
# tests. Every module and test must have a name. Tests must also have a total. If this total does not match the actual number of
|
|
|
|
# runs in a test then an error will be thrown.
|
|
|
|
#
|
|
|
|
# Most options can be set for modules and tests (test option will override module option if both are set):
|
|
|
|
# * db - determines if the test will be run against multiple db versions
|
2018-11-03 22:34:04 +02:00
|
|
|
# * define - defines for C code (will also be applied to the test harness)
|
2018-04-08 16:19:24 +02:00
|
|
|
# * debugUnitSuppress - don't define DEBUG_UNIT for unit tests -- this is used to test unit test debugging macros
|
2019-12-14 00:55:41 +02:00
|
|
|
# * binReq - is the pgbackrest binary required for this test?
|
2019-10-08 18:06:30 +02:00
|
|
|
# * containerReq - is this test required to run in a container?
|
2018-04-08 16:19:24 +02:00
|
|
|
#
|
|
|
|
# Some options are unique to tests:
|
2021-01-15 17:56:51 +02:00
|
|
|
# * coverage - a list of code modules that the test provides coverage for. A code module may be covered by multiple tests. That
|
|
|
|
# means you must run all the tests by providing the --run option multiple times to get full coverage on the code module. If
|
|
|
|
# a code module contains only data it should be marked noCode (e.g. - help/help.auto.c: noCode).
|
2021-01-27 17:57:42 +02:00
|
|
|
# * feature - Defines a feature that is now available in the harness. For example, the "error" feature defines HRN_FEATURE_ERROR
|
|
|
|
# used to automatically check for errors in later tests. The common/error test is not able to access this error handling
|
|
|
|
# because it is used to implement the error handling, so it must do error testing in a more primitive way.
|
|
|
|
# * harness - Adds a harness module that contains functions to aid in testing. For example, the "log" harness includes the
|
|
|
|
# common/harnessLog module to aid in expect log testing.
|
|
|
|
# * depend - Source modules that this test depends on that have not already been included in prior tests via coverage. Ideally
|
|
|
|
# this option would never be used because it is essentially documenting cross-dependencies in the code.
|
2018-04-08 16:19:24 +02:00
|
|
|
# * total - total runs in the test
|
|
|
|
# * vm - VMs that the test will be run on
|
2019-07-26 02:15:06 +02:00
|
|
|
# * include - modules to include directly into test.c (all files in coverage are automatically included)
|
|
|
|
# This is useful when a module's internal data needs to be manipulated for testing but no coverage is added by the test.
|
2018-04-08 16:19:24 +02:00
|
|
|
# **********************************************************************************************************************************
|
2018-04-24 15:12:25 +02:00
|
|
|
|
|
|
|
# **********************************************************************************************************************************
|
|
|
|
# Unit tests
|
|
|
|
# **********************************************************************************************************************************
|
|
|
|
unit:
|
|
|
|
|
2018-04-08 16:19:24 +02:00
|
|
|
# ********************************************************************************************************************************
|
|
|
|
- name: common
|
|
|
|
|
|
|
|
test:
|
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: error
|
2018-05-05 15:38:09 +02:00
|
|
|
total: 8
|
2021-01-27 17:57:42 +02:00
|
|
|
feature: error
|
2018-04-08 16:19:24 +02:00
|
|
|
|
|
|
|
coverage:
|
2021-01-15 17:56:51 +02:00
|
|
|
- common/error
|
|
|
|
- common/error.auto: noCode
|
2018-04-08 16:19:24 +02:00
|
|
|
|
2021-01-27 17:57:42 +02:00
|
|
|
depend:
|
|
|
|
- common/stackTrace
|
|
|
|
|
2018-04-08 16:19:24 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
2021-01-27 17:57:42 +02:00
|
|
|
- name: stack-trace
|
|
|
|
total: 4
|
2021-01-28 00:25:13 +02:00
|
|
|
feature: stackTrace
|
2018-04-08 16:19:24 +02:00
|
|
|
|
|
|
|
coverage:
|
2021-01-27 17:57:42 +02:00
|
|
|
- common/stackTrace
|
2018-04-08 16:19:24 +02:00
|
|
|
|
2021-01-28 00:25:13 +02:00
|
|
|
depend:
|
|
|
|
- common/debug
|
|
|
|
|
2021-01-27 18:50:10 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: type-convert
|
|
|
|
total: 11
|
|
|
|
|
|
|
|
coverage:
|
|
|
|
- common/type/convert
|
|
|
|
|
2018-04-08 16:19:24 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: assert-off
|
2019-01-21 17:41:59 +02:00
|
|
|
total: 1
|
2018-11-03 22:34:04 +02:00
|
|
|
define: -DNDEBUG
|
2018-04-08 16:19:24 +02:00
|
|
|
debugUnitSuppress: true
|
|
|
|
|
|
|
|
coverage:
|
2021-01-15 17:56:51 +02:00
|
|
|
- common/assert: noCode
|
2018-04-08 16:19:24 +02:00
|
|
|
|
2018-04-13 02:42:26 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
2021-01-27 17:57:42 +02:00
|
|
|
- name: debug-off
|
|
|
|
total: 2
|
|
|
|
define: -DNDEBUG
|
|
|
|
debugUnitSuppress: true
|
2018-04-13 02:42:26 +02:00
|
|
|
|
|
|
|
coverage:
|
2021-01-27 17:57:42 +02:00
|
|
|
- common/debug
|
2018-04-13 02:42:26 +02:00
|
|
|
|
2018-04-08 16:19:24 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
2021-01-27 17:57:42 +02:00
|
|
|
- name: assert-on
|
|
|
|
total: 1
|
2018-04-08 16:19:24 +02:00
|
|
|
|
|
|
|
coverage:
|
2021-01-27 17:57:42 +02:00
|
|
|
- common/assert: noCode
|
2018-04-08 16:19:24 +02:00
|
|
|
|
2018-05-18 17:57:32 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
2021-01-27 17:57:42 +02:00
|
|
|
- name: mem-context
|
|
|
|
total: 7
|
|
|
|
feature: memContext
|
2018-05-18 17:57:32 +02:00
|
|
|
|
|
|
|
coverage:
|
2021-01-27 17:57:42 +02:00
|
|
|
- common/memContext
|
2018-05-18 17:57:32 +02:00
|
|
|
|
2021-01-27 17:57:42 +02:00
|
|
|
depend:
|
|
|
|
- common/type/convert
|
2018-05-18 17:57:32 +02:00
|
|
|
|
2018-04-08 16:19:24 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
2021-01-27 17:57:42 +02:00
|
|
|
- name: time
|
|
|
|
total: 3
|
2018-04-08 16:19:24 +02:00
|
|
|
|
|
|
|
coverage:
|
2021-01-27 17:57:42 +02:00
|
|
|
- common/time
|
2018-04-08 16:19:24 +02:00
|
|
|
|
2021-02-20 00:05:15 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: encode
|
2021-02-20 02:21:06 +02:00
|
|
|
total: 2
|
2021-02-20 00:05:15 +02:00
|
|
|
|
|
|
|
coverage:
|
|
|
|
- common/encode
|
|
|
|
|
2018-04-08 16:19:24 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
2021-01-27 17:57:42 +02:00
|
|
|
- name: type-string
|
2021-04-07 18:50:33 +02:00
|
|
|
total: 25
|
2021-01-27 17:57:42 +02:00
|
|
|
feature: string
|
2018-04-08 16:19:24 +02:00
|
|
|
|
|
|
|
coverage:
|
2021-01-27 17:57:42 +02:00
|
|
|
- common/type/string
|
|
|
|
- common/type/stringList
|
2018-04-08 16:19:24 +02:00
|
|
|
|
2021-01-27 18:50:10 +02:00
|
|
|
depend:
|
|
|
|
- common/type/buffer
|
|
|
|
- common/type/keyValue
|
|
|
|
- common/type/list
|
|
|
|
- common/type/variant
|
|
|
|
- common/type/variantList
|
|
|
|
|
2018-04-11 15:36:12 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
2021-01-27 17:57:42 +02:00
|
|
|
- name: type-list
|
|
|
|
total: 4
|
2018-04-11 15:36:12 +02:00
|
|
|
|
|
|
|
coverage:
|
2021-01-27 17:57:42 +02:00
|
|
|
- common/type/list
|
2018-04-11 15:36:12 +02:00
|
|
|
|
2018-04-08 16:19:24 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
2021-01-27 17:57:42 +02:00
|
|
|
- name: type-buffer
|
|
|
|
total: 6
|
2018-04-08 16:19:24 +02:00
|
|
|
|
|
|
|
coverage:
|
2021-01-27 17:57:42 +02:00
|
|
|
- common/type/buffer
|
2018-04-08 16:19:24 +02:00
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
2021-01-27 17:57:42 +02:00
|
|
|
- name: type-variant
|
|
|
|
total: 12
|
2018-04-08 16:19:24 +02:00
|
|
|
|
|
|
|
coverage:
|
2021-01-27 17:57:42 +02:00
|
|
|
- common/type/variant
|
|
|
|
- common/type/variantList
|
2018-04-08 16:19:24 +02:00
|
|
|
|
2018-05-18 17:57:32 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
2021-01-27 17:57:42 +02:00
|
|
|
- name: reg-exp
|
|
|
|
total: 3
|
2018-05-18 17:57:32 +02:00
|
|
|
|
|
|
|
coverage:
|
2021-01-27 17:57:42 +02:00
|
|
|
- common/regExp
|
2018-05-18 17:57:32 +02:00
|
|
|
|
2020-03-31 02:52:57 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
2021-01-27 17:57:42 +02:00
|
|
|
- name: log
|
|
|
|
total: 5
|
|
|
|
feature: log
|
|
|
|
harness: log
|
2020-03-31 02:52:57 +02:00
|
|
|
|
|
|
|
coverage:
|
2021-01-27 17:57:42 +02:00
|
|
|
- common/log
|
2020-03-31 02:52:57 +02:00
|
|
|
|
2018-04-08 16:19:24 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
2021-01-27 17:57:42 +02:00
|
|
|
- name: debug-on
|
2019-09-28 16:08:20 +02:00
|
|
|
total: 4
|
2021-01-27 17:57:42 +02:00
|
|
|
feature: debug
|
2018-04-08 16:19:24 +02:00
|
|
|
|
|
|
|
coverage:
|
2021-01-27 17:57:42 +02:00
|
|
|
- common/debug
|
2018-04-08 16:19:24 +02:00
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
2021-01-27 17:57:42 +02:00
|
|
|
- name: fork
|
|
|
|
total: 1
|
2018-04-08 16:19:24 +02:00
|
|
|
|
|
|
|
coverage:
|
2021-01-27 17:57:42 +02:00
|
|
|
- common/fork
|
2018-04-08 16:19:24 +02:00
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
2021-01-27 17:57:42 +02:00
|
|
|
- name: wait
|
|
|
|
total: 1
|
2018-04-08 16:19:24 +02:00
|
|
|
|
|
|
|
coverage:
|
2021-01-27 17:57:42 +02:00
|
|
|
- common/wait
|
2018-04-08 16:19:24 +02:00
|
|
|
|
2020-12-09 19:05:14 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
2021-01-27 17:57:42 +02:00
|
|
|
- name: type-object
|
2020-12-09 19:05:14 +02:00
|
|
|
total: 1
|
|
|
|
|
|
|
|
coverage:
|
2021-01-27 17:57:42 +02:00
|
|
|
- common/type/object: noCode
|
2020-12-09 19:05:14 +02:00
|
|
|
|
2019-08-19 02:46:34 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: type-mcv
|
|
|
|
total: 1
|
|
|
|
|
|
|
|
coverage:
|
2021-01-15 17:56:51 +02:00
|
|
|
- common/type/mcv
|
2019-08-19 02:46:34 +02:00
|
|
|
|
2018-08-09 14:06:23 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: type-json
|
2019-04-23 00:41:01 +02:00
|
|
|
total: 11
|
2018-08-09 14:06:23 +02:00
|
|
|
|
|
|
|
coverage:
|
2021-01-15 17:56:51 +02:00
|
|
|
- common/type/json
|
2018-08-09 14:06:23 +02:00
|
|
|
|
2018-04-08 16:19:24 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: type-key-value
|
|
|
|
total: 2
|
|
|
|
|
|
|
|
coverage:
|
2021-01-15 17:56:51 +02:00
|
|
|
- common/type/keyValue
|
2018-04-08 16:19:24 +02:00
|
|
|
|
2018-07-25 03:08:27 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
2018-11-21 03:40:11 +02:00
|
|
|
- name: type-xml
|
|
|
|
total: 1
|
|
|
|
|
|
|
|
coverage:
|
2021-01-15 17:56:51 +02:00
|
|
|
- common/type/xml
|
2018-11-21 03:40:11 +02:00
|
|
|
|
2020-08-20 20:04:26 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: stat
|
|
|
|
total: 1
|
2021-01-27 17:57:42 +02:00
|
|
|
feature: STAT
|
2020-08-20 20:04:26 +02:00
|
|
|
|
|
|
|
coverage:
|
2021-01-15 17:56:51 +02:00
|
|
|
- common/stat
|
2020-08-20 20:04:26 +02:00
|
|
|
|
2019-09-09 02:11:51 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: user
|
|
|
|
total: 1
|
|
|
|
|
|
|
|
coverage:
|
2021-01-15 17:56:51 +02:00
|
|
|
- common/user
|
2019-09-09 02:11:51 +02:00
|
|
|
|
2018-11-21 03:40:11 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
2018-07-25 03:08:27 +02:00
|
|
|
- name: io
|
|
|
|
total: 4
|
|
|
|
|
|
|
|
coverage:
|
2021-01-15 17:56:51 +02:00
|
|
|
- common/io/bufferRead
|
|
|
|
- common/io/bufferWrite
|
|
|
|
- common/io/fd
|
|
|
|
- common/io/fdRead
|
|
|
|
- common/io/fdWrite
|
|
|
|
- common/io/filter/buffer
|
|
|
|
- common/io/filter/filter
|
|
|
|
- common/io/filter/group
|
|
|
|
- common/io/filter/sink
|
|
|
|
- common/io/filter/size
|
|
|
|
- common/io/io
|
|
|
|
- common/io/read
|
|
|
|
- common/io/write
|
2018-07-25 03:08:27 +02:00
|
|
|
|
2021-01-27 17:57:42 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: type-pack
|
|
|
|
total: 1
|
|
|
|
harness: pack
|
|
|
|
|
|
|
|
coverage:
|
|
|
|
- common/type/pack
|
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: crypto
|
|
|
|
total: 3
|
|
|
|
|
|
|
|
coverage:
|
|
|
|
- common/crypto/cipherBlock
|
|
|
|
- common/crypto/common
|
|
|
|
- common/crypto/hash
|
|
|
|
- common/crypto/md5.vendor
|
|
|
|
|
2018-11-22 01:43:25 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: io-tls
|
2020-04-16 22:05:44 +02:00
|
|
|
total: 5
|
2021-01-27 17:57:42 +02:00
|
|
|
feature: SOCKET
|
|
|
|
harness: server
|
2018-11-22 01:43:25 +02:00
|
|
|
|
|
|
|
coverage:
|
2021-01-15 17:56:51 +02:00
|
|
|
- common/io/client
|
|
|
|
- common/io/session
|
|
|
|
- common/io/tls/client
|
|
|
|
- common/io/tls/session
|
|
|
|
- common/io/socket/client
|
|
|
|
- common/io/socket/common
|
|
|
|
- common/io/socket/session
|
2018-11-22 01:43:25 +02:00
|
|
|
|
2020-08-08 17:23:37 +02:00
|
|
|
include:
|
|
|
|
- common/io/fdRead
|
|
|
|
- common/io/read
|
|
|
|
|
2018-11-22 02:11:45 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: io-http
|
2021-03-01 20:44:47 +02:00
|
|
|
total: 6
|
2018-11-22 02:11:45 +02:00
|
|
|
|
|
|
|
coverage:
|
2021-01-15 17:56:51 +02:00
|
|
|
- common/io/http/client
|
|
|
|
- common/io/http/common
|
|
|
|
- common/io/http/header
|
|
|
|
- common/io/http/query
|
|
|
|
- common/io/http/request
|
|
|
|
- common/io/http/response
|
|
|
|
- common/io/http/session
|
2021-03-01 20:44:47 +02:00
|
|
|
- common/io/http/url
|
2018-11-22 02:11:45 +02:00
|
|
|
|
2021-01-27 17:57:42 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: exec
|
|
|
|
total: 1
|
|
|
|
|
|
|
|
coverage:
|
|
|
|
- common/exec
|
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: ini
|
|
|
|
total: 4
|
|
|
|
|
|
|
|
coverage:
|
|
|
|
- common/ini
|
|
|
|
|
|
|
|
depend:
|
|
|
|
- storage/posix/read
|
|
|
|
- storage/posix/storage
|
|
|
|
- storage/posix/write
|
|
|
|
- storage/read
|
|
|
|
- storage/storage
|
|
|
|
- storage/write
|
|
|
|
|
2019-03-10 13:11:20 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
2020-02-27 19:09:05 +02:00
|
|
|
- name: compress
|
2020-05-05 22:49:01 +02:00
|
|
|
total: 5
|
2019-03-10 13:11:20 +02:00
|
|
|
|
|
|
|
coverage:
|
2021-01-15 17:56:51 +02:00
|
|
|
- common/compress/bz2/common
|
|
|
|
- common/compress/bz2/compress
|
|
|
|
- common/compress/bz2/decompress
|
|
|
|
- common/compress/gz/common
|
|
|
|
- common/compress/gz/compress
|
|
|
|
- common/compress/gz/decompress
|
|
|
|
- common/compress/lz4/common
|
|
|
|
- common/compress/lz4/compress
|
|
|
|
- common/compress/lz4/decompress
|
|
|
|
- common/compress/zst/common
|
|
|
|
- common/compress/zst/compress
|
|
|
|
- common/compress/zst/decompress
|
|
|
|
- common/compress/helper
|
2019-03-10 13:11:20 +02:00
|
|
|
|
2019-03-10 13:27:30 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
2021-01-27 17:57:42 +02:00
|
|
|
- name: exit
|
2019-03-10 13:27:30 +02:00
|
|
|
total: 3
|
2021-01-27 17:57:42 +02:00
|
|
|
harness: config
|
2019-03-10 13:27:30 +02:00
|
|
|
|
|
|
|
coverage:
|
2021-01-27 17:57:42 +02:00
|
|
|
- common/exit
|
2018-04-08 16:19:24 +02:00
|
|
|
|
2021-01-27 17:57:42 +02:00
|
|
|
depend:
|
|
|
|
- command/backup/pageChecksum
|
|
|
|
- common/lock
|
|
|
|
- config/config
|
|
|
|
- config/parse
|
|
|
|
- config/exec
|
|
|
|
- config/load
|
|
|
|
- config/protocol
|
|
|
|
- command/command
|
|
|
|
- postgres/interface
|
|
|
|
- postgres/interface/page
|
|
|
|
- postgres/interface/v083
|
|
|
|
- postgres/interface/v084
|
|
|
|
- postgres/interface/v090
|
|
|
|
- postgres/interface/v091
|
|
|
|
- postgres/interface/v092
|
|
|
|
- postgres/interface/v093
|
|
|
|
- postgres/interface/v094
|
|
|
|
- postgres/interface/v095
|
|
|
|
- postgres/interface/v096
|
|
|
|
- postgres/interface/v100
|
|
|
|
- postgres/interface/v110
|
|
|
|
- postgres/interface/v120
|
|
|
|
- postgres/interface/v130
|
|
|
|
- protocol/client
|
|
|
|
- protocol/command
|
|
|
|
- protocol/helper
|
|
|
|
- protocol/server
|
|
|
|
- storage/azure/read
|
|
|
|
- storage/azure/storage
|
|
|
|
- storage/azure/write
|
|
|
|
- storage/cifs/storage
|
2021-03-05 19:13:51 +02:00
|
|
|
- storage/gcs/read
|
|
|
|
- storage/gcs/storage
|
|
|
|
- storage/gcs/write
|
2021-01-27 17:57:42 +02:00
|
|
|
- storage/helper
|
|
|
|
- storage/remote/read
|
|
|
|
- storage/remote/protocol
|
|
|
|
- storage/remote/storage
|
|
|
|
- storage/remote/write
|
|
|
|
- storage/s3/read
|
|
|
|
- storage/s3/storage
|
|
|
|
- storage/s3/write
|
2018-04-08 16:19:24 +02:00
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
2021-01-27 17:57:42 +02:00
|
|
|
- name: lock
|
|
|
|
total: 2
|
2018-04-08 16:19:24 +02:00
|
|
|
|
|
|
|
coverage:
|
2021-01-27 17:57:42 +02:00
|
|
|
- common/lock
|
2018-04-08 16:19:24 +02:00
|
|
|
|
|
|
|
# ********************************************************************************************************************************
|
|
|
|
- name: postgres
|
|
|
|
|
|
|
|
test:
|
2019-07-25 20:50:02 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: client
|
|
|
|
total: 1
|
2021-01-27 17:57:42 +02:00
|
|
|
harness: pq
|
2019-07-25 20:50:02 +02:00
|
|
|
|
|
|
|
coverage:
|
2021-01-15 17:56:51 +02:00
|
|
|
- postgres/client
|
2019-07-25 20:50:02 +02:00
|
|
|
|
2018-04-29 17:20:51 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
2018-09-25 11:24:42 +02:00
|
|
|
- name: interface
|
2020-03-05 23:12:54 +02:00
|
|
|
total: 9
|
2018-04-29 17:20:51 +02:00
|
|
|
|
|
|
|
coverage:
|
2021-01-15 17:56:51 +02:00
|
|
|
- postgres/interface
|
|
|
|
- postgres/interface/page
|
2018-04-08 16:19:24 +02:00
|
|
|
|
|
|
|
# ********************************************************************************************************************************
|
|
|
|
- name: config
|
|
|
|
|
|
|
|
test:
|
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: parse
|
2020-12-17 16:32:31 +02:00
|
|
|
total: 6
|
2018-04-08 16:19:24 +02:00
|
|
|
|
|
|
|
coverage:
|
2021-01-15 17:56:51 +02:00
|
|
|
- config/config
|
|
|
|
- config/parse
|
|
|
|
- config/parse.auto: noCode
|
2018-04-08 16:19:24 +02:00
|
|
|
|
2020-03-17 00:16:27 +02:00
|
|
|
include:
|
|
|
|
- common/log
|
|
|
|
|
2018-04-08 16:19:24 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: load
|
2018-10-25 15:58:25 +02:00
|
|
|
total: 4
|
2018-04-08 16:19:24 +02:00
|
|
|
|
|
|
|
coverage:
|
2021-01-15 17:56:51 +02:00
|
|
|
- config/load
|
2018-04-08 16:19:24 +02:00
|
|
|
|
2020-03-17 00:16:27 +02:00
|
|
|
include:
|
|
|
|
- common/log
|
2020-04-01 21:44:51 +02:00
|
|
|
- common/io/socket/common
|
2020-03-17 00:16:27 +02:00
|
|
|
|
2019-01-17 22:29:19 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: exec
|
|
|
|
total: 1
|
|
|
|
|
|
|
|
coverage:
|
2021-01-15 17:56:51 +02:00
|
|
|
- config/exec
|
2019-01-17 22:29:19 +02:00
|
|
|
|
2019-02-19 20:57:38 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: protocol
|
|
|
|
total: 1
|
|
|
|
|
|
|
|
coverage:
|
2021-01-15 17:56:51 +02:00
|
|
|
- config/protocol
|
2019-02-19 20:57:38 +02:00
|
|
|
|
2018-04-08 16:19:24 +02:00
|
|
|
# ********************************************************************************************************************************
|
|
|
|
- name: storage
|
|
|
|
|
|
|
|
test:
|
2021-01-27 17:57:42 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: posix
|
|
|
|
total: 21
|
|
|
|
feature: STORAGE
|
|
|
|
harness: storage
|
|
|
|
|
|
|
|
coverage:
|
|
|
|
- storage/posix/read
|
|
|
|
- storage/posix/storage
|
|
|
|
- storage/posix/write
|
|
|
|
- storage/helper
|
|
|
|
- storage/read
|
|
|
|
- storage/storage
|
|
|
|
- storage/write
|
|
|
|
|
2021-03-05 19:13:51 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: gcs
|
|
|
|
total: 3
|
|
|
|
|
|
|
|
coverage:
|
|
|
|
- storage/gcs/read
|
|
|
|
- storage/gcs/storage
|
|
|
|
- storage/gcs/write
|
|
|
|
- storage/helper
|
|
|
|
|
|
|
|
include:
|
|
|
|
- storage/storage
|
|
|
|
- storage/write
|
|
|
|
|
2020-07-02 22:24:34 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: azure
|
|
|
|
total: 3
|
|
|
|
|
|
|
|
coverage:
|
2021-01-15 17:56:51 +02:00
|
|
|
- storage/azure/read
|
|
|
|
- storage/azure/storage
|
|
|
|
- storage/azure/write
|
|
|
|
- storage/helper
|
2020-07-02 22:24:34 +02:00
|
|
|
|
|
|
|
include:
|
|
|
|
- storage/storage
|
|
|
|
- storage/write
|
|
|
|
|
2018-04-08 16:19:24 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
2019-03-14 11:28:33 +02:00
|
|
|
- name: cifs
|
|
|
|
total: 1
|
|
|
|
|
|
|
|
coverage:
|
2021-01-15 17:56:51 +02:00
|
|
|
- storage/cifs/storage
|
|
|
|
- storage/posix/storage
|
|
|
|
- storage/helper
|
2019-07-26 02:15:06 +02:00
|
|
|
|
|
|
|
include:
|
|
|
|
- storage/storage
|
2019-03-14 11:28:33 +02:00
|
|
|
|
2019-01-18 22:04:37 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: remote
|
2020-04-06 22:09:18 +02:00
|
|
|
total: 9
|
2019-10-08 18:06:30 +02:00
|
|
|
containerReq: true
|
2019-12-14 00:55:41 +02:00
|
|
|
binReq: true
|
2019-01-18 22:04:37 +02:00
|
|
|
|
|
|
|
coverage:
|
2021-01-15 17:56:51 +02:00
|
|
|
- storage/remote/read
|
|
|
|
- storage/remote/protocol
|
|
|
|
- storage/remote/storage
|
|
|
|
- storage/remote/write
|
|
|
|
- storage/helper
|
|
|
|
- storage/storage
|
2019-01-18 22:04:37 +02:00
|
|
|
|
2019-07-26 02:15:06 +02:00
|
|
|
include:
|
|
|
|
- storage/read
|
|
|
|
- storage/write
|
|
|
|
|
2018-11-22 02:32:49 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: s3
|
2020-08-08 21:52:33 +02:00
|
|
|
total: 2
|
2018-11-22 02:32:49 +02:00
|
|
|
|
|
|
|
coverage:
|
2021-01-15 17:56:51 +02:00
|
|
|
- storage/s3/read
|
|
|
|
- storage/s3/storage
|
|
|
|
- storage/s3/write
|
|
|
|
- storage/helper
|
|
|
|
- storage/storage
|
2018-11-22 02:32:49 +02:00
|
|
|
|
2020-04-03 14:38:28 +02:00
|
|
|
include:
|
|
|
|
- storage/write
|
|
|
|
|
2018-04-08 16:19:24 +02:00
|
|
|
# ********************************************************************************************************************************
|
|
|
|
- name: protocol
|
|
|
|
|
|
|
|
test:
|
2019-01-18 21:32:51 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: protocol
|
2020-07-28 18:15:33 +02:00
|
|
|
total: 10
|
2019-10-08 18:06:30 +02:00
|
|
|
containerReq: true
|
2019-12-14 00:55:41 +02:00
|
|
|
binReq: true
|
2019-01-18 21:32:51 +02:00
|
|
|
|
|
|
|
coverage:
|
2021-01-15 17:56:51 +02:00
|
|
|
- protocol/client
|
|
|
|
- protocol/command
|
|
|
|
- protocol/helper
|
|
|
|
- protocol/parallel
|
|
|
|
- protocol/parallelJob
|
|
|
|
- protocol/server
|
2019-01-18 21:32:51 +02:00
|
|
|
|
2020-07-28 18:15:33 +02:00
|
|
|
include:
|
|
|
|
- common/exec
|
|
|
|
|
2018-04-08 16:19:24 +02:00
|
|
|
# ********************************************************************************************************************************
|
|
|
|
- name: info
|
|
|
|
|
|
|
|
test:
|
2018-08-09 14:57:21 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: info
|
2019-08-21 21:12:00 +02:00
|
|
|
total: 3
|
2021-01-27 17:57:42 +02:00
|
|
|
harness: info
|
2018-08-09 14:57:21 +02:00
|
|
|
|
|
|
|
coverage:
|
2021-01-15 17:56:51 +02:00
|
|
|
- info/info
|
2018-08-09 14:57:21 +02:00
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: info-pg
|
2019-08-21 21:12:00 +02:00
|
|
|
total: 2
|
2018-08-09 14:57:21 +02:00
|
|
|
|
|
|
|
coverage:
|
2021-01-15 17:56:51 +02:00
|
|
|
- info/infoPg
|
2018-08-09 14:57:21 +02:00
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: info-archive
|
2018-12-11 01:45:57 +02:00
|
|
|
total: 2
|
2018-08-09 14:57:21 +02:00
|
|
|
|
|
|
|
coverage:
|
2021-01-15 17:56:51 +02:00
|
|
|
- info/infoArchive
|
2018-08-09 14:57:21 +02:00
|
|
|
|
2018-09-07 17:03:05 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
2021-01-27 17:57:42 +02:00
|
|
|
- name: manifest
|
|
|
|
total: 6
|
2018-09-07 17:03:05 +02:00
|
|
|
|
|
|
|
coverage:
|
2021-01-27 17:57:42 +02:00
|
|
|
- info/manifest
|
|
|
|
|
|
|
|
depend:
|
|
|
|
- command/backup/common
|
2018-09-07 17:03:05 +02:00
|
|
|
|
2019-09-23 19:50:46 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
2021-01-27 17:57:42 +02:00
|
|
|
- name: info-backup
|
|
|
|
total: 3
|
2019-09-23 19:50:46 +02:00
|
|
|
|
|
|
|
coverage:
|
2021-01-27 17:57:42 +02:00
|
|
|
- info/infoBackup
|
2019-09-23 19:50:46 +02:00
|
|
|
|
2019-08-01 21:38:27 +02:00
|
|
|
# ********************************************************************************************************************************
|
|
|
|
- name: db
|
|
|
|
|
|
|
|
test:
|
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: db
|
2019-12-08 01:44:06 +02:00
|
|
|
total: 3
|
2019-10-08 18:06:30 +02:00
|
|
|
containerReq: true
|
2019-12-14 00:55:41 +02:00
|
|
|
binReq: true
|
2019-08-01 21:38:27 +02:00
|
|
|
|
|
|
|
coverage:
|
2021-01-15 17:56:51 +02:00
|
|
|
- db/db
|
|
|
|
- db/helper
|
|
|
|
- db/protocol
|
2019-08-01 21:38:27 +02:00
|
|
|
|
2018-04-08 16:19:24 +02:00
|
|
|
# ********************************************************************************************************************************
|
2019-02-23 18:51:52 +02:00
|
|
|
- name: command
|
2018-04-08 16:19:24 +02:00
|
|
|
|
|
|
|
test:
|
2021-01-27 17:57:42 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: control
|
|
|
|
total: 3
|
|
|
|
|
|
|
|
coverage:
|
|
|
|
- command/control/common
|
|
|
|
- command/control/start
|
|
|
|
- command/control/stop
|
|
|
|
|
2018-04-29 16:16:59 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
2019-02-23 18:51:52 +02:00
|
|
|
- name: archive-common
|
2020-09-08 18:28:56 +02:00
|
|
|
total: 9
|
2018-04-29 16:16:59 +02:00
|
|
|
|
|
|
|
coverage:
|
2021-01-15 17:56:51 +02:00
|
|
|
- command/archive/common
|
2018-04-29 16:16:59 +02:00
|
|
|
|
2018-04-08 16:19:24 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
2019-02-23 18:51:52 +02:00
|
|
|
- name: archive-get
|
2021-01-15 17:15:52 +02:00
|
|
|
total: 3
|
2019-12-14 00:55:41 +02:00
|
|
|
binReq: true
|
2018-04-30 23:27:39 +02:00
|
|
|
|
|
|
|
coverage:
|
2021-01-15 17:56:51 +02:00
|
|
|
- command/archive/common
|
|
|
|
- command/archive/get/file
|
|
|
|
- command/archive/get/get
|
|
|
|
- command/archive/get/protocol
|
2018-10-02 18:54:43 +02:00
|
|
|
|
2019-02-23 18:51:52 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: archive-push
|
2019-03-29 15:26:33 +02:00
|
|
|
total: 4
|
2019-12-14 00:55:41 +02:00
|
|
|
binReq: true
|
2019-02-23 18:51:52 +02:00
|
|
|
|
|
|
|
coverage:
|
2021-01-15 17:56:51 +02:00
|
|
|
- command/archive/common
|
|
|
|
- command/archive/push/file
|
|
|
|
- command/archive/push/protocol
|
|
|
|
- command/archive/push/push
|
2019-02-23 18:51:52 +02:00
|
|
|
|
2019-04-15 14:29:25 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
2021-01-27 17:57:42 +02:00
|
|
|
- name: stanza
|
|
|
|
total: 4
|
2019-07-25 20:34:16 +02:00
|
|
|
|
|
|
|
coverage:
|
2021-01-27 17:57:42 +02:00
|
|
|
- command/stanza/common
|
|
|
|
- command/stanza/create
|
|
|
|
- command/stanza/upgrade
|
|
|
|
- command/stanza/delete
|
2019-07-26 02:15:06 +02:00
|
|
|
|
2021-01-27 17:57:42 +02:00
|
|
|
depend:
|
|
|
|
- command/check/common
|
2019-07-25 20:34:16 +02:00
|
|
|
|
2019-08-02 02:35:01 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: check
|
2019-10-09 00:04:09 +02:00
|
|
|
total: 4
|
|
|
|
containerReq: true
|
2019-08-02 02:35:01 +02:00
|
|
|
|
|
|
|
coverage:
|
2021-01-15 17:56:51 +02:00
|
|
|
- command/check/common
|
|
|
|
- command/check/check
|
2019-08-02 02:35:01 +02:00
|
|
|
|
2019-02-23 18:51:52 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: command
|
|
|
|
total: 1
|
|
|
|
|
|
|
|
coverage:
|
2021-01-15 17:56:51 +02:00
|
|
|
- command/command
|
2019-02-23 18:51:52 +02:00
|
|
|
|
2019-06-18 21:19:20 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: expire
|
2020-09-08 18:28:56 +02:00
|
|
|
total: 8
|
2019-06-18 21:19:20 +02:00
|
|
|
|
|
|
|
coverage:
|
2021-01-15 17:56:51 +02:00
|
|
|
- command/expire/expire
|
2019-06-18 21:19:20 +02:00
|
|
|
|
2020-03-23 20:31:04 +02:00
|
|
|
include:
|
|
|
|
- info/infoBackup
|
|
|
|
|
2019-03-10 11:55:01 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: help
|
2021-04-07 18:50:33 +02:00
|
|
|
total: 5
|
2019-03-10 11:55:01 +02:00
|
|
|
|
|
|
|
coverage:
|
2021-01-15 17:56:51 +02:00
|
|
|
- command/help/help
|
|
|
|
- command/help/help.auto: noCode
|
2019-03-10 11:55:01 +02:00
|
|
|
|
2019-02-23 18:51:52 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: info
|
|
|
|
total: 3
|
|
|
|
|
|
|
|
coverage:
|
2021-01-15 17:56:51 +02:00
|
|
|
- command/info/info
|
2019-02-23 18:51:52 +02:00
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: remote
|
|
|
|
total: 1
|
|
|
|
|
|
|
|
coverage:
|
2021-01-15 17:56:51 +02:00
|
|
|
- command/remote/remote
|
2019-02-23 18:51:52 +02:00
|
|
|
|
2019-05-20 23:07:37 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: restore
|
2020-01-30 23:38:05 +02:00
|
|
|
total: 12
|
2019-12-14 00:55:41 +02:00
|
|
|
binReq: true
|
2019-05-20 23:07:37 +02:00
|
|
|
|
|
|
|
coverage:
|
2021-01-15 17:56:51 +02:00
|
|
|
- command/restore/file
|
|
|
|
- command/restore/protocol
|
|
|
|
- command/restore/restore
|
2019-09-26 13:52:02 +02:00
|
|
|
|
|
|
|
include:
|
|
|
|
- common/user
|
|
|
|
- info/infoBackup
|
|
|
|
- info/manifest
|
2019-05-20 23:07:37 +02:00
|
|
|
|
2019-08-21 22:26:28 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
2021-01-27 17:57:42 +02:00
|
|
|
- name: backup-common
|
|
|
|
total: 3
|
2019-08-21 22:26:28 +02:00
|
|
|
|
|
|
|
coverage:
|
2021-01-27 17:57:42 +02:00
|
|
|
- command/backup/common
|
|
|
|
- command/backup/pageChecksum
|
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: backup
|
|
|
|
total: 10
|
|
|
|
binReq: true
|
|
|
|
|
|
|
|
coverage:
|
|
|
|
- command/backup/backup
|
|
|
|
- command/backup/common
|
|
|
|
- command/backup/file
|
|
|
|
- command/backup/protocol
|
|
|
|
|
|
|
|
include:
|
|
|
|
- info/info
|
|
|
|
- info/manifest
|
|
|
|
- storage/storage
|
2019-08-21 22:26:28 +02:00
|
|
|
|
2019-05-28 16:03:48 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
2020-03-09 22:41:04 +02:00
|
|
|
- name: repo
|
2020-03-09 23:15:03 +02:00
|
|
|
total: 4
|
2019-05-28 16:03:48 +02:00
|
|
|
|
|
|
|
coverage:
|
2021-01-15 17:56:51 +02:00
|
|
|
- command/repo/get
|
|
|
|
- command/repo/ls
|
|
|
|
- command/repo/put
|
|
|
|
- command/repo/rm
|
2020-03-09 23:15:03 +02:00
|
|
|
|
|
|
|
include:
|
|
|
|
# command/repo/create is currently for testing purposes only so coverage is not provided except in integration. In the
|
|
|
|
# future this will probably be rolled into a custom object store server implementation.
|
|
|
|
- command/repo/create
|
2019-05-28 16:03:48 +02:00
|
|
|
|
2020-09-22 17:57:38 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: verify
|
2021-01-26 18:21:36 +02:00
|
|
|
total: 8
|
2020-09-22 17:57:38 +02:00
|
|
|
binReq: true
|
|
|
|
|
|
|
|
coverage:
|
2021-01-15 17:56:51 +02:00
|
|
|
- command/verify/file
|
|
|
|
- command/verify/protocol
|
|
|
|
- command/verify/verify
|
2020-09-22 17:57:38 +02:00
|
|
|
|
2021-01-27 17:57:42 +02:00
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: local
|
|
|
|
total: 1
|
|
|
|
|
|
|
|
coverage:
|
|
|
|
- command/local/local
|
|
|
|
|
2018-04-24 15:12:25 +02:00
|
|
|
# **********************************************************************************************************************************
|
|
|
|
# Integration tests
|
|
|
|
#
|
|
|
|
# Integration tests are not run in a container. They are expected to create their own containers since most integration runs will
|
|
|
|
# create more than one. For this reason each run is executed individually.
|
|
|
|
# **********************************************************************************************************************************
|
|
|
|
integration:
|
|
|
|
|
2018-04-08 16:19:24 +02:00
|
|
|
# ********************************************************************************************************************************
|
|
|
|
- name: mock
|
|
|
|
|
|
|
|
test:
|
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
2018-04-08 18:57:02 +02:00
|
|
|
- name: stanza
|
2019-02-24 07:42:41 +02:00
|
|
|
total: 2
|
2018-04-08 16:19:24 +02:00
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
2018-04-08 18:57:02 +02:00
|
|
|
- name: expire
|
2019-03-01 19:04:26 +02:00
|
|
|
total: 2
|
2018-04-08 18:57:02 +02:00
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: archive
|
2019-02-23 15:59:39 +02:00
|
|
|
total: 2
|
2018-04-08 16:19:24 +02:00
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
2018-04-08 18:57:02 +02:00
|
|
|
- name: archive-stop
|
2019-03-01 17:12:41 +02:00
|
|
|
total: 2
|
2018-04-08 18:57:02 +02:00
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: all
|
2019-03-02 15:01:02 +02:00
|
|
|
total: 2
|
2018-04-08 16:19:24 +02:00
|
|
|
|
|
|
|
# ********************************************************************************************************************************
|
|
|
|
- name: real
|
2018-04-08 18:57:02 +02:00
|
|
|
db: true
|
2018-04-08 16:19:24 +02:00
|
|
|
|
|
|
|
test:
|
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: all
|
Simplify test matrix for real/all tests.
Test matrices were previously simplified for the mock/* tests (e.g. d4410611, d489eb87) but not for real/all since the rules for which tests would run with which options was extremely complex. This only got more complex when new compression formats were added.
Because the loop-generated matrix was so large, mosts tests were skipped for most option combinations following arcane logic which was nearly impossible to decipher even when reading the code, and completely impossible from the test.pl interface. As a consequence, important tests got excluded. For example, backup from standby was excluded for most versions of PostgreSQL because it was only run once per distro, against the latest version to be included in that distro.
Simplify the tests by having a single run per PostgreSQL version and vary test parameters according to the capabilities of each version and the underlying distro. So, ZST testing is based on whether the distro supports ZST. Every test is run for each set of parameters based on the capabilities of the PostgreSQL version, e.g. backup from standby is not attempted on versions that don't support it.
Note that since more tests are running the overall time to run the mock/all tests has increased by about 20-25%. Some time may be saved my removing tests that are adequately covered by unit tests but that should the subject of another commit. Another option would be to limit some non version-specific tests to a single, well defined version of PostgreSQL, .e.g the version that is run by expect tests, currently 9.6.
The motivation for this refactor is that new storage drivers are coming and the loop-generated test matrix simply was not up to the task of adding them.
The following is an example of the new test log (note longer runtime of each test):
module=real, test=all, run=1, pg-version=10 (106.91s)
module=real, test=all, run=1, pg-version=9.5 (151.09s)
module=real, test=all, run=1, pg-version=9.2 (123.11s)
module=real, test=all, run=1, pg-version=9.1 (129s)
vs. the old test log (sub-second tests were skipped entirely):
module=real, test=all, run=2, pg-version=10 (0.31s)
module=real, test=all, run=3, pg-version=10 (0.26s)
module=real, test=all, run=4, pg-version=10 (60.39s)
module=real, test=all, run=1, pg-version=10 (69.12s)
module=real, test=all, run=6, pg-version=10 (34s)
module=real, test=all, run=5, pg-version=10 (42.75s)
module=real, test=all, run=2, pg-version=9.5 (0.21s)
module=real, test=all, run=3, pg-version=9.5 (0.21s)
module=real, test=all, run=4, pg-version=9.5 (0.21s)
module=real, test=all, run=5, pg-version=9.5 (0.26s)
module=real, test=all, run=6, pg-version=9.5 (0.21s)
module=real, test=all, run=1, pg-version=9.2 (72.78s)
module=real, test=all, run=2, pg-version=9.2 (0.26s)
module=real, test=all, run=3, pg-version=9.2 (0.31s)
module=real, test=all, run=4, pg-version=9.2 (0.21s)
module=real, test=all, run=5, pg-version=9.2 (0.21s)
module=real, test=all, run=6, pg-version=9.2 (0.21s)
module=real, test=all, run=1, pg-version=9.5 (88.41s)
module=real, test=all, run=2, pg-version=9.1 (0.21s)
module=real, test=all, run=3, pg-version=9.1 (0.26s)
module=real, test=all, run=4, pg-version=9.1 (0.21s)
module=real, test=all, run=5, pg-version=9.1 (0.31s)
module=real, test=all, run=6, pg-version=9.1 (0.26s)
module=real, test=all, run=1, pg-version=9.1 (72.4s)
2020-06-23 19:44:29 +02:00
|
|
|
total: 1
|
2018-04-08 16:19:24 +02:00
|
|
|
|
2018-04-24 15:12:25 +02:00
|
|
|
# **********************************************************************************************************************************
|
|
|
|
# Performance tests
|
|
|
|
#
|
|
|
|
# Performance tests run in a single container but are more like integration tests than unit tests since they call the pgbackrest
|
|
|
|
# executable directly.
|
|
|
|
# **********************************************************************************************************************************
|
|
|
|
performance:
|
|
|
|
|
2018-04-08 16:19:24 +02:00
|
|
|
# ********************************************************************************************************************************
|
|
|
|
- name: performance
|
|
|
|
|
|
|
|
test:
|
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
2019-09-28 19:17:21 +02:00
|
|
|
- name: archive-perl
|
2018-04-08 16:19:24 +02:00
|
|
|
total: 1
|
2019-09-28 20:24:27 +02:00
|
|
|
|
|
|
|
test:
|
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: type
|
2020-10-26 18:18:45 +02:00
|
|
|
total: 5
|
2020-03-27 03:05:36 +02:00
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------------------------------------------------------
|
|
|
|
- name: storage
|
2020-03-30 03:25:48 +02:00
|
|
|
total: 2
|
2020-03-27 03:05:36 +02:00
|
|
|
|
|
|
|
include:
|
|
|
|
- storage/helper
|