Implementing support for dh_auto_test
Some of gradle-built packages have test suites that could be executed during the build. Such test suites recently helped me to update libejml-java and groovycsv packages, so I propose running upstream tests during build automatically for all gradle-built packages.
This fixes #934729.
Comments and suggestions are welcome.