Closed GoogleCodeExporter closed 9 years ago
BTW, git format-patch is more convenient for me. I.e. so that I don't have to
invent commit message :)
Original comment by alkondratenko
on 16 Nov 2013 at 7:17
I'm not sure I understand. Even with that patch make check apparently still
does not invoke debug version of heap checker unittest. It looks like make
check is not passing anything to this script.
Original comment by alkondratenko
on 16 Nov 2013 at 7:51
merged. It looks like it will be nice to fix debug variants of this scripts to
call debug unittest by default. But that can be done separately.
Thanks.
Original comment by alkondratenko
on 16 Nov 2013 at 8:18
Ah. I see what you mean. Sorry - I'm using gperftools within a CMake-based
project, so I wrote some CMake-scripts and never looked back at the autotools
scripts.
According to [0] it is not possible to pass command line arguments to tests
with make check. I'm not that familiar with autotools to say there isn't a way
to do it, but to me it seems, the easiest way would be a "template script"
where the executable name is text-replaced inside the script. There is already
a step, where the script file(s) is/are copied from src/tests to the top level
directory:
cp -p $(top_srcdir)/$(heap_checker_unittest_sh_SOURCES) $@
I believe the cp could be changed to something like:
cat $(top_srcdir)/$(heap_checker_unittest_sh_SOURCES) | sed -e
's/%%heap-checker-exe-name%%/heap-checker_unittest/' > $@
chmod +x $@
(This goes of course for all scripts which take command line arguments.)
Best regards,
Hannes
[0]
http://stackoverflow.com/questions/9857400/how-do-i-pass-parameters-to-tests-in-
an-automake-input-file
Original comment by hannes.w...@googlemail.com
on 18 Nov 2013 at 1:38
Original issue reported on code.google.com by
hannes.w...@googlemail.com
on 12 Nov 2013 at 11:34Attachments: