[build] use the automake infrastructure in order to run tests