Skip to content

Conversation

@davidlin54
Copy link
Contributor

Summary

Created a new project android_test under extensions. This allows instrumentation tests to be created for Module.java and LlamaModule.java because they need the native libraries. I chose not to change extension/android since that would change the Java module to an Android module, and create an .aar instead of a .jar.

Testing

$ cd extension/android_test
$ ./gradlew connectedDebugAndroidTest

TODO:

  1. Create test for LlamaModule.java
  2. Move the JUnit tests from extension/android to extension/android_test to centralize the testing logic

@pytorch-bot
Copy link

pytorch-bot bot commented Nov 11, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/6751

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 6b1a7ab with merge base 289e84e (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 11, 2024
@facebook-github-bot
Copy link
Contributor

@davidlin54 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

androidTestImplementation 'com.google.gms:google-services:4.3.3'
}

task('setupNativeLibs', type: Exec){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible that we depend on ET AAR for this test?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I saw it from line 50

@davidlin54 davidlin54 merged commit b23c9e6 into main Nov 11, 2024
40 of 41 checks passed
@davidlin54 davidlin54 deleted the lind/instrumentation_tests branch November 11, 2024 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants