# 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
ln
loadkeys
login
+ mkfifo
+ mktemp
modprobe
mount
mv
nc
+ readlink
rm
rmdir
sed
setfont
setsid
+ seq
sh
sleep
socat
[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
>/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