www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - D 2.068.2 test runner for Android ARM, please test and report results

reply Joakim <dlang joakim.fea.st> writes:
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.
Nov 01 2015
next sibling parent reply Martin Nowak <code+news.digitalmars dawg.eu> writes:
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.
Nov 01 2015
parent Joakim <dlang joakim.fea.st> writes:
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/
Nov 01 2015
prev sibling next sibling parent reply Dmitry <dmitry indiedev.ru> writes:
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
Nov 02 2015
parent Dmitry <dmitry indiedev.ru> writes:
On Monday, 2 November 2015 at 13:41:32 UTC, Dmitry wrote:
 Samsung Galaxy Tab 2, all tests passed
(Android 4.2.2)
Nov 02 2015
prev sibling next sibling parent reply Joakim <dlang joakim.fea.st> writes:
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
Nov 04 2015
parent Chris <wendlec tcd.ie> writes:
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.
Nov 04 2015
prev sibling parent reply Fer22f <fer22f gmail.com> writes:
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").
Nov 11 2015
parent Joakim <dlang joakim.fea.st> writes:
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. ;)
Nov 17 2015