testsuite: avoid fork+execing basename
commit3d5f3e28e7fbdc9909b8b9c562080bd7577b6ff2
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Sun, 28 May 2017 15:19:13 +0000 (28 17:19 +0200)
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Sun, 28 May 2017 19:10:26 +0000 (28 21:10 +0200)
tree78c7aec552392eafe2d378453ed2885e46ae0b20
parent914904553e9b48d0b5b0fa8dba6cb4daa08aeea0
testsuite: avoid fork+execing basename

Some testcase (the ones related to sparse-llvm) are disabled if
the needed support is not present. This is done by checking
the name of the command used by the testcase.

The previous possible presence of './' before the command meant
that the command was checked via the 'basename' command, which
need to ne fork+execed.
Since the './' have now been stripped from all command names
this is no more needed.

Change this by comparing directly the command name.

This speedup the testsuite by another 6%.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
validation/test-suite