keploy / keploy

Test generation for Developers. Generate tests and stubs for your application that actually work!
https://keploy.io
Apache License 2.0
3.37k stars 374 forks source link

[feature]: Added Validate() function to check if the linux kernel version is lower than 5.15 #1828

Closed Akash-Singh04 closed 4 weeks ago

Akash-Singh04 commented 1 month ago

Related Issue

Closes: #1811

Describe the changes you've made

Added Validate() function to check if the linux kernel version is lower than 5.15 for eBPF support. Validate() then calls ValidateFlags() for record and test command.

Type of change

Please let us know if any test cases are added

NIL Please describe the tests(if any). Provide instructions how its affecting the coverage. NIL

Describe if there is any unusual behaviour of your code(Write NA if there isn't)

A clear and concise description of it. NIL

Checklist:

Akash-Singh04 commented 1 month ago

@slayerjain @gouravkrosx Kindly review

gouravkrosx commented 1 month ago

@Akash-Singh04, You can refer this: https://pkg.go.dev/github.com/moby/moby/pkg/parsers/kernel#section-documentation

Akash-Singh04 commented 4 weeks ago

@gouravkrosx your requested changes have been integrated