summaryrefslogtreecommitdiffstats
path: root/debian/tests/unit-tests-stable
blob: 718658308edd520e1aa562fd18df8811b8e90604 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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