]> git.ipfire.org Git - thirdparty/systemd.git/blame - test/TEST-14-MACHINE-ID/test.sh
tests: add spdx headers to scripts and Makefiles
[thirdparty/systemd.git] / test / TEST-14-MACHINE-ID / test.sh
CommitLineData
ff12a795 1#!/usr/bin/env bash
7b3cec95 2# SPDX-License-Identifier: LGPL-2.1-or-later
818567fc 3set -e
3f161ba9 4
7ae8162f 5TEST_DESCRIPTION="/etc/machine-id testing"
3be6f501 6IMAGE_NAME="badid"
054ee249 7TEST_NO_NSPAWN=1
c2d4da00 8
3f161ba9
FS
9# shellcheck source=test/test-functions
10. "${TEST_BASE_DIR:?}/test-functions"
fcb24270 11
d9e606e8 12test_append_files() {
3f161ba9 13 printf "556f48e837bc4424a710fa2e2c9d3e3c\ne3d\n" >"${1:?}/etc/machine-id"
fcb24270
EV
14}
15
c4cd6205 16do_test "$@"