From 55da49dd94711e3d5541b40069a000a1709864ed Mon Sep 17 00:00:00 2001 From: Carlos R.F Date: Aug 20 2023 20:47:51 +0000 Subject: podman: test systemd socket activation Signed-off-by: Carlos R.F --- diff --git a/tests/p_podman/15_podman_socket_tests.sh b/tests/p_podman/15_podman_socket_tests.sh new file mode 100755 index 0000000..2bf7093 --- /dev/null +++ b/tests/p_podman/15_podman_socket_tests.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +# Author: Carlos Rodriguez-Fernandez + +t_Log "Running $0 - podman socket tests" + +if [ "$centos_ver" -lt 8 ] ; then + t_Log "SKIP $0: only run on centos stream 8 or greater" + exit 0 +fi + +useradd podman-remote-test +loginctl enable-linger podman-remote-test +output_file=$(mktemp) +trap "loginctl terminate-user podman-remote-test && loginctl disable-linger podman-remote-test && sleep 1 && userdel -r podman-remote-test && rm -f ${output_file}" EXIT + +su -l podman-remote-test > ${output_file} 2>&1 <