diff options
author | Frantisek Sumsal <frantisek@sumsal.cz> | 2023-05-03 11:06:01 +0200 |
---|---|---|
committer | Frantisek Sumsal <frantisek@sumsal.cz> | 2023-05-03 17:22:37 +0200 |
commit | c4039ceb9e063d72f6afb7bc05d583de55966718 (patch) | |
tree | 9e9fffc3045fcc7a91ba3e24aa858ce0384a21a5 /test | |
parent | a76dc1f3a042adf203a79c34846563f5528b17bb (diff) | |
download | systemd-c4039ceb9e063d72f6afb7bc05d583de55966718.tar.gz |
test: further extend our collection of corrupted journals
And make adding them slightly easier.
Provides coverage for b5335da7a5.
Diffstat (limited to 'test')
-rw-r--r-- | test/test-journals/corrupted/id:000000,src:000031,time:210669947,execs:34191940,op:havoc,rep:32.zst | bin | 0 -> 2969 bytes | |||
-rwxr-xr-x | test/units/testsuite-04.sh | 4 |
2 files changed, 4 insertions, 0 deletions
diff --git a/test/test-journals/corrupted/id:000000,src:000031,time:210669947,execs:34191940,op:havoc,rep:32.zst b/test/test-journals/corrupted/id:000000,src:000031,time:210669947,execs:34191940,op:havoc,rep:32.zst Binary files differnew file mode 100644 index 0000000000..4090680801 --- /dev/null +++ b/test/test-journals/corrupted/id:000000,src:000031,time:210669947,execs:34191940,op:havoc,rep:32.zst diff --git a/test/units/testsuite-04.sh b/test/units/testsuite-04.sh index 3a7c0347ae..7ed9189623 100755 --- a/test/units/testsuite-04.sh +++ b/test/units/testsuite-04.sh @@ -323,6 +323,10 @@ JOURNAL_DIR="$(mktemp -d)" REMOTE_OUT="$(mktemp -d)" # tar on C8S doesn't support the --zstd option unzstd --stdout "/test-journals/afl-corrupted-journals.tar.zst" | tar -xC "$JOURNAL_DIR/" +while read -r file; do + filename="${file##*/}" + unzstd "$file" -o "$JOURNAL_DIR/${filename%*.zst}" +done < <(find /test-journals/corrupted/ -name "*.zst") # First, try each of them sequentially. Skip this part when running with plain # QEMU, as it is excruciatingly slow # Note: we care only about exit code 124 (timeout) and special bash exit codes |