Skip to content

Creating test harness for OPENED tools extracted functions #84

@sdsen

Description

@sdsen

Is your feature request related to a problem? Please describe.

  1. We will create a test harness for OPENED extracted modules from monoliths by testing that the modules run.
    Describe the solution you'd like
  2. For creating test harness one possible approach will be:
    Given a module to be extracted, put in prints/capture the input and output packets when running the module as part of larger monolith. Craft similar packet in scapy and run through extracted module to show equivalence. Specifically:
  3. Write a scapy function to generate the same input packet
  4. Pass the crafted packet in previous step, to input of extracted function
  5. Print the output packet inside extracted function
  6. Compare the outputs of original and extracted functions
  7. Use bpftool-prog to pass the same input to the extracted module and then check the generated output.
  8. Report success/failure depending on whether the outputs match.

Metadata

Metadata

Assignees

Labels

OpenedDeveloper tools for opened frameworkhelp wantedExtra attention is neededtestingTest if tool works on specific repositories

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions