Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Automatically validate manual SwIPCs against auto.id #26

Open
roblabla opened this issue Mar 1, 2018 · 2 comments
Open

Automatically validate manual SwIPCs against auto.id #26

roblabla opened this issue Mar 1, 2018 · 2 comments

Comments

@roblabla
Copy link
Member

roblabla commented Mar 1, 2018

As shown by #25, there are a number of mistakes in the manually written IPC definition files. Thankfully, the automated process with which auto.id was generated means that we have something to check them against. As such, we should write a script that ensures the validity of all manual SwIPC files !

@misson20000
Copy link
Member

This is a list of "lints" that I made working on SwIPC stuff a while ago:

  • handle should have move/copy
  • buffer size should match size of type
  • buffer transfer type should be valid
  • buffer should be correctly placed in "in" values or "out" values
  • buffer size should not be zero

@roblabla
Copy link
Member Author

We now have a verifier.py whose goal will be to do the linting. It runs in travis. It currently only checks for duplicate function names in interfaces (while taking versions into account).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants