Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test for process_monitor.exe tool #23

Merged
merged 9 commits into from
Apr 24, 2024

Conversation

Alan-Jowett
Copy link
Member

Description

This pull request introduces a new Process Monitor test in the CI/CD pipeline and includes necessary scripts to install and test eBPF for Windows. The most significant changes are the addition of a new job in the CI/CD workflow, the creation of a PowerShell script to install eBPF for Windows, and a PowerShell script to test the Process Monitor tool.

CI/CD Workflow:

  • .github/workflows/cicd.yml: A new job process_monitor has been added to the workflow. This job is designed to run the Process Monitor test and it uses a reusable test workflow. The job requires eBPF for Windows to be installed, which is handled by the pre_test command.

Scripts:

  • scripts/Install-eBbpfForWindows.ps1: This new PowerShell script installs eBPF for Windows. It takes a version parameter and downloads the corresponding eBPF installer from the GitHub releases page. The installer is then executed to install eBPF for Windows.
  • tools/process_monitor/Test-ProcessMonitor.ps1: This new PowerShell script tests the functionality of the Process Monitor tool. It checks if eBPF for Windows and the ntosebpfext service are installed and running, starts the Process Monitor tool, launches a child process, and checks if the output file of the Process Monitor tool contains the expected string.

Testing

CI/CD

Documentation

No.

Installation

No.

Alan Jowett added 8 commits April 22, 2024 18:32
Signed-off-by: Alan Jowett <[email protected]>
Signed-off-by: Alan Jowett <[email protected]>
Signed-off-by: Alan Jowett <[email protected]>
Signed-off-by: Alan Jowett <[email protected]>
Signed-off-by: Alan Jowett <[email protected]>
Signed-off-by: Alan Jowett <[email protected]>
Signed-off-by: Alan Jowett <[email protected]>
@Alan-Jowett Alan-Jowett merged commit d7e6a5f into microsoft:main Apr 24, 2024
15 checks passed
@Alan-Jowett Alan-Jowett deleted the test_process_monitor branch April 24, 2024 01:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant