Add test for process_monitor.exe tool #23
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 jobprocess_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 thepre_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 thentosebpfext
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.