[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Autotest] Prefixing commands launched by AT_CHECK
From: |
Eric Blake |
Subject: |
Re: [Autotest] Prefixing commands launched by AT_CHECK |
Date: |
Mon, 13 Apr 2009 05:49:53 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.6.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Thomas Moulard on 4/12/2009 8:01 PM:
> However, I still have an issue with the other scenario (MinGW
> cross-compiling):
> in that case, my binaries are suffixed with '.exe'.
>
> Is is easy to make Autotest aware of EXEEXT, however AT_TESTED does not
> do what I want:
>
> atlocal.in:
> EXEEXT="@EXEEXT";
Missing a close @? Here, the "" are redundant since @EXEEXT@ will never
expand to multiple shell words.
> export EXEEXT;
>
> simple-test.at:
> # [...]
> AT_TESTED([simple-test$EXEEXT])
> Is there any way to work around this issue?
Unfortunately, AT_TESTED treats its arguments as literals. This complaint
has come up in the past, and the idea was to introduce AT_TESTED_NOESCAPE
that allows shell expansion rather than escaping the metacharacters, but
no one has written a patch.
- --
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
iEYEARECAAYFAknjJuEACgkQ84KuGfSFAYBuTACgimd+MyuWCPVIp4MDNU4aO/1y
BE8AnjkEZkqVqx6O441g7wq8vLwMQZya
=Z4AF
-----END PGP SIGNATURE-----