Skip to content

Implement reorder apps function #102

@eva-cosma

Description

@eva-cosma

The reorder_app method must be implement to then be able to properly install and uninstall applications. Both rust-based and c-based.

Input

See: #75

Tasks

  • Create reordering function that is input-agnostic. It must take an application which can be either already present on the board, or as part of a TAB. Note that C-applications can be put anywhere whereas Rust-applications have fixed flash and ram addresses (and have multiple copies within its TAB compiled for different configurations). This function should return the order to arrange these applications in memory.
  • Add tests to this reordering functions to simulate different scenarios
    • Existing: C-Apps, Operation: None, Expected: No change
    • Existing: Rust-Apps, Operation: None, Expected: No change
    • Existing: C-Apps + Rust-Apps, Operation: None, Expected: No change
    • Existing: C-Apps, Operation: Add C-App, Expected: Application put at the end
    • Existing: C-Apps, Operation: Add Rust-App after C-functions Expected: Application put at end
    • Existing: C-Apps, Operation: Add Rust-App before/in-between C-functions Expected: Application reordered so that rust application can still exist
    • More ++

Sub-issues

Metadata

Metadata

Assignees

Projects

Status

In Progress

Relationships

None yet

Development

No branches or pull requests

Issue actions