mirror of
https://github.com/systemd/systemd
synced 2024-09-06 16:56:43 +00:00
![Lennart Poettering](/assets/img/avatar_default.png)
This adds a test for checking we can safely order boot IDs via the timestamp of their most recent known entry. It takes a set of journal files (supplied by a user) and that are partially corrupted, and ensures we get a clear, defined order of boot IDs out of it.
20 lines
403 B
Bash
Executable file
20 lines
403 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
set -e
|
|
|
|
TEST_DESCRIPTION="Journal-related tests"
|
|
|
|
# shellcheck source=test/test-functions
|
|
. "${TEST_BASE_DIR:?}/test-functions"
|
|
|
|
test_append_files() {
|
|
local workspace="${1:?}"
|
|
|
|
mkdir -p "$workspace/test-journals/"
|
|
cp -av "${TEST_BASE_DIR:?}/test-journals/"* "$workspace/test-journals/"
|
|
|
|
inst_binary unzstd
|
|
}
|
|
|
|
do_test "$@"
|