NetBSD Problem Report #38746

From dholland@eecs.harvard.edu  Sun May 25 17:58:53 2008
Return-Path: <dholland@eecs.harvard.edu>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 9414E63BD2D
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 25 May 2008 17:58:53 +0000 (UTC)
Message-Id: <20080525175432.4F5E0F892@tanaqui.eecs.harvard.edu>
Date: Sun, 25 May 2008 13:54:32 -0400 (EDT)
From: dholland@eecs.harvard.edu
Reply-To: dholland@eecs.harvard.edu
To: gnats-bugs@gnats.NetBSD.org
Subject: installed atf tests ought to chdir or something
X-Send-Pr-Version: 3.95

>Number:         38746
>Category:       bin
>Synopsis:       installed atf tests ought to chdir or something
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 25 18:00:01 +0000 2008
>Closed-Date:    
>Last-Modified:  Thu Jul 24 15:00:52 +0000 2014
>Originator:     David A. Holland <dholland@eecs.harvard.edu>
>Release:        NetBSD 4.99.54 (20080229), 4.99.63 (20080524)
>Organization:
>Environment:
System: NetBSD tanaqui 4.99.54 NetBSD 4.99.54 (TANAQUI) #21: Fri Feb 29 12:31:31 EST 2008 dholland@tanaqui:/usr/src/sys/arch/i386/compile/TANAQUI i386
Architecture: i386
Machine: i386
>Description:

tanaqui% pwd
/home/dholland
tanaqui% /usr/tests/util/sh/t_set_e
t_set_e: ERROR: Cannot find the test program in the source directory
t_set_e: `/home/dholland'
Exit 1
tanaqui% atf-run /usr/tests/util/sh/t_set_e
atf-run: ERROR: Cannot open Atffile
tanaqui% 

This behavior is not helpful.

It appears you have to chdir to /usr/tests/util/sh (or, apparently,
/usr/src/tests/util/sh/obj) to run the tests contained therein.

>How-To-Repeat:
As above.

>Fix:

chdir `dirname $0`?

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: bin-bug-people->jmmv
Responsible-Changed-By: jmmv@NetBSD.org
Responsible-Changed-When: Tue, 20 Jan 2009 10:02:31 +0000
Responsible-Changed-Why:
atf is my stuff.


State-Changed-From-To: open->analyzed
State-Changed-By: jmmv@NetBSD.org
State-Changed-When: Tue, 20 Jan 2009 10:02:31 +0000
State-Changed-Why:
Not really a bug, just unhelpful error messages.  Not closing so that
I remember to address this, as other people may be confused too.


From: Julio Merino <jmmv84@gmail.com>
To: gnats-bugs@gnats.netbsd.org
Cc: 
Subject: Re: bin/38746
Date: Tue, 13 Oct 2009 19:10:10 +0100

 Just FTR, use the -s flag to specify a source directory different than
 the cwd.  I'm not sure how to address this yet.  Setting '-s $(dirname
 $0)' as the default would be OK if we can be sure that this works in
 all cases.

 -- 
 Julio Merino

State-Changed-From-To: analyzed->closed
State-Changed-By: jmmv@NetBSD.org
State-Changed-When: Fri, 18 Jun 2010 10:12:38 +0000
State-Changed-Why:
This was addressed with the 0.9 release import.


State-Changed-From-To: closed->open
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Tue, 30 Nov 2010 18:47:49 +0000
State-Changed-Why:
This was not fixed; the behavior is unchanged in yesterday's current. And
see PR 44175.


Responsible-Changed-From-To: jmmv->bin-bug-people
Responsible-Changed-By: jmmv@NetBSD.org
Responsible-Changed-When: Thu, 24 Jul 2014 15:00:52 +0000
Responsible-Changed-Why:


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.