== Testsuite
-=== Rootless in a container with podman
+=== In a container
[,console]
----
$ cd <DRACUT_SOURCE>
-$ test/test-podman.sh [TESTS] [CONTAINER]
+$ test/test.sh [CONTAINER] [TESTS]
----
with `[CONTAINER]` being one of the
https://github.com/orgs/dracut-ng/packages[github `dracut-ng` containers],
-e.g. `ghcr.io/dracut-ng/fedora:latest`.
+e.g. `fedora`.
=== On bare metal
+++ /dev/null
-#!/bin/sh
-
-set -ex
-
-TESTS=$1
-CONTAINER=$2
-
-[ -z "$CONTAINER" ] && CONTAINER='ghcr.io/dracut-ng/fedora'
-
-podman run --rm -it --device=/dev/kvm -v "$PWD"/:/z "$CONTAINER" /z/test/test-github.sh id "$TESTS"
--- /dev/null
+#!/bin/bash
+
+set -e
+
+CONTAINER=$1
+TESTS=$2
+
+[ -z "$CONTAINER" ] && CONTAINER='fedora'
+
+if command -v podman &> /dev/null; then
+ podman run --rm -it --device=/dev/kvm -e V=0 -v "$PWD"/:/z "ghcr.io/dracut-ng/$CONTAINER" /z/test/test-github.sh id "$TESTS"
+else
+ docker run --rm -it --device=/dev/kvm -e V=0 -v "$PWD"/:/z "ghcr.io/dracut-ng/$CONTAINER" /z/test/test-github.sh id "$TESTS"
+fi