
2013/10/18 Ozgur Akgun
If you have so many tests, why wouldn't you generate a single executable which takes the name of the test as an argument and runs that test? [...]
I think that this might actually work. It is slightly complicated by the fact that some of the tests load resources from the file system, so I somehow have to handle paths correctly, but this seems doable relatively easily.
This is a pretty simple idea, just wanted to know why you don't go down this path instead.
Perhaps because I didn't think of it? :-) The word "test" might be a bit misleading, each such "test" is a complete program doing some OpenGL stuff, ranging from drawing a simple rectangle to doing more complicated things via various shaders. It is not totally intuitive to throw 100 such unrelated programs together into a sumo executable and dispatch by hand to the correct "main", so it might do what I want, but I still consider this a hack.