==Running Regression Tests under Valgrind==
 
==Running Regression Tests under Valgrind==
   −
Once you have compiled the Net-SNMP source code and once you have installed Valgrind 3.6.0 or later, the Net-SNMP regression tests can be run under Valgrind with the script below.
+
Once you have compiled the Net-SNMP source code and once you have installed Valgrind 3.6.0 or later, the Net-SNMP regression tests can be run under Valgrind with the script below. This script works for the 5.5 and 5.6 branches and also for the trunk but not for the 5.4 or older branches.
    
<pre>
 
<pre>
 
#!/bin/bash
 
#!/bin/bash
    +
scriptdir=$(dirname "$0")
 
rm -rf /tmp/snmp-*
 
rm -rf /tmp/snmp-*
Exception encountered, of type "Error"