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 automatic test for the ebpf_tracing.cmd #2365

Open
gtrevi opened this issue Apr 22, 2023 · 0 comments
Open

Add automatic test for the ebpf_tracing.cmd #2365

gtrevi opened this issue Apr 22, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed tests triaged Discussed in a triage meeting
Milestone

Comments

@gtrevi
Copy link
Collaborator

gtrevi commented Apr 22, 2023

Describe the feature you'd like supported

Add an automatic test for ebpf_tracing.cmd script, as per suggestion on #2357

Proposed solution

Run the script with its supported scenarios, and check for the expected the outputs:

# Test #1
ebpf_tracing.cmd start "C:\_ebpf\logs"
- Tracing is started in the log folder, at least one log file is created

# Test #2 - The script should be left running for 'logman_period', eventually changing it artificially
ebpf_tracing.cmd periodic "C:\_ebpf\logs" 
 - An XML file is created for the rundown, in the committed directory
 - ETL files are moved into the committed directory, except 'num_etl_files_to_keep'
 - All files older than 'files_max_age_days' are deleted, eventually changing it artificially
 
# Test #3
ebpf_tracing.cmd stop "C:\_ebpf\logs" 
-  Log folder is deleted

Additional context

No response

@gtrevi gtrevi added enhancement New feature or request good first issue Good for newcomers tests labels Apr 22, 2023
@gtrevi gtrevi added the help wanted Extra attention is needed label Apr 22, 2023
@dahavey dahavey added the triaged Discussed in a triage meeting label Apr 24, 2023
@dahavey dahavey added this to the 2304 milestone Apr 24, 2023
@dahavey dahavey removed the help wanted Extra attention is needed label Apr 24, 2023
@gtrevi gtrevi modified the milestones: 2304, 2305 May 1, 2023
@dthaler dthaler modified the milestones: 2305, 2306 Jun 1, 2023
@dthaler dthaler modified the milestones: 2306, 2307 Jul 1, 2023
@gtrevi gtrevi modified the milestones: 2307, 2308 Jul 24, 2023
@dahavey dahavey modified the milestones: 2308, 2309 Aug 7, 2023
@dahavey dahavey modified the milestones: 2309, Backlog Sep 27, 2023
@dahavey dahavey added the help wanted Extra attention is needed label Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed tests triaged Discussed in a triage meeting
Projects
None yet
Development

No branches or pull requests

3 participants