How to use Valgrind with Squish¶
If you want to do memory leak testing, Valgrind is the best choice if you are on Linux or any other OS it is supported on.
Here is how to use it with Squish:
1. Create a shell script to wrap the AUT invocation
Where “/path/to/real/aut” should be replaced with the path to your application.
2. Make the shell script executable with
3. Try running your shell script to make sure it works.
4. Specify the shell script as AUT.
5. Increase the startup timeout as it will take longer to start.
6. Run your test, and inspect the log file.
The above should work well for memory access errors. You may run into issues with the leak report at the end, however. Valgrind produces a final report, but Squish may kill the process too early. If you ever run into this problem please let us know. We are currently considering changing the shutdown sequence.