bug-gnulib
[Top][All Lists]
Advanced

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

Re: [PATCH] tests/init.sh: new file to be used via most *.sh tests


From: Eric Blake
Subject: Re: [PATCH] tests/init.sh: new file to be used via most *.sh tests
Date: Wed, 25 Nov 2009 22:19:35 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Bruno Haible on 11/25/2009 3:24 PM:
> + #   Note that these commands are executed in a subdirectory, therefore you
> + #   need to prepend "../" to relative filenames in the build dir.
> + #   Set the exit code 0 for success, 77 for skipped, or 1 or other for 
> failure.

Or use the skip_ and fail_ functions.

But the advice looks sane to me.  However, I'll let Jim decide to apply
it.  You can also use:

srcdir=../tests bashdb test-foo.sh

if you have the bash debugger installed, to avoid having to go into a
subshell while still being able to single step through things.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAksOD+cACgkQ84KuGfSFAYAx5ACgw2xqhwBt61ZCqBxkJgb35zuP
76MAnjRsUyjfr3DfmWm7dgpUGT02HneG
=lKlI
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]