mirror of
https://github.com/systemd/systemd.git
synced 2025-02-23 13:57:33 +03:00
test: move TEST-22-TMPFILES setup to static files
This commit is contained in:
parent
c1d6c135bc
commit
c0b97b0fc8
@ -9,23 +9,9 @@ test_setup() {
|
||||
# create the basic filesystem layout
|
||||
setup_basic_environment
|
||||
mask_supporting_services
|
||||
inst_binary mv
|
||||
inst_binary stat
|
||||
inst_binary seq
|
||||
inst_binary xargs
|
||||
inst_binary mkfifo
|
||||
inst_binary readlink
|
||||
|
||||
# setup the testsuite service
|
||||
cp testsuite.service $initdir/etc/systemd/system/
|
||||
setup_testsuite
|
||||
|
||||
mkdir -p $initdir/testsuite
|
||||
cp run-tmpfiles-tests.sh $initdir/testsuite/
|
||||
cp test-*.sh $initdir/testsuite/
|
||||
|
||||
# create dedicated rootfs for nspawn (located in $TESTDIR/nspawn-root)
|
||||
setup_nspawn_root
|
||||
}
|
||||
|
||||
do_test "$@"
|
||||
do_test "$@" 22
|
||||
|
@ -58,15 +58,19 @@ BASICTOOLS=(
|
||||
ln
|
||||
loadkeys
|
||||
login
|
||||
mkfifo
|
||||
mktemp
|
||||
modprobe
|
||||
mount
|
||||
mv
|
||||
nc
|
||||
readlink
|
||||
rm
|
||||
rmdir
|
||||
sed
|
||||
setfont
|
||||
setsid
|
||||
seq
|
||||
sh
|
||||
sleep
|
||||
socat
|
||||
|
@ -1,12 +1,11 @@
|
||||
[Unit]
|
||||
Description=Testsuite service
|
||||
Description=TEST-22-TMPFILES
|
||||
After=systemd-tmpfiles-setup.service
|
||||
Before=getty-pre.target
|
||||
Wants=getty-pre.target
|
||||
|
||||
[Service]
|
||||
WorkingDirectory=/testsuite
|
||||
ExecStart=/testsuite/run-tmpfiles-tests.sh
|
||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
||||
Type=oneshot
|
||||
StandardOutput=tty
|
||||
StandardError=tty
|
@ -5,8 +5,8 @@ set -e
|
||||
|
||||
>/failed
|
||||
|
||||
for t in test-*.sh; do
|
||||
echo "Running $t"; ./$t
|
||||
for t in ${0%.sh}.*.sh; do
|
||||
echo "Running $t"; ./$t
|
||||
done
|
||||
|
||||
touch /testok
|
Loading…
x
Reference in New Issue
Block a user