Skip to content

Added pipeline to test Android configuration with real phone#138

Merged
asmorkalov merged 9 commits intomainfrom
as/android_phone_test
Jan 31, 2024
Merged

Added pipeline to test Android configuration with real phone#138
asmorkalov merged 9 commits intomainfrom
as/android_phone_test

Conversation

@asmorkalov
Copy link
Copy Markdown
Contributor

@asmorkalov asmorkalov commented Jan 29, 2024

Replaces #128
Depends on opencv/opencv#24910

@asmorkalov asmorkalov force-pushed the as/android_phone_test branch from 77a4900 to ca433a3 Compare January 29, 2024 14:10
working-directory: ${{ github.workspace }}/build
- name: Test Java
timeout-minutes: 60
id: java-test
Copy link
Copy Markdown

@opencv-alalek opencv-alalek Jan 31, 2024

Choose a reason for hiding this comment

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

Java tests check bindings at first.

Accuracy is tested by native test code.
Is it out of scope?

asmorkalov pushed a commit to opencv/opencv that referenced this pull request Jan 31, 2024
Modified Java tests to run on Android #24910

To run the tests you need to:

1. Build OpenCV using Android pipeline. For example:
`cmake -DBUILD_TEST=ON -DANDROID=ON -DANDROID_ABI=arm64-v8a -DCMAKE_TOOLCHAIN_FILE=/usr/lib/android-sdk/ndk/25.1.8937393/build/cmake/android.toolchain.cmake -DANDROID_NDK=/usr/lib/android-sdk/ndk/25.1.8937393 -DANDROID_SDK=/usr/lib/android-sdk ../opencv`
`make`
2. Connect Android Phone
3. Run tests:
`cd android_tests`
`./gradlew tests_module:connectedAndroidTest`

Related CI pipeline: opencv/ci-gha-workflow#138

### Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

- [x] I agree to contribute to the project under Apache 2 License.
- [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
- [x] The PR is proposed to the proper branch
- [ ] There is a reference to the original bug report and related work
- [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
      Patch to opencv_extra has the same branch name.
- [x] The feature is well documented and sample code can be built with the project CMake
@asmorkalov asmorkalov merged commit 3aaeb02 into main Jan 31, 2024
@asmorkalov asmorkalov deleted the as/android_phone_test branch February 21, 2024 06:18
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