summaryrefslogtreecommitdiffstats
path: root/debian/tests/unit-tests-stable
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-14 20:03:05 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-14 20:03:05 +0000
commitcb54f328515d55394b71e492ffbfefe5e6b0d891 (patch)
tree51ffbd301c8897ba0ff6c3d7be0e9d9cc98aee09 /debian/tests/unit-tests-stable
parentAdding upstream version 2.10.7+merged+base+2.10.8+dfsg. (diff)
downloadansible-debian.tar.xz
ansible-debian.zip
Adding debian version 2.10.7+merged+base+2.10.8+dfsg-1.debian/2.10.7+merged+base+2.10.8+dfsg-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/tests/unit-tests-stable')
-rwxr-xr-xdebian/tests/unit-tests-stable61
1 files changed, 61 insertions, 0 deletions
diff --git a/debian/tests/unit-tests-stable b/debian/tests/unit-tests-stable
new file mode 100755
index 00000000..71865830
--- /dev/null
+++ b/debian/tests/unit-tests-stable
@@ -0,0 +1,61 @@
+#!/bin/sh
+
+set -e
+
+BASEPATH=$(pwd)
+
+unit_test_dirs="
+ansible_collections/amazon/aws
+ansible_collections/ansible/posix
+ansible_collections/ansible/windows
+ansible_collections/arista/eos
+ansible_collections/cisco/aci
+ansible_collections/cisco/asa
+ansible_collections/cisco/ios
+ansible_collections/cisco/iosxr
+ansible_collections/cisco/nso
+ansible_collections/cisco/nxos
+ansible_collections/community/crypto
+ansible_collections/community/docker
+ansible_collections/community/fortios
+ansible_collections/community/google
+ansible_collections/community/grafana
+ansible_collections/community/kubevirt
+ansible_collections/community/libvirt
+ansible_collections/community/mysql
+ansible_collections/community/network
+ansible_collections/community/postgresql
+ansible_collections/community/rabbitmq
+ansible_collections/community/routeros
+ansible_collections/community/windows
+ansible_collections/f5networks/f5_modules
+ansible_collections/frr/frr
+ansible_collections/google/cloud
+ansible_collections/mellanox/onyx
+ansible_collections/netapp/aws
+ansible_collections/netapp/elementsw
+ansible_collections/netbox/netbox
+ansible_collections/openvswitch/openvswitch
+ansible_collections/vyos/vyos
+"
+
+for i in $unit_test_dirs; do
+
+ cd $i 2> /dev/null || continue
+
+ echo "\n\n"
+ echo "############################################################"
+ echo "############################################################"
+ echo "#### Running tests in $i"
+ echo "############################################################"
+ echo "############################################################"
+
+ /usr/bin/ansible-test units \
+ --python-interpreter /usr/bin/python3 \
+ --python 3.9 \
+ --local
+
+ cd $BASEPATH
+done
+
+exit 0