It is possible to link each test case executable with gmain lib and do not create main() function in each cpp file. Lets do it in separate PR. _Originally posted by @PokhodenkoSA in https://github.com/IntelPython/dpctl/pull/93#discussion_r499527476_