nmtst/valgrind: allow calling 'run-test-valgrind.sh' script directly
authorThomas Haller <thaller@redhat.com>
Mon, 23 Nov 2015 18:23:45 +0000 (19:23 +0100)
committerThomas Haller <thaller@redhat.com>
Tue, 24 Nov 2015 10:02:55 +0000 (11:02 +0100)
commit4dacf0b1ad716747310e56188a0d283ee47ebee0
tree1ea5cffecf3ae2c8e1b8e0a488233f37ed3ae327
parent73cb57910835ef46d43bb92309def186e38534cf
nmtst/valgrind: allow calling 'run-test-valgrind.sh' script directly

When you want to run valgrind for a test, you either had to
invoke valgrind manually, or doing it via `make check` (provided
you configured --with-valgrind).

Make it more convenient to run valgrind by passing the test
to run to the "run-test-valgrind.sh" wrapper.

This also allows to pass -p/-s to the test, which is not possible
during `make check` because selecting tests conflicts with "--tap".
The following invocations are largely equivalent and work as
expected:

  $ ./tools/run-test-valgrind.sh ./src/platform/tests/test-link-linux -p /link/software/detect/vlan

  $ NMTST_DEBUG=no-debug,p=/link/software/detect/vlan ./tools/run-test-valgrind.sh ./src/platform/tests/test-link-linux
configure.ac
tools/run-test-valgrind.sh