How to run double main in same project?
Since you use a variant of Eclipse IDE, you want to add a build target with the name of "Test" or "Debug" and then just choose if you want to build the standard  default production code target or the test/debug target. Then configure the build targets that one of them you compile in one file and exclude another file, if you have two files. Or if they are in same file, you can use a define to know which target is being built.