aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-06-07 12:13:33 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-06-07 12:13:33 +0300
commit7763f4c2e5ace11c729e19d0694b1e3683086e57 (patch)
treecc0a1525a7e84e435230a92cae3a4b980aa5ce95
parenta06122c67a1c0de3bfa8236cbeaba2e4b2b32527 (diff)
downloadarching-kaos-tools-7763f4c2e5ace11c729e19d0694b1e3683086e57.tar.gz
arching-kaos-tools-7763f4c2e5ace11c729e19d0694b1e3683086e57.tar.bz2
arching-kaos-tools-7763f4c2e5ace11c729e19d0694b1e3683086e57.zip
Podman test tool
-rwxr-xr-xfull_test_with_podman.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/full_test_with_podman.sh b/full_test_with_podman.sh
new file mode 100755
index 0000000..4412041
--- /dev/null
+++ b/full_test_with_podman.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+if [ ! -z $1 ] && [ -n "$1" ]
+then
+ tag="$(bash ./test_with_podman.sh "$1" | tail -n 2 | head -n 1 | cut -d ' ' -f 3)"
+ name="$(echo -n $tag | cut -d ':' -f 1 | cut -d '/' -f 2)"
+ container="akt-test-$name"
+ podman run --name $container -d $tag
+ podman exec -it $container bash
+ podman container rm $container
+else
+ echo "Provide one of the following distros as an argument to work with"
+ find podman -type f | sed -e 's/^podman\/ContainerFile\./* /g'
+fi