Skip to content

ogma-cli: Add CI test for diagram backend #332

@ivanperez-keera

Description

@ivanperez-keera

Description

Ogma doesn't currently have an automated test for the diagram backend. In order to keep Ogma working in future versions and ensure that the changes introduced do not affect the code generated from diagrams in a negative way, we want to have a test that checks that the code generated at least compiles.

Type

  • Maintenance: Add system-level test to comply with needed testing requirements.

Additional context

None.

Requester

  • Ivan Perez.

Method to check presence of bug

Not applicable (not a bug).

Expected result

Ogma includes a new Github action file that tests Ogma's diagram backend, compiles the generated application, and checks that it executes correctly.

Desired result

Ogma includes a new Github action file that tests Ogma's diagram backend, compiles the generated application, and checks that it executes correctly.

Proposed solution

Add a new CI action file that generates a Copilot specification from a diagram, compiles the specification into C, compiles the generated C code with a main, runs it, and compares the result against an expectation.

Further notes

None.

Metadata

Metadata

Labels

CR:Status:ClosedAdmin only: Change request that has been completedCR:Type:ManagementAdmin only: Change request for conformance with policies or procedures

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions