[GenABEL-dev] Hardcoded paths in OmicABELnoMM's test.cpp
L.C. Karssen
lennart at karssen.org
Mon Oct 27 21:42:33 CET 2014
Hi Alvaro,
When I looked into the checks for OmicABELnoMM I noticed that the paths
to input and output files are hardcoded in the cpp file. While this is
(probably) OK for the file names, the fact that directories are
hardcoded also results in problems when running 'make distcheck'.
What would be the easiest way to enable the user to specify a path for
input and output files?
'make distcheck' sets an environment variable [1], so we could check for
that. But since it also sets the path as a make variable, I guess it's
easiest to add this path to the source code when compiling.
Or, maybe a bit nicer: add a command line option and wrap the check in a
shell script that provides the path.
What do you think?
Lennart.
[1]
http://www.gnu.org/software/automake/manual/html_node/Scripts_002dbased-Testsuites.html
--
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
L.C. Karssen
Utrecht
The Netherlands
lennart at karssen.org
http://blog.karssen.org
GPG key ID: A88F554A
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 213 bytes
Desc: OpenPGP digital signature
URL: <http://lists.r-forge.r-project.org/pipermail/genabel-devel/attachments/20141027/2a19ebc0/attachment.sig>
More information about the genabel-devel
mailing list