Current-Users archive

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

Re: amd64 tests failing



On Wed, Jan 27, 2016 at 09:27:35AM +0100, Manuel Bouyer wrote:
> > It would be great to have an option to avoid the automatic removal of
> > the temporary test directory for such cases (assuming that is where the
> > core has been dumped). But since this test is a shell script, you could try
> > to add something like "cp *.core /tmp" to the cleanup function.
> 
> I'll try this when I have time.

The problem is that running it from interactive mode (anita-run interactive,
from the same vm) doesn't fail:
# /usr/tests/fs/psshfs/t_psshfs inode_nos
t_psshfs: WARNING: Running test cases without atf-run(1) is unsupported
t_psshfs: WARNING: No isolation nor timeout control is being applied; you may get unexpected failures; see atf-test-case(4)
Setting up SSH server configuration
Executing command [ cp /usr/libexec/sftp-server . ]
Executing command [ cp /usr/tests/fs/psshfs/ssh_host_key . ]
Executing command [ cp /usr/tests/fs/psshfs/ssh_host_key.pub . ]
Executing command [ chmod 400 ssh_host_key ]
Executing command [ chmod 444 ssh_host_key.pub ]
SSH server started (pid 266)
Setting up SSH client configuration
Executing command [ ssh-keygen -f ssh_user_key -t rsa -b 1024 -N  -q ]
Executing command [ cp ssh_user_key.pub authorized_keys ]
Executing command [ chmod 600 authorized_keys ]
Executing command [ mount -t psshfs -o -F=/tmp/truc/ssh_config localhost:/tmp/truc/root mnt ]
Executing command [ ./ne_inodes.sh root/dir root/dir/file1 ]
Executing command [ ./ne_inodes.sh root/dir root/dir/file2 ]
Executing command [ ./ne_inodes.sh root/dir/file1 root/dir/file2 ]
Executing command [ ./ne_inodes.sh root/file3 root/file4 ]
passed


running with atf-run from interactive mode also pass:
# cd /usr/tests/fs/psshfs/
# atf-run
Content-Type: application/X-atf-tps; version="3"

info: atf.version, Automated Testing Framework 0.20 (atf-0.20)
info: tests.root, /usr/tests/fs/psshfs
info: time.start, Wed Jan 27 08:39:28 UTC 2016
info: uname.sysname, NetBSD
info: uname.nodename,
info: uname.release, 7.99.26
info: uname.version, NetBSD 7.99.26 (XEN3_DOMU.201601251230Z) #0: Mon Jan 25 13:27:30 UTC 2016 builds%b45.netbsd.org@localhost:/home/builds/ab/HEAD/amd64/201601251230Z-obj/home/source/ab/HEAD/src/sys/arch/amd64/compile/XEN3_DOMU
[...]
tp-start: 1453883969.432949, t_psshfs, 3
tc-start: 1453883969.433017, inode_nos
tc-so:Setting up SSH server configuration
tc-so:Executing command [ cp /usr/libexec/sftp-server . ]
tc-so:Executing command [ cp /usr/tests/fs/psshfs/ssh_host_key . ]
tc-so:Executing command [ cp /usr/tests/fs/psshfs/ssh_host_key.pub . ]
tc-so:Executing command [ chmod 400 ssh_host_key ]
tc-so:Executing command [ chmod 444 ssh_host_key.pub ]
tc-so:SSH server started (pid 675)
tc-so:Setting up SSH client configuration
tc-so:Executing command [ ssh-keygen -f ssh_user_key -t rsa -b 1024 -N  -q ]
tc-so:Executing command [ cp ssh_user_key.pub authorized_keys ]
tc-so:Executing command [ chmod 600 authorized_keys ]
tc-so:Executing command [ mount -t psshfs -o -F=/tmp/atf-run.BKq9OA/ssh_config l
ocalhost:/tmp/atf-run.BKq9OA/root mnt ]
tc-so:Executing command [ ./ne_inodes.sh root/dir root/dir/file1 ]
tc-so:Executing command [ ./ne_inodes.sh root/dir root/dir/file2 ]
tc-so:Executing command [ ./ne_inodes.sh root/dir/file1 root/dir/file2 ]
tc-so:Executing command [ ./ne_inodes.sh root/file3 root/file4 ]
tc-se:umount: mnt: not currently mounted
tc-so:Stopping SSH server (pid 675)
tc-so:Server output was:  
tc-end: 1453883971.592146, inode_nos, passed
tc-start: 1453883971.653004, ls
tc-so:Setting up SSH server configuration
tc-so:Executing command [ cp /usr/libexec/sftp-server . ]
tc-so:Executing command [ cp /usr/tests/fs/psshfs/ssh_host_key . ]
tc-so:Executing command [ cp /usr/tests/fs/psshfs/ssh_host_key.pub . ]
tc-so:Executing command [ chmod 400 ssh_host_key ]
tc-so:Executing command [ chmod 444 ssh_host_key.pub ]
tc-so:SSH server started (pid 739)
tc-so:Setting up SSH client configuration
tc-so:Executing command [ ssh-keygen -f ssh_user_key -t rsa -b 1024 -N  -q ]
tc-so:Executing command [ cp ssh_user_key.pub authorized_keys ]
tc-so:Executing command [ chmod 600 authorized_keys ]
tc-so:Executing command [ mount -t psshfs -o -F=/tmp/atf-run.iaVSMX/ssh_config localhost:/tmp/atf-run.iaVSMX/root mnt ]
tc-so:total 1
tc-so:drwxr-xr-x  2 root  wheel  512 Jan 27 08:39 dir
tc-so:-rw-r--r--  1 root  wheel    0 Jan 27 08:39 file3
tc-so:-rw-r--r--  1 root  wheel    0 Jan 27 08:39 file4
tc-so:Executing command [ ls -R mnt ]
tc-so:Stopping SSH server (pid 739)
tc-so:Server output was:  
tc-end: 1453883973.432900, ls, passed
tc-start: 1453883973.493870, pwd
tc-so:Setting up SSH server configuration
tc-so:Executing command [ cp /usr/libexec/sftp-server . ]
tc-so:Executing command [ cp /usr/tests/fs/psshfs/ssh_host_key . ]
tc-so:Executing command [ cp /usr/tests/fs/psshfs/ssh_host_key.pub . ]
tc-so:Executing command [ chmod 400 ssh_host_key ]
tc-so:Executing command [ chmod 444 ssh_host_key.pub ]
tc-so:SSH server started (pid 803)
tc-so:Setting up SSH client configuration
tc-so:Executing command [ ssh-keygen -f ssh_user_key -t rsa -b 1024 -N  -q ]
tc-so:Executing command [ cp ssh_user_key.pub authorized_keys ]
tc-so:Executing command [ chmod 600 authorized_keys ]
tc-so:Executing command [ /bin/sh -c echo $(cd mnt && /bin/pwd)/dir ]
tc-so:Executing command [ mount -t psshfs -o -F=/tmp/atf-run.iteIS1/ssh_config localhost:/tmp/atf-run.iteIS1/root mnt ]
tc-so:Executing command [ /bin/sh -c cd mnt/dir && ls .. >/dev/null && /bin/pwd ]
tc-so:Stopping SSH server (pid 803)
tc-so:Server output was:  
tc-end: 1453883975.590037, pwd, passed
tp-end: 1453883975.642809, t_psshfs
info: time.end, Wed Jan 27 08:39:35 UTC 2016


# atf-run|atf-report
Tests root: /usr/tests/fs/psshfs

t_psshfs (1/1): 3 test cases
    inode_nos: [1.967069s] Passed.
    ls: [1.754753s] Passed.
    pwd: [1.679815s] Passed.
[5.576623s]

Summary for 1 test programs:
    3 passed test cases.
    0 failed test cases.
    0 expected failed test cases.
    0 skipped test cases.

it also pass when atf-run is started from /usr/tests/fs
Trying again to run from /usr/tests/ ...

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index