Running cl-test-grid on Android?

14 views
Skip to first unread message

polos...@gmail.com

unread,
Jan 1, 2020, 10:39:44 AM1/1/20
to cl-test-grid
Hi,

for the upcoming new release of ECL I would like to run cl-test-grid on Android; currently it fails trying to start a new ECL process, because I'm not allowed to run an executable on a non jail-broken device.

I also can't just use termux and install their ECL, because it's (obviously) not the release candidate of current ECL...

Any clue? Did anyone try this in the past?

Thanks,

Paul

PR

unread,
Jan 1, 2020, 12:18:05 PM1/1/20
to cl-test-grid
On 1/1/20, polos...@gmail.com <polos...@gmail.com> wrote:
[...]

answering myself: I just stumbled on this project:
https://github.com/plops/ecl-termux-binary/
so I will just try that path; should work!

Paul

PR

unread,
Jan 1, 2020, 4:29:53 PM1/1/20
to cl-test-grid
On 1/1/20, PR <polos...@gmail.com> wrote:
> answering myself: I just stumbled on this project:
> https://github.com/plops/ecl-termux-binary/
> so I will just try that path; should work!

...so, since I'm new to cl-test-grid: how would you go to run it on
android? I'm currently trying to run it in termux (a very good
terminal emulator for android).

What I already succeeded in is: compiling ECL release candidate
(directly on the phone); starting cl-test-grid; but then it fails
trying to read a response file.

Now: as I understand it, cl-test-grid is supposed to work only running
in CCL, which is (to my knowledge) not available on android...; am I
left alone here in porting some failing parts from CCL to ECL? Seems
so... (the docu states that it's known to work only running through
CCL...)

polos...@gmail.com

unread,
Jan 2, 2020, 3:20:56 PM1/2/20
to cl-test-grid
On Wednesday, January 1, 2020 at 10:29:53 PM UTC+1, PR wrote:
On 1/1/20, PR wrote:
[...]

Ok, I figured how to run 'cl-test-grid' successfully on android.
In the end I didn't use termux (which is not really native android, but a linux emulator).

Cross-compiled executables run just fine in '/data/local/tmp/' on android, but I needed to adapt the 'run-agent.*' files.

Here https://pastebin.com/byE8hSTz you can find instructions and the modified files. Since I'm using the ECL bytecode-compiler, I will certainly need to adapt the timeouts.
Currently it seems to run fine...

Paul

Anton Vodonosov

unread,
Jan 3, 2020, 1:01:53 AM1/3/20
to cl-test-grid
Hi, that's interesting.

Notre, the agent code (test-grid-agent.asd - the main program run by the run-agent script) is only tested on CCL and may have problems when run by another lisp.

Yes, timeouts may be a problem (see agent/lisp-exe.lisp), killing a process tree also; and in general, the external-program library is not very portable. 

I can't provide a full list of possible problems, testing is needed.

PR

unread,
Jan 3, 2020, 1:20:23 AM1/3/20
to cl-test-grid
On 1/1/20, PR <polos...@gmail.com> wrote:
> [...]

ok, I figured how to start 'cl-test-grid' successfully on android.
In the end I didn't use termux (which is not really native android,
but a linux emulator).

Cross-compiled executables run just fine in '/data/local/tmp/' on
android, but I needed to adapt the 'run-agent.*' files.

Attached you can find instructions and the modified files. Since I'm
cl-test-grid-howto-android.txt

PR

unread,
Jan 3, 2020, 3:54:56 PM1/3/20
to cl-tes...@googlegroups.com
thanks for your input, I face several problems right now (will take
some time to fix):

- sloooow (it would probably take 50+ hours to finish all tests)
- quite a few systems can't be loaded successfully because of
case-sensitive file names which are interpreted incorrectly
- (obviously) some systems can't be loaded because of missing C
libraries, missing C compiler...

But I was positively surprised by how many systems are just loading fine!

I still need to find the time to finish all tests though...

Paul

Anton Vodonosov

unread,
Jan 4, 2020, 5:19:15 AM1/4/20
to cl-tes...@googlegroups.com
What device do you use? Is it a phone, or some single-board computer (a-la raspberry PI)?

PR

unread,
Jan 4, 2020, 5:41:09 AM1/4/20
to cl-tes...@googlegroups.com
On 1/4/20, Anton Vodonosov <avodo...@yandex.ru> wrote:
> What device do you use? Is it a phone, or some single-board computer (a-la
> raspberry PI)?

I use a phone from 2017 running android 8.1 (that's the fastest device I have).
Reply all
Reply to author
Forward
0 new messages