collection 교체

This commit is contained in:
정훈 변
2024-02-23 16:37:40 +09:00
parent b494779b5b
commit 3fd554eee9
38862 changed files with 220204 additions and 6600073 deletions

View File

@@ -1 +1,5 @@
shippable/posix/group3
# Copyright (c) Ansible Project
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later
azp/posix/3

View File

@@ -1,3 +0,0 @@
#!/usr/bin/env bash
"$1" 100 &
echo "$!" > "$2"

View File

@@ -1,6 +1,7 @@
/*
* (c) 2022, Alexei Znamensky <russoz@gmail.com>
* GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
* Copyright (c) 2022, Alexei Znamensky <russoz@gmail.com>
* GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
* SPDX-License-Identifier: GPL-3.0-or-later
*/
#include <stdlib.h>

View File

@@ -1,2 +1,7 @@
---
# Copyright (c) Ansible Project
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later
dependencies:
- setup_remote_tmp_dir

View File

@@ -4,8 +4,9 @@
####################################################################
# Test code for the pids module
# Copyright: (c) 2019, Saranya Sridharan
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# Copyright (c) 2019, Saranya Sridharan
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later
- name: Attempt installation of latest 'psutil' version
pip:
@@ -31,7 +32,7 @@
- name: "Picking a random process name"
set_fact:
random_name: some-random-long-name-{{ 99999999 | random }}
random_name: some-random-long-name-{{ 10000000000 + (9999999999 | random) }}
- name: Copy the fake 'sleep' source code
copy:
@@ -42,15 +43,14 @@
- name: Compile fake 'sleep' binary
command: cc {{ remote_tmp_dir }}/sleeper.c -o {{ remote_tmp_dir }}/{{ random_name }}
- name: Copy helper script
copy:
src: obtainpid.sh
- name: Copy templated helper script
template:
src: obtainpid.sh.j2
dest: "{{ remote_tmp_dir }}/obtainpid.sh"
mode: 0755
- name: "Run the fake 'sleep' binary"
command: "sh {{ remote_tmp_dir }}/obtainpid.sh '{{ remote_tmp_dir }}/{{ random_name }}' '{{ remote_tmp_dir }}/obtainpid.txt'"
command: sh {{ remote_tmp_dir }}/obtainpid.sh
async: 100
poll: 0
@@ -65,17 +65,17 @@
- name: "Checking that exact non-substring matches are required"
pids:
name: "{{ random_name[0:5] }}"
name: "{{ random_name[0:25] }}"
register: exactpidmatch
- name: "Checking that patterns can be used with the pattern option"
pids:
pattern: "{{ random_name[0:5] }}"
pattern: "{{ random_name[0:25] }}"
register: pattern_pid_match
- name: "Checking that case-insensitive patterns can be used with the pattern option"
pids:
pattern: "{{ random_name[0:5] | upper }}"
pattern: "{{ random_name[0:25] | upper }}"
ignore_case: true
register: caseinsensitive_pattern_pid_match
@@ -89,6 +89,15 @@
src: "{{ remote_tmp_dir }}/obtainpid.txt"
register: newpid
- name: Gather all processes to make debugging easier
command: ps aux
register: result
no_log: true
- name: List all processes to make debugging easier
debug:
var: result.stdout_lines
- name: "Verify that the Process IDs (PIDs) returned is not empty and also equal to the PIDs obtained in console"
assert:
that:

View File

@@ -0,0 +1,7 @@
#!/usr/bin/env bash
# Copyright (c) Ansible Project
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later
"{{ remote_tmp_dir }}/{{ random_name }}" 100 &
echo "$!" > "{{ remote_tmp_dir }}/obtainpid.txt"