tests: Replaced ctest by self-made python script

It makes possible to archive logs/blob data and attach it to build
log in TeamCity for futher investigation