[Top][All Lists]

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

[Chicken-hackers] [PATCH] Fix #1057: make check works without having to

From: Peter Bex
Subject: [Chicken-hackers] [PATCH] Fix #1057: make check works without having to install CHICKEN
Date: Thu, 13 Mar 2014 22:10:36 +0100
User-agent: Mutt/

Hi all,

Here's the final patch for #1057; this allows running the test suite
without first installing CHICKEN (a very long-standing feature request
from package maintainers).  This should also make it less annoying for
CHICKEN hackers to quickly test some modifications.

To make this work on Windows, I killed some special-casing and moving
around of DLLs.  This was originally done because both Mingw-MSYS and
Cygwin ignore LD_LIBRARY_PATH and friends (though Cygwin honors it
for manually-dlopen()ed files), and uses the strange Windows search
algorithm, which always includes $PWD.  However, it also searches the
regular $PATH, so I now set that (and in the batch-file too).

Because the mingw-msys tools represent c:\foo\bar as /c/foo/bar, the
usual way of passing the TEST_DIR doesn't work; CHICKEN's tools pass
these mingw-msys paths to the Windows native system calls, which don't
grok these paths.  A simple workaround is to call the "pwd" command
with a -W switch, which makes it emit Windows-native paths.  Because
this contains backslashes, we now have a new problem: we can't
easily use this in the setup-api hook hackery (because we'd need
to double each backslash in order to safely embed it in a Scheme
string), I also defined a TEST_DIR_SEXPR, which gets generated via
WRITE from csi.

The setup-api hackery I mentioned above is truly vile (and undocumented),
but it's the only way I could come up with to make this work.


Attachment: 0001-Add-a-few-hooks-and-hacks-to-make-tests-work-without.patch
Description: Text document

reply via email to

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