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

Android Test Suites #2039

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from
Draft

Conversation

MikuAuahDark
Copy link
Contributor

@MikuAuahDark MikuAuahDark commented Mar 16, 2024

The test suites assume certain environment condition which can't be satisfied in Android. In particular:

  • love.filesystem.getSource() does not point to writeable directory. This is true if the test suite program is packaged as .love file or when fused. This is the case for Android test suite (in the future).
  • Based on love.filesystem.getSource() quirks, then the mountFullPath and unmountFullPath tests are skipped entirely.
  • love.window.getMode() always return near-fullscreen dimensions. In this case, skip the width/height checks.
  • Maximizing and minimizing window is unsupported/undefined.
  • love.window.restore() pauses the program execution for some reason, so tests calling this function will be skipped (including itself).

Marking it as draft as I haven't wrote the actual automated Android testing using AVD yet.

In Android, the tests are running in fused mode. This means the source directory is not writeable.
The tests uses `getSource()` which is not supported when the test program run inside .love file or when fused.
In particular:
* `love.window.getMode()` width and height always return the fullscreen dimensions.
* Maximization function is undefined/unavailable.
* Minimizing in mobile causes the test suites to be paused.
love.window.restore causes the app to be minimized in Android, pausing the execution. Note that this may actually work in multi-window scenario but for now skip them.
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.

2 participants