mirror of
https://github.com/systemd/systemd.git
synced 2025-01-11 09:18:07 +03:00
4601c7aa8f
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 "$@"
|