File: define.yaml

package info (click to toggle)
pgbackrest 2.57.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,344 kB
  • sloc: ansic: 127,546; xml: 19,452; perl: 12,761; pascal: 3,279; sh: 91; sql: 32; makefile: 23
file content (1077 lines) | stat: -rw-r--r-- 35,471 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
# **********************************************************************************************************************************
# 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
#     * define - defines for C code (will also be applied to the test harness)
#     * binReq - is the pgbackrest binary required for this test?
#     * containerReq - is this test required to run in a container?
#
# Some options are unique to tests:
#     * 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: noCode). If a code module is included
#         in another code module it should be marked as included (e.g. - md5.vendor: included).
#     * 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.
#       * shim - list of modules that are shimmed in the harness. This allows the harness to access static elements of the module to
#         provide additional services for unit testing. A shim can have a 'function' list. In this case the listed functions in the
#         C module will be appended with _SHIMMED and an implementation with the same function signature must be provided in the
#         harness. Generally speaking this function will default to calling the original function, but after some initialization the
#         shim may implement other logic that is useful for unit 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.
#     * total - total runs in the test
#     * vm - VMs that the test will be run on
#     * 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.
# **********************************************************************************************************************************

# **********************************************************************************************************************************
# Unit tests
# **********************************************************************************************************************************
unit:

  # ********************************************************************************************************************************
  - name: common

    test:
      # ----------------------------------------------------------------------------------------------------------------------------
      - name: error
        total: 9
        feature: error
        harness:
          name: error
          shim:
            common/error/error: ~

        coverage:
          - common/error/error
          - common/error/error.auto: noCode

        depend:
          - common/stackTrace

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: stack-trace
        total: 4
        feature: stackTrace
        harness:
          name: stackTrace
          shim:
            common/stackTrace:
              function:
                - stackTraceBackCallback

        coverage:
          - common/stackTrace

        depend:
          - common/debug
          - common/type/stringStatic

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: assert-off
        total: 1
        define: -DNDEBUG

        coverage:
          - common/assert: noCode

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: debug-off
        total: 1
        define: -DNDEBUG

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: assert-on
        feature: assert
        total: 1

        coverage:
          - common/assert: noCode

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: type-convert
        total: 13

        coverage:
          - common/type/convert

        depend:
          - common/time

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: time
        total: 3
        harness:
          name: time
          shim:
            common/time:
              function:
                - timeMSec

        coverage:
          - common/time

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: mem-context
        total: 8
        feature: memContext

        coverage:
          - common/memContext

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: encode
        total: 3

        coverage:
          - common/encode

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: type-object
        total: 1

        coverage:
          - common/type/object

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: type-blob
        total: 1

        coverage:
          - common/type/blob

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: type-string
        total: 26
        feature: string

        coverage:
          - build/common/string
          - common/type/string: included
          - common/type/stringZ
          - common/type/stringId
          - common/type/stringList

        depend:
          - common/type/buffer
          - common/type/keyValue
          - common/type/list
          - common/type/variant
          - common/type/variantList

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: error-retry
        total: 1
        harness:
          name: errorRetry
          shim:
            common/error/retry:
              function:
                - errRetryMessage

        coverage:
          - common/error/retry

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: type-list
        total: 4

        coverage:
          - common/type/list

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: type-buffer
        total: 5

        coverage:
          - common/type/buffer

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: type-variant
        total: 12

        coverage:
          - common/type/variant
          - common/type/variantList

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: reg-exp
        total: 3

        coverage:
          - build/common/regExp
          - common/regExp: included

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: log
        total: 5
        feature: log
        harness:
          name: log
          shim:
            common/log: ~

        coverage:
          - common/log

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: debug-on
        total: 4
        feature: debug

        coverage:
          - common/debug
          - common/type/stringStatic

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: fork
        total: 1

        coverage:
          - common/fork

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: wait
        total: 1

        coverage:
          - common/wait

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: type-json
        total: 2

        coverage:
          - build/common/json
          - common/type/json: included

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: type-key-value
        total: 2

        coverage:
          - common/type/keyValue

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: type-xml
        total: 1

        coverage:
          - build/common/xml
          - common/type/xml: included

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: stat
        total: 1
        feature: STAT

        coverage:
          - common/stat

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: user
        total: 1

        coverage:
          - common/user

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: io
        total: 6
        feature: IO
        harness: pack
        harness:
          name: fd
          shim:
            common/io/fd:
              function:
                - fdReady

        coverage:
          - 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/limitRead
          - common/io/read
          - common/io/write

        depend:
          - common/type/pack

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: type-pack
        total: 1

        coverage:
          - common/type/pack

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: compress
        total: 5

        coverage:
          - 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/common
          - common/compress/helper

        depend:
          - storage/posix/read
          - storage/posix/storage
          - storage/posix/write
          - storage/iterator
          - storage/list
          - storage/read
          - storage/storage
          - storage/write

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: crypto
        total: 4
        feature: STORAGE
        harness:
          name: storage
          shim:
            storage/posix/storage: ~

        coverage:
          - common/crypto/cipherBlock
          - common/crypto/common
          - common/crypto/hash
          - common/crypto/md5.vendor: included
          - common/crypto/xxhash

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: io-tls
        total: 6
        feature: SOCKET
        harness: server
        harness:
          name: socket
          shim:
            common/io/socket/client:
              function:
                - sckClientOpen
                - sckClientOpenWait

        coverage:
          - common/io/client
          - common/io/server
          - common/io/session
          - common/io/tls/client
          - common/io/tls/common
          - common/io/tls/server
          - common/io/tls/session
          - common/io/socket/address
          - common/io/socket/client
          - common/io/socket/common
          - common/io/socket/server
          - common/io/socket/session

        include:
          - common/io/fdRead
          - common/io/read

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: io-http
        total: 7

        coverage:
          - 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
          - common/io/http/url

        include:
          - common/io/socket/address

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: exec
        total: 2

        coverage:
          - build/common/exec

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: ini
        total: 2

        coverage:
          - common/ini

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: lock
        total: 1
        harness:
          name: config
          shim:
            config/load: ~
        harness:
          name: lock
          shim:
            common/lock:
              function:
                - lockInit
        harness:
          name: storageHelper
          shim:
            storage/helper:
              function:
                - storageRepoGet

        coverage:
          - common/lock

        depend:
          - command/lock
          - config/common
          - config/config
          - config/parse
          - config/exec
          - config/load
          - config/protocol
          - command/command
          - postgres/interface
          - postgres/interface/crc32
          - postgres/interface/page
          - protocol/client
          - protocol/helper
          - protocol/server
          - storage/helper
          - storage/remote/read
          - storage/remote/protocol
          - storage/remote/storage
          - storage/remote/write

  # ********************************************************************************************************************************
  - name: protocol

    test:
      # ----------------------------------------------------------------------------------------------------------------------------
      - name: protocol
        total: 8
        harness:
          name: protocol
          shim:
            protocol/helper:
              function:
                - protocolLocalExec
                - protocolRemoteExec
        containerReq: true
        binReq: true

        coverage:
          - protocol/client
          - protocol/helper
          - protocol/parallel
          - protocol/parallelJob
          - protocol/server

        include:
          - build/common/exec

  # ********************************************************************************************************************************
  - name: config

    test:
      # ----------------------------------------------------------------------------------------------------------------------------
      - name: parse
        total: 6

        coverage:
          - config/common
          - config/config
          - config/parse
          - config/parse.auto: noCode

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: load
        total: 4

        coverage:
          - config/load

        include:
          - common/io/socket/common

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: exec
        total: 1

        coverage:
          - config/exec

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: protocol
        total: 1

        coverage:
          - config/protocol

  # ********************************************************************************************************************************
  - name: storage

    test:
      # ----------------------------------------------------------------------------------------------------------------------------
      - name: posix
        total: 24

        coverage:
          - storage/cifs/helper
          - storage/cifs/storage
          - storage/posix/read
          - storage/posix/storage
          - storage/posix/write
          - storage/helper
          - storage/iterator
          - storage/list
          - storage/read
          - storage/storage
          - storage/write

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: remote
        total: 11

        coverage:
          - storage/remote/read
          - storage/remote/protocol
          - storage/remote/storage
          - storage/remote/write
          - storage/helper
          - storage/storage

        include:
          - protocol/client
          - storage/read
          - storage/write

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: azure
        total: 3

        coverage:
          - storage/azure/helper
          - storage/azure/read
          - storage/azure/storage
          - storage/azure/write

        include:
          - storage/helper
          - storage/storage
          - storage/write

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: gcs
        total: 3

        coverage:
          - storage/gcs/helper
          - storage/gcs/read
          - storage/gcs/storage
          - storage/gcs/write

        include:
          - storage/helper
          - storage/storage
          - storage/write

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: s3
        total: 2

        coverage:
          - storage/s3/helper
          - storage/s3/read
          - storage/s3/storage
          - storage/s3/write
          - storage/read
          - storage/helper

        include:
          - storage/storage
          - storage/write

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: sftp
        total: 20
        harness:
          name: libSsh2
          integration: false

        coverage:
          - storage/sftp/helper
          - storage/sftp/read
          - storage/sftp/storage
          - storage/sftp/write

        include:
          - storage/helper
          - storage/read
          - storage/storage
          - storage/write

  # ********************************************************************************************************************************
  - name: postgres

    test:
      # ----------------------------------------------------------------------------------------------------------------------------
      - name: client
        total: 1
        harness:
          name: pq
          integration: false

        coverage:
          - postgres/client

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: interface
        total: 10
        harness: postgres

        coverage:
          - postgres/interface
          - postgres/interface/crc32
          - postgres/interface/page

  # ********************************************************************************************************************************
  - name: build

    test:
      # ----------------------------------------------------------------------------------------------------------------------------
      - name: common
        total: 2

        coverage:
          - build/common/render
          - build/common/yaml

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: config
        total: 1

        coverage:
          - build/config/parse
          - build/config/render

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: error
        total: 1

        coverage:
          - build/error/parse
          - build/error/render

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: help
        total: 2

        coverage:
          - build/help/parse
          - build/help/render

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: postgres
        total: 1

        coverage:
          - build/postgres/parse
          - build/postgres/render

  # ********************************************************************************************************************************
  - name: test

    test:
      # ----------------------------------------------------------------------------------------------------------------------------
      - name: test
        total: 3

        coverage:
          - test/command/test/build
          - test/command/test/define
          - test/command/test/lint
          - test/command/test/test

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: coverage
        total: 1

        coverage:
          - test/command/test/coverage

  # ********************************************************************************************************************************
  - name: info

    test:
      # ----------------------------------------------------------------------------------------------------------------------------
      - name: info
        total: 3
        harness: info

        coverage:
          - info/info

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: info-pg
        total: 2

        coverage:
          - info/infoPg

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: info-archive
        total: 2

        coverage:
          - info/infoArchive

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: manifest
        total: 6
        harness:
          name: manifest
          shim:
            info/manifest: ~

        coverage:
          - info/manifest

        depend:
          - command/backup/common

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: info-backup
        total: 3

        coverage:
          - info/infoBackup

  # ********************************************************************************************************************************
  - name: db

    test:
      # ----------------------------------------------------------------------------------------------------------------------------
      - name: db
        total: 3
        containerReq: true
        binReq: true

        coverage:
          - db/db
          - db/helper
          - db/protocol

  # ********************************************************************************************************************************
  - name: command

    test:

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: lock
        total: 1

        coverage:
          - command/lock

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: control
        total: 4

        coverage:
          - command/control/common
          - command/control/start
          - command/control/stop

        include:
          - command/lock

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: annotate
        total: 1

        coverage:
          - command/annotate/annotate

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: archive-common
        total: 9

        coverage:
          - command/archive/common
          - command/archive/find

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: archive-get
        total: 3
        binReq: true

        coverage:
          - command/archive/common
          - command/archive/get/file
          - command/archive/get/get
          - command/archive/get/protocol

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: archive-push
        total: 4
        binReq: true

        coverage:
          - command/archive/common
          - command/archive/push/file
          - command/archive/push/protocol
          - command/archive/push/push

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: stanza
        total: 4

        coverage:
          - command/stanza/common
          - command/stanza/create
          - command/stanza/upgrade
          - command/stanza/delete

        depend:
          - command/check/common

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: check
        total: 4

        coverage:
          - command/check/common
          - command/check/check
          - command/check/report

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: command
        total: 1

        coverage:
          - command/command

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: expire
        total: 8

        coverage:
          - command/expire/expire

        include:
          - info/infoBackup

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: help
        total: 4

        coverage:
          - command/help/help
          - command/help/help.auto: noCode

        include:
          - build/help/render

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: info
        total: 3

        coverage:
          - command/info/info

        include:
          - command/lock

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: backup
        total: 12
        harness:
          name: backup
          integration: false
          shim:
            command/backup/backup:
              function:
                - backupProcess
        harness:
          name: blockIncr
          shim:
            command/restore/blockDelta: ~

        coverage:
          - command/backup/backup
          - command/backup/blockIncr
          - command/backup/blockMap
          - command/backup/common
          - command/backup/file
          - command/backup/pageChecksum
          - command/backup/protocol
          - command/restore/blockDelta

        include:
          - info/info
          - info/manifest
          - storage/storage

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: restore
        total: 16

        harness: restore

        coverage:
          - command/restore/blockChecksum
          - command/restore/blockDelta
          - command/restore/file
          - command/restore/protocol
          - command/restore/restore
          - command/restore/timeline

        include:
          - common/user
          - info/infoBackup
          - info/manifest

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: manifest
        total: 1

        include:
          - command/manifest/manifest

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: repo
        total: 3

        coverage:
          - command/repo/common
          - command/repo/get
          - command/repo/ls
          - command/repo/put
          - command/repo/rm

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: verify
        total: 14

        coverage:
          - command/verify/file
          - command/verify/protocol
          - command/verify/verify

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: local
        total: 1

        coverage:
          - command/local/local

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: remote
        total: 1

        coverage:
          - command/remote/remote

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: exit
        total: 3

        coverage:
          - command/exit

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: server
        total: 2

        coverage:
          - command/server/ping
          - command/server/server

  # ********************************************************************************************************************************
  - name: doc

    test:
      # ----------------------------------------------------------------------------------------------------------------------------
      - name: build
        total: 1

        coverage:
          - doc/command/build/build
          - doc/command/build/man
          - doc/command/build/reference

# **********************************************************************************************************************************
# 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:

  # ********************************************************************************************************************************
  - name: integration
    db: true

    test:
      # ----------------------------------------------------------------------------------------------------------------------------
      - name: all
        total: 1
        harness: host

# **********************************************************************************************************************************
# 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:

  # ********************************************************************************************************************************
  - name: performance

    test:
      # ----------------------------------------------------------------------------------------------------------------------------
      - name: type
        total: 6

      # ----------------------------------------------------------------------------------------------------------------------------
      - name: storage
        total: 2

        include:
          - storage/helper