OpenSSH 7.7 t1 script breakage

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



After getting OpenSSH 7.7 to build :), the initial test fails as follows:

test_kex:
............................................................................
............................................................................
............................................................................
............................................................................
................................................ 352 tests ok
test_hostkeys: .................. 18 tests ok
test_match: ...... 6 tests ok
/home/git/openssh-portable/ssh-keygen -if
/home/git/openssh-portable/regress/rsa_ssh2.prv | diff -
/home/git/openssh-portable/regress/rsa_openssh.prv
tr '\n' '\r' </home/git/openssh-portable/regress/rsa_ssh2.prv >
/home/git/openssh-portable/regress/rsa_ssh2_cr.prv
/home/git/openssh-portable/ssh-keygen -if
/home/git/openssh-portable/regress/rsa_ssh2_cr.prv | diff -
/home/git/openssh-portable/regress/rsa_openssh.prv
awk '{print $0 "\r"}' /home/git/openssh-portable/regress/rsa_ssh2.prv >
/home/git/openssh-portable/regress/rsa_ssh2_crnl.prv
/home/git/openssh-portable/ssh-keygen -if
/home/git/openssh-portable/regress/rsa_ssh2_crnl.prv | diff -
/home/git/openssh-portable/regress/rsa_openssh.prv
cat /home/git/openssh-portable/regress/rsa_openssh.prv > /regress/t2.out
/bin/sh: /regress/t2.out: cannot create

This comes down to the OBJ variable being set to
REGRESSTMP = "$(PWD)/regress" 

Which may work on some platforms but is not portable.
REGRESSTMP = `pwd` resolves properly

My proposed fix is this, which allows the tests to run in a generic
LINUX/POSIX environment and is agnostic to make.

+++ b/Makefile.in
@@ -577,7 +577,7 @@ regress-binaries: regress/modpipe$(EXEEXT) \
        regress/unittests/utf8/test_utf8$(EXEEXT) \
        regress/misc/kexfuzz/kexfuzz$(EXEEXT)

-REGRESSTMP = "$(PWD)/regress"
+REGRESSTMP = `pwd`

 tests interop-tests t-exec unit: regress-prep regress-binaries $(TARGETS)

Cheers,
Randall

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev



[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux