Skip to content

Test suite#8

Open
teeks99 wants to merge 7 commits into
sushantnadkar:masterfrom
teeks99:test-suite
Open

Test suite#8
teeks99 wants to merge 7 commits into
sushantnadkar:masterfrom
teeks99:test-suite

Conversation

@teeks99
Copy link
Copy Markdown

@teeks99 teeks99 commented Jan 23, 2021

Unit tests for all the functionality. This is based off real data captured on a raspberry pi. The data is replayed by a mock of subprocess.check_output, so it can run on any machine, doesn't need the vcgencmd executable installed.

Typo that causes a crash if called.
In __verify_command the source.lower() is used, so everything in the
sources must also be lower or it will never match.
In addition to the existing method that returns the bit field, return a
dictionary with descriptive values, similar to mem_oom() and
mem_reloc_stats().
Added a simple helper function that prints out all the relevant
details. Set it to be what runs from main with a
`python3 -m vcgencmd` call.
There were a couple that uncovered bugs, they are marked TODO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant