mirror of
https://git.proxmox.com/git/systemd
synced 2026-01-21 20:52:03 +00:00
We don't print all journal files. This is misleading a bit: https://github.com/systemd/systemd/pull/4331#issuecomment-252830790 https://github.com/systemd/systemd/pull/4395#discussion_r87948836
35 lines
1.3 KiB
Bash
Executable File
35 lines
1.3 KiB
Bash
Executable File
#!/bin/sh
|
|
# run upstream system integration tests
|
|
# Author: Martin Pitt <martin.pitt@ubuntu.com>
|
|
set -e
|
|
|
|
# even after installing policycoreutils this fails with
|
|
# "Failed to install /usr/libexec/selinux/hll/pp"
|
|
BLACKLIST="TEST-06-SELINUX"
|
|
|
|
# modify the image build scripts to install systemd from the debs instead of
|
|
# from a "make install" as we don't have a built tree here. Also call
|
|
# systemd-nspawn from the system.
|
|
sed -i '/make.* install/ s%^.*$% for p in `grep ^Package: '`pwd`'/debian/control | cut -f2 -d\\ |grep -Ev -- "-(udeb|dev)"`; do (cd /tmp; apt-get download $p \&\& dpkg-deb --fsys-tarfile ${p}[._]*deb | tar -C $initdir --dereference -x); done%; s_../../systemd-nspawn_systemd-nspawn_g' test/test-functions
|
|
|
|
# FIXME: avoid building the entire tree when running tests
|
|
sed -i '/@make.*all/ d' test/TEST*/Makefile
|
|
|
|
# adjust path
|
|
sed -i 's_/usr/libexec/selinux/hll/pp_/usr/lib/selinux/hll/pp_' test/TEST-06-SELINUX/test.sh
|
|
|
|
for t in test/TEST*; do
|
|
echo "$BLACKLIST" | grep -q "$(basename $t)" && continue
|
|
echo "========== `basename $t` =========="
|
|
rm -rf /var/tmp/systemd-test.*
|
|
if ! make -C $t clean setup run; then
|
|
for j in /var/tmp/systemd-test.*/journal/*; do
|
|
[ -e "$j" ] || continue
|
|
echo "---- $j ----"
|
|
journalctl --directory=$j
|
|
done
|
|
exit 1
|
|
fi
|
|
echo
|
|
done
|