ViewVC logotype

Contents of /trunk/tools/valgrind/README.txt

Parent Directory Parent Directory | Revision Log Revision Log

Revision 2363 - (show annotations) (download)
Thu Jan 20 08:14:10 2011 UTC (11 years, 5 months ago) by jpye
File MIME type: text/plain
File size: 1316 byte(s)
Readme for valgrind suppressions file.
1 This directory contains a 'suppressions' file for use when testing ASCEND using Valgrind. In particular, it suppresses a number on non-fixable errors relating to IPOPT and possibly Python.
3 The following is a snapshot of content from our wiki, see http://ascendwiki.cheme.cmu.edu/Valgrind for the latest version
5 ---------------------------------------------------------------------
7 [http://valgrind.org/ Valgrind] is a tool that can detect memory leaks and invalid attempts to access memory, or perform actions that depend on the contents of uninitialised memory.
9 When running ASCEND through valgrind, the following approach is suggested:
11 <source lang=sh>
12 scons -j2 test
13 export ASCENDLIBRARY=~/ascend/models
14 export LD_LIBRARY_PATH=~/ascend:/usr/lib/coin:/usr/lib/coin/ThirdParty
15 valgrind --suppressions=tools/valgrind/suppressions --tool=memcheck --leak-check=full --show-reachable=yes test/test TESTNAME
16 </source>
18 where in the above, TESTNAME is replaced by a valid test case or test suite, use <tt>test/test -l</tt> and <tt>test/test -tSUITENAME</tt> to list available options.
20 The above approach requires that you have [http://cunit.sourceforge.net/ CUnit] installed on your system, and that you have configured the 'scons' flags correctly so that it is detected on your system.
22 [[Category:Development]]

ViewVC Help
Powered by ViewVC 1.1.22