Re: [Chicken-hackers] [PATCH] Make tests work from symlinked paths

2013-05-28 Thread Peter Bex
On Sat, May 25, 2013 at 05:59:37PM +0200, Moritz Heidkamp wrote: Mario Domenech Goulart mario.goul...@gmail.com writes: Maybe readlink -f ? OK, Peter found that even that is not portable so I changed the test itself to do the path canonicalization. Turns out that while the posix unit's

Re: [Chicken-hackers] [PATCH] Make tests work from symlinked paths

2013-05-25 Thread Moritz Heidkamp
Mario Domenech Goulart mario.goul...@gmail.com writes: Ah good catch, but unfortunately OpenBSD does not expose realpath as a shell command (or binary utility). Is there a way to do this portably? John, do you know? Maybe readlink -f ? Thanks, that works, as well! Attached is an updated

Re: [Chicken-hackers] [PATCH] Make tests work from symlinked paths

2013-05-25 Thread Moritz Heidkamp
Mario Domenech Goulart mario.goul...@gmail.com writes: Maybe readlink -f ? OK, Peter found that even that is not portable so I changed the test itself to do the path canonicalization. Turns out that while the posix unit's read-symbolic-link has a CANONICALIZE option it doesn't quite behave like

Re: [Chicken-hackers] [PATCH] Make tests work from symlinked paths

2013-05-24 Thread Christian Kellermann
* Moritz Heidkamp mor...@twoticketsplease.de [130525 01:49]: The private repository path tests didn't work when run from inside a path containing symlinks because runtests.sh didn't expand symlinks while the -private-repository mechanism does. This lead the test assertion which compares the

Re: [Chicken-hackers] [PATCH] Make tests work from symlinked paths

2013-05-24 Thread Mario Domenech Goulart
On Sat, 25 May 2013 02:01:24 +0200 Christian Kellermann ck...@pestilenz.org wrote: * Moritz Heidkamp mor...@twoticketsplease.de [130525 01:49]: The private repository path tests didn't work when run from inside a path containing symlinks because runtests.sh didn't expand symlinks while the