Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide "dummy" backend for unit-testing application's L0 API usage #117

Open
eero-t opened this issue Jun 12, 2023 · 0 comments
Open

Provide "dummy" backend for unit-testing application's L0 API usage #117

eero-t opened this issue Jun 12, 2023 · 0 comments

Comments

@eero-t
Copy link

eero-t commented Jun 12, 2023

In my own project, I've mocked every Sysman call used, so that I can verify code handling properly any of them working or erroring: https://github.com/collectd/collectd/blob/collectd-6.0/src/gpu_sysman_test.c

But it would be nice to avoid every L0 API user needing to duplicate the same work. Could level-zero frontend provide a dummy backend, that depending on e.g. env variable, either returns synthetized value according to some pre-determined formula (so that this value can be validated), or an error for the Nth Sysman call?

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

No branches or pull requests

1 participant