tinyssh icon indicating copy to clipboard operation
tinyssh copied to clipboard

Tests should be optional

Open Civil opened this issue 10 years ago • 7 comments

Hi,

I'd like to make a package of tinyssh in Gentoo, but currently it's required a lot of patching to build system.

Tests should be optional - otherwise it'll break cross compilation. Also portage runs under unprivileged user, so one test will always fail. Also because of that it's now impossible to crosscompile tinyssh.

Civil avatar Feb 22 '15 16:02 Civil

I don't know it this is related to the same issue you are facing, @Civil. But I have a similar issue that appeared on 20160301 that is affecting the build of tinyssh in some cases. I'm one of the maintainer of the tinyssh AUR package for Archlinux, and the build process fails on one test:

--- tinysshd.exp 2016-02-26 05:10:22.000000000 -0300 +++ tinysshd.out 2016-03-18 10:48:40.663333332 -0300 @@ -477,7 +477,7 @@

--- tinysshd 'logs kex problem' when client closed the connection

-unable to receive kex-message (connection reset) +unable to send kex-message (broken pipe)

--- tinysshd 'logs kex problem' when client disconnected the connection

On previous versions I didn't had this issue. Also, it seems not to affect every system, but we had reports of some people not being able to build the package. And I reproduced this error using a qemu-kvm virtual machine.

grazzolini avatar Mar 18 '16 14:03 grazzolini

And I just saw now that issue #13 fixed this problem. Sorry for the noise.

grazzolini avatar Mar 18 '16 14:03 grazzolini

Well, my problems are related to the fact that gentoo builds packages inside a sandbox and some features are not allowed there, but tests are using them, so they obviously fails.

Currently there is no way to remove tests without hacking into build system which I don't actually want to do (cause it's too weird). So I'll wait until author will switch to something saner than bash scripts as a build system (e.x. autotools, cmake, etc).

Civil avatar Mar 18 '16 14:03 Civil

I have problems with the tests as well as I'm cross-compiling. tinyssh is well suited for tiny embedded systems, except that it's so unpleasant to cross-compile.

lilydjwg avatar Aug 21 '16 12:08 lilydjwg

Hello, can You prepaire separate Makefile, make* script or something like that to allow cross-compiling?

janmojzis avatar Aug 21 '16 14:08 janmojzis

I tried to add support for cross-compilation in the branch cc, script make-tinysshcc.sh

  • no test, no executing binaries

Can You please try it?

Thanks Jan

janmojzis avatar Aug 26 '16 08:08 janmojzis

@janmojzis make-tinysshcc.sh works fine for me :+1:

lilydjwg avatar Aug 26 '16 13:08 lilydjwg