Thread overview
D 2.068.2 test runner for Android ARM, please test and report results from your Android device
Nov 01, 2015
Joakim
Nov 01, 2015
Martin Nowak
Nov 01, 2015
Joakim
Nov 02, 2015
Dmitry
Nov 02, 2015
Dmitry
Nov 04, 2015
Joakim
Nov 04, 2015
Chris
Nov 12, 2015
Fer22f
Nov 17, 2015
Joakim
November 01, 2015
I'm happy to announce test runners for Android ARM, which will run most tests from druntime and phobos on your Android device:

https://github.com/joakim-noah/android/releases/tag/runners

You can install a test runner app or run a command-line binary.  Please report your results in this thread in the ldc forum, which requires no registration, with the info and format requested there:

http://forum.dlang.org/thread/bafrkjfwmoyriyhmqizl@forum.dlang.org

You can build ldc from source yourself using the patches linked.  I will soon make available a cross-compiler build of ldc on linux/x86 and write up the process of building everything, including the test runner apk, on the wiki.  I'll also port some more sample OpenGL apps from the Android NDK.  Help with all of the above and fixing the remaining issues would be appreciated.

You may notice that the patches are not very large, other than Kai's patch for cross-compiling 64-bit reals.  That's because of ongoing ARM work for years by Johannes, Kai, Martin, David, and others, the awesomeness of ldc and llvm, and the Android/x86 patches I've upstreamed over the last couple years.

I'd like to help get some D/OpenGL app ported to Android and submitted to the Play Store.  Please let me know if you have any such project I can help with.
November 01, 2015
On 11/01/2015 10:50 AM, Joakim wrote:
> http://forum.dlang.org/thread/bafrkjfwmoyriyhmqizl@forum.dlang.org

Nice works for me as well (Galaxy S3 on cm-12.1 (5.1.1)).
Would be nice to run this as automated test on an Android Emulator.
November 01, 2015
On Sunday, 1 November 2015 at 18:41:26 UTC, Martin Nowak wrote:
> On 11/01/2015 10:50 AM, Joakim wrote:
>> http://forum.dlang.org/thread/bafrkjfwmoyriyhmqizl@forum.dlang.org
>
> Nice works for me as well (Galaxy S3 on cm-12.1 (5.1.1)).
> Would be nice to run this as automated test on an Android Emulator.

Yes, would be good to integrate this with CI, I was thinking of trying to get ldc for Android going on Travis:

http://docs.travis-ci.com/user/languages/android/
November 02, 2015
On Sunday, 1 November 2015 at 09:50:16 UTC, Joakim wrote:
>  Please report your results in this thread in the ldc forum, which requires no registration, with the info and format requested there:
Samsung Galaxy Tab 2, all tests passed
November 02, 2015
On Monday, 2 November 2015 at 13:41:32 UTC, Dmitry wrote:
> Samsung Galaxy Tab 2, all tests passed
(Android 4.2.2)
November 04, 2015
On Sunday, 1 November 2015 at 09:50:16 UTC, Joakim wrote:
> You can build ldc from source yourself using the patches linked.  I will soon make available a cross-compiler build of ldc on linux/x86 and write up the process of building everything, including the test runner apk, on the wiki.

I've started writing the build process up on the wiki.  You can build the ldc cross-compiler, a small command-line program, and the command-line test runner yourself:

http://wiki.dlang.org/Build_LDC_for_Android

November 04, 2015
On Wednesday, 4 November 2015 at 17:34:58 UTC, Joakim wrote:
> On Sunday, 1 November 2015 at 09:50:16 UTC, Joakim wrote:
>> You can build ldc from source yourself using the patches linked.  I will soon make available a cross-compiler build of ldc on linux/x86 and write up the process of building everything, including the test runner apk, on the wiki.
>
> I've started writing the build process up on the wiki.  You can build the ldc cross-compiler, a small command-line program, and the command-line test runner yourself:
>
> http://wiki.dlang.org/Build_LDC_for_Android

Great work! You're a legend. I'll try it once I have time.
November 12, 2015
On Sunday, 1 November 2015 at 09:50:16 UTC, Joakim wrote:
> https://github.com/joakim-noah/android/releases/tag/runners
> You can install a test runner app or run a command-line binary.

This is from a Moto Maxx (it's a Droid Maxx rebranded), Android v5.0.2 and Snapdragon 805. These tests hang:

std.socket
std.stdio

Everything else went smoothly. I'm not an expertise android developer so I don't know how to get stacktraces from logcat, all I oculd get was the verbose of the test program (using "adb logcat test_runner:V *:S").
November 17, 2015
On Thursday, 12 November 2015 at 02:21:08 UTC, Fer22f wrote:
> On Sunday, 1 November 2015 at 09:50:16 UTC, Joakim wrote:
>> https://github.com/joakim-noah/android/releases/tag/runners
>> You can install a test runner app or run a command-line binary.
>
> This is from a Moto Maxx (it's a Droid Maxx rebranded), Android v5.0.2 and Snapdragon 805. These tests hang:
>
> std.socket
> std.stdio
>
> Everything else went smoothly. I'm not an expertise android developer so I don't know how to get stacktraces from logcat, all I oculd get was the verbose of the test program (using "adb logcat test_runner:V *:S").

Thanks, there shouldn't be any stacktraces unless the app crashes.  When it hangs, as it does in those two modules, some C function from bionic usually just doesn't return and you have to close the app eventually.  I wasn't expecting any crashes from this apk, only mentioned it because you never know what might happen on new hardware. ;)