New upstream version 2021.5
This commit is contained in:
commit
75e180c3f8
26 files changed
+591
-233
No files matched your search
@@ -35,6 +35,17 @@ assert_not_reached () {
|
||||
fatal "$@"
|
||||
}
|
||||
|
||||
# Output an ok message for TAP
|
||||
n_tap_tests=0
|
||||
tap_ok() {
|
||||
echo "ok" "$@"
|
||||
n_tap_tests=$(($n_tap_tests+1))
|
||||
}
|
||||
|
||||
tap_end() {
|
||||
echo "1..${n_tap_tests}"
|
||||
}
|
||||
|
||||
# Some tests look for specific English strings. Use a UTF-8 version
|
||||
# of the C (POSIX) locale if we have one, or fall back to en_US.UTF-8
|
||||
# (https://sourceware.org/glibc/wiki/Proposals/C.UTF-8)
|
||||
|
||||
+4
-3
@@ -54,11 +54,12 @@ function verify_initial_contents() {
|
||||
assert_file_has_content baz/cow '^moo$'
|
||||
}
|
||||
|
||||
n_base_tests=35
|
||||
gpg_tests=3
|
||||
if has_gpgme; then
|
||||
echo "1..38"
|
||||
echo "1..$(($n_base_tests+$gpg_tests))"
|
||||
else
|
||||
# 3 tests needs GPG support
|
||||
echo "1..35"
|
||||
echo "1..$((n_base_tests))"
|
||||
fi
|
||||
|
||||
# Try both syntaxes
|
||||
|
||||
@@ -26,8 +26,6 @@ set -euo pipefail
|
||||
# Exports OSTREE_SYSROOT so --sysroot not needed.
|
||||
setup_os_repository "archive" "syslinux"
|
||||
|
||||
echo "1..2"
|
||||
|
||||
${CMD_PREFIX} ostree --repo=sysroot/ostree/repo pull-local --remote=testos testos-repo testos/buildmain/x86_64-runtime
|
||||
rev=$(${CMD_PREFIX} ostree --repo=sysroot/ostree/repo rev-parse testos/buildmain/x86_64-runtime)
|
||||
export rev
|
||||
@@ -53,6 +51,9 @@ chmod 700 ${etc}/a/long/dir/forking
|
||||
# Symlink to nonexistent path, to ensure we aren't walking symlinks
|
||||
ln -s no-such-file ${etc}/a/link-to-no-such-file
|
||||
|
||||
# fifo which should be ignored
|
||||
mkfifo "${etc}/fifo-to-ignore"
|
||||
|
||||
# Remove a directory
|
||||
rm ${etc}/testdirectory -rf
|
||||
|
||||
@@ -68,6 +69,10 @@ newetc=${newroot}/etc
|
||||
assert_file_has_content ${newroot}/usr/etc/NetworkManager/nm.conf "a default daemon file"
|
||||
assert_file_has_content ${newetc}/NetworkManager/nm.conf "a modified config file"
|
||||
|
||||
if test -e "${newetc}"/fifo-to-ignore; then
|
||||
fatal "Should not have copied fifo!"
|
||||
fi
|
||||
|
||||
assert_file_has_mode() {
|
||||
stat -c '%a' $1 > mode.txt
|
||||
if ! grep -q -e "$2" mode.txt; then
|
||||
@@ -89,7 +94,7 @@ test -L ${newetc}/a/link-to-no-such-file || assert_not_reached "should have syml
|
||||
assert_has_dir ${newroot}/usr/etc/testdirectory
|
||||
assert_not_has_dir ${newetc}/testdirectory
|
||||
|
||||
echo "ok"
|
||||
tap_ok first
|
||||
|
||||
# Add /etc/initially-empty
|
||||
cd "${test_tmpdir}/osdata"
|
||||
@@ -141,4 +146,6 @@ assert_not_has_file sysroot/ostree/deploy/testos/deploy/${rev}.0/usr/etc/initial
|
||||
assert_has_file sysroot/ostree/deploy/testos/deploy/${rev}.0/etc/initially-empty/mynewfile
|
||||
rm ${newconfpath}
|
||||
|
||||
echo "ok"
|
||||
tap_ok second
|
||||
|
||||
tap_end
|
||||
@@ -56,7 +56,7 @@ echo 'ok documented symbols'
|
||||
|
||||
# ONLY update this checksum in release commits!
|
||||
cat > released-sha256.txt <<EOF
|
||||
9d020c9696a6df66b32714dc1ef37d06bb90b4adf8b248558b5838f9ee18729a ${released_syms}
|
||||
b28728cc162642b66ca7d9c4333b8e63dedf6321b29a3a019037d8c0c609e00d ${released_syms}
|
||||
EOF
|
||||
sha256sum -c released-sha256.txt
|
||||
|
||||
|
||||
Reference in new issue
Block a user