Debian Codegraph @

ansible_collections/community/general/tests/integration/targets/connection_wsl/runme.sh

raw
1 #!/usr/bin/env bash
2 # Derived from ../connection_proxmox_pct_remote/runme.sh Copyright (c) 2025 Nils Stein (@mietzen) <[email protected]>
3 # Copyright (c) 2025 Rui Lopes (@rgl) <ruilopes.com>
4 # Copyright (c) 2025 Ansible Project
5 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
6 # SPDX-License-Identifier: GPL-3.0-or-later
7
8 set -eux
9
10 # signal the wsl connection plugin that its running under the integration testing mode.
11 # NB while running integration tests, the mock wsl.exe implementation is actually
12 # running on unix, instead of on running windows, so the wsl.exe command line
13 # construction must use unix rules instead of windows rules.
14 export _ANSIBLE_TEST_WSL_CONNECTION_PLUGIN_WAERI5TEPHEESHA2FAE8=1
15
16 ANSIBLE_ROLES_PATH=../ \
17 ansible-playbook dependencies.yml -v "$@"
18
19 ./test.sh "$@"
20
21 ansible-playbook plugin-specific-tests.yml -i "./test_connection.inventory" \
22 -e target_hosts=wsl \
23 -e action_prefix= \
24 -e local_tmp=/tmp/ansible-local \
25 -e remote_tmp=/tmp/ansible-remote \
26 "$@"