Skip to content

Commit

Permalink
test: adjust tests (part 2)
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Michalski <[email protected]>
  • Loading branch information
janekmi committed Feb 5, 2024
1 parent f7a0fb5 commit 506a7ff
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/test/util_poolset/grep0.log.match
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ $(OPT)compiled with support for Valgrind drd
$(OPT)compiled with support for shutdown state
$(OPT)compiled with libndctl 63+
open "$(nW)/testset0": No such file or directory
cannot create pool set -- '$(nW)/testset0'
$(OPT)Cannot read device usc - ndctl is not available
$(OPT)Unsafe shutdown count is not supported for this source
$(OPT)Cannot read device usc - ndctl is not available
Expand All @@ -19,17 +20,32 @@ $(OPT)Unsafe shutdown count is not supported for this source
$(OPT)Cannot read device usc - ndctl is not available
$(OPT)Unsafe shutdown count is not supported for this source
size 1000000 smaller than 2097152
failed to create file: $(nW)/testfile41
size 1000000 smaller than 2097152
failed to create file: $(nW)/testfile52
open "$(nW)/nodir/testfile62": No such file or directory
failed to create file: $(nW)/testfile62
open "/proc/testfile72": Permission denied
failed to create file: /proc/testfile72
posix_fallocate "$(nW)/testfile82", 1073741824: No space left on device
failed to create file: $(nW)/testfile82
open "$(nW)/testfile102": Permission denied
failed to open file: $(nW)/testfile102
file size does not match config: $(nW)testfile113, 4194304 != 1048576
size 12288 smaller than 2097152
failed to open file: $(nW)/testfile122
size 12288 smaller than 2097152
failed to open file: $(nW)/testfile131
file size does not match config: $(nW)testfile142, 4194304 != 8388608
file size does not match config: $(nW)testfile152, 3145728 != 4194304
Non-empty file detected
header creation failed - part #1
replica #0 headers initialization failed
replica #0 creation failed
Non-empty file detected
header creation failed - part #0
replica #0 headers initialization failed
replica #0 creation failed
open "$(nW)/testset23": Permission denied
cannot create pool set -- '$(nW)/testset23'
reservation pool size 1048576 smaller than 4194304
12 changes: 12 additions & 0 deletions src/test/util_poolset/grep1.log.match
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,28 @@ $(OPT)compiled with support for Valgrind drd
$(OPT)compiled with support for shutdown state
$(OPT)compiled with libndctl 63+
open "$(nW)/testset0": No such file or directory
cannot open pool set -- '$(nW)/testset0'
invalid major version (0)
header check failed - part #0
open "$(nW)/testset2": Permission denied
cannot open pool set -- '$(nW)/testset2'
open "$(nW)/testfile31": No such file or directory
failed to open file: $(nW)/testfile31
open "$(nW)/testfile32": No such file or directory
failed to open file: $(nW)/testfile32
open "$(nW)/testfile31": No such file or directory
failed to open file: $(nW)/testfile31
open "$(nW)/testfile42": No such file or directory
failed to open file: $(nW)/testfile42
size 1048576 smaller than 2097152
failed to open file: $(nW)/testfile51
size 1048576 smaller than 2097152
failed to open file: $(nW)/testfile62
size 2097151 smaller than 2097152
failed to open file: $(nW)/testfile71
open "$(nW)/testfile82": Permission denied
failed to open file: $(nW)/testfile82
file size does not match config: $(nW)testfile92, 4194304 != 65536
file size does not match config: $(nW)testfile102, 4194303 != 4194304
invalid major version (0)
header check failed - part #0
10 changes: 10 additions & 0 deletions src/test/util_poolset/grep2.log.match
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,28 @@ $(OPT)compiled with support for Valgrind drd
$(OPT)compiled with support for shutdown state
$(OPT)compiled with libndctl 63+
invalid checksum of pool header
header check failed - part #1
wrong pool type: "ERRORXX"
header check failed - part #1
pool version 99 (library expects 1)
header check failed - part #1
invalid reserved values
invalid machine value
invalid data value
invalid machine_class value
invalid alignment_desc value
wrong architecture flags
header check failed - part #1
incompatible feature flags
header check failed - part #1
incompatible feature flags
header check failed - part #1
incompatible feature flags
header check failed - part #1
wrong pool set UUID
header check failed - part #1
wrong part UUID
header check failed - part #0
wrong part UUID
header check failed - part #0
wrong replica UUID
7 changes: 7 additions & 0 deletions src/test/util_poolset/grep6.log.match
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,16 @@ $(OPT)compiled with support for Valgrind drd
$(OPT)compiled with support for shutdown state
$(OPT)compiled with libndctl 63+
cannot mix directories and files in a set
cannot create pool set -- '$(nW)/testset2'
cannot mix directories and files in a set
cannot create pool set -- '$(nW)/testset3'
cannot mix directories and files in a set
cannot create pool set -- '$(nW)/testset4'
cannot mix directories and files in a set
cannot create pool set -- '$(nW)/testset6'
cannot mix directories and files in a set
cannot create pool set -- '$(nW)/testset7'
cannot mix directories and files in a set
cannot create pool set -- '$(nW)/testset8'
cannot mix directories and files in a set
cannot create pool set -- '$(nW)/testset9'

0 comments on commit 506a7ff

Please sign in to comment.