-
-
Notifications
You must be signed in to change notification settings - Fork 56.4k
Modified Java tests to run on Android #24910
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
Conversation
modules/java/test/android_test/src/org/opencv/test/OpenCVTestRunner.java
Outdated
Show resolved
Hide resolved
26b2ba5 to
89ff186
Compare
|
Please remove gradlew and gradlew.bat with related files as you use |
92f8c60 to
058e977
Compare
1ba6adc to
b945076
Compare
| minSdkVersion @ANDROID_MIN_SDK_VERSION@ | ||
| targetSdkVersion @ANDROID_TARGET_SDK_VERSION@ | ||
| versionCode 301 | ||
| versionName "3.01" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
version
is it correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure, but it's the same everywhere. Looks like we need to substitute OpenCV version here and in samples.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's do it in a separate PR.
a06589b to
de0aade
Compare
asmorkalov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Replaces #128 Depends on opencv/opencv#24910 * Added pipeline to test Android configuration with real phone. * Cleanup environment. * Use proper label to select host. * Use proper label to select host. * Set binaries cache location. * Binaries cache path fix. * Removed limitation. * Set git cache location in pipeline.
Modified Java tests to run on Android.
To run the tests you need to:
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 ../opencvmakecd android_tests./gradlew tests_module:connectedAndroidTestRelated 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
Patch to opencv_extra has the same branch name.